FEM: various typos

This commit is contained in:
Unknown
2017-10-19 07:22:35 +01:00
committed by wmayer
parent 9277e964a1
commit ed919b37fb
3 changed files with 11 additions and 11 deletions

View File

@@ -673,7 +673,7 @@ def get_ref_edgenodes_table(femmesh, femelement_table, refedge):
if node in refedge_nodes:
fe_refedge_nodes.append(node)
edge_table[elem] = fe_refedge_nodes # { faceID : ( edgenodeID, ... , edgenodeID )} # only the refedge nodes
# FIXME: duplicate_mesh_elements: as soon as contact ans springs are supported the user should decide on which edge the load is applied
# FIXME: duplicate_mesh_elements: as soon as contact and springs are supported the user should decide on which edge the load is applied
edge_table = delete_duplicate_mesh_elements(edge_table)
elif is_edge_femmesh(femmesh):
refedge_fem_edgeelements = get_femelements_by_femnodes_std(femelement_table, refedge_nodes)
@@ -732,7 +732,7 @@ def get_ref_facenodes_table(femmesh, femelement_table, ref_face):
face_table = {} # { meshfaceID : ( nodeID, ... , nodeID ) }
if is_solid_femmesh(femmesh):
if has_no_face_data(femmesh):
print('No face date in volume mesh. We try to use getccxVolumesByFace() to retrive the volume elments of the ref_face!')
print('No face date in volume mesh. We try to use getccxVolumesByFace() to retrieve the volume elements of the ref_face!')
# there is no face data
# the problem if we retrieve the nodes ourself is they are not sorted we just have the nodes.
# We need to sort them according the shell mesh notation of tria3, tria6, quad4, quad8
@@ -757,7 +757,7 @@ def get_ref_facenodes_table(femmesh, femelement_table, ref_face):
if nodeID in ref_face_nodes:
ve_ref_face_nodes.append(nodeID)
face_table[veID] = ve_ref_face_nodes # { volumeID : ( facenodeID, ... , facenodeID ) } only the ref_face nodes
face_table = build_mesh_faces_of_volume_elements(face_table, femelement_table) # we need to resort the nodes to make them build a element face
face_table = build_mesh_faces_of_volume_elements(face_table, femelement_table) # we need to resort the nodes to make them build an element face
else: # the femmesh has face_data
faces = femmesh.getFacesByFace(ref_face) # (mv, mf)
for mf in faces:

View File

@@ -183,7 +183,7 @@ def makeElementGeometry2D(doc, thickness=20.0, name="ElementGeometry2D"):
########## material objects ##########
def makeMaterialFluid(doc, name="FluidMaterial"):
'''makeMaterialFluid(document, [name]): makes an FEM Material for fluid'''
'''makeMaterialFluid(document, [name]): makes a FEM Material for fluid'''
obj = doc.addObject("App::MaterialObjectPython", name)
import PyObjects._FemMaterial
PyObjects._FemMaterial._FemMaterial(obj)
@@ -196,7 +196,7 @@ def makeMaterialFluid(doc, name="FluidMaterial"):
def makeMaterialMechanicalNonlinear(doc, base_material, name="MechanicalMaterialNonlinear"):
'''makeMaterialMechanicalNonlinear(document, base_material, [name]): creates an nonlinear material object'''
'''makeMaterialMechanicalNonlinear(document, base_material, [name]): creates a nonlinear material object'''
obj = doc.addObject("Fem::FeaturePython", name)
import PyObjects._FemMaterialMechanicalNonlinear
PyObjects._FemMaterialMechanicalNonlinear._FemMaterialMechanicalNonlinear(obj)
@@ -208,7 +208,7 @@ def makeMaterialMechanicalNonlinear(doc, base_material, name="MechanicalMaterial
def makeMaterialSolid(doc, name="MechanicalSolidMaterial"):
'''makeMaterialSolid(document, [name]): makes an FEM Material for solid'''
'''makeMaterialSolid(document, [name]): makes a FEM Material for solid'''
obj = doc.addObject("App::MaterialObjectPython", name)
import PyObjects._FemMaterial
PyObjects._FemMaterial._FemMaterial(obj)
@@ -222,7 +222,7 @@ def makeMaterialSolid(doc, name="MechanicalSolidMaterial"):
########## mesh objects ##########
def makeMeshBoundaryLayer(doc, base_mesh, name="MeshBoundaryLayer"):
'''makeMeshBoundaryLayer(document, base_mesh, [name]): creates a FEM mesh BoundaryLayer object to define boundary layer properties'''
'''makeMeshBoundaryLayer(document, base_mesh, [name]): creates a FEM mesh BoundaryLayer object to define boundary layer properties'''
obj = doc.addObject("Fem::FeaturePython", name)
import PyObjects._FemMeshBoundaryLayer
PyObjects._FemMeshBoundaryLayer._FemMeshBoundaryLayer(obj)
@@ -249,7 +249,7 @@ def makeMeshGmsh(doc, name="FEMMeshGMSH"):
def makeMeshGroup(doc, base_mesh, use_label=False, name="FEMMeshGroup"):
'''makeMeshGroup(document, base_mesh, [use_label], [name]): creates a FEM mesh region object to define properties for a regon of a FEM mesh'''
'''makeMeshGroup(document, base_mesh, [use_label], [name]): creates a FEM mesh region object to define properties for a region of a FEM mesh'''
obj = doc.addObject("Fem::FeaturePython", name)
import PyObjects._FemMeshGroup
PyObjects._FemMeshGroup._FemMeshGroup(obj)
@@ -272,7 +272,7 @@ def makeMeshNetgen(doc, name="FEMMeshNetgen"):
def makeMeshRegion(doc, base_mesh, element_length=0.0, name="FEMMeshRegion"):
'''makeMeshRegion(document, base_mesh, [element_length], [name]): creates a FEM mesh region object to define properties for a regon of a FEM mesh'''
'''makeMeshRegion(document, base_mesh, [element_length], [name]): creates a FEM mesh region object to define properties for a region of a FEM mesh'''
obj = doc.addObject("Fem::FeaturePython", name)
import PyObjects._FemMeshRegion
PyObjects._FemMeshRegion._FemMeshRegion(obj)

View File

@@ -43,7 +43,7 @@ class _FemMeshGmsh():
self.Object = obj # keep a ref to the DocObj for nonGui usage
obj.Proxy = self # link between App::DocumentObject to this object
obj.addProperty("App::PropertyLinkList", "MeshBoundaryLayerList", "Base", "Mesh boundaries need inflatoin layers")
obj.addProperty("App::PropertyLinkList", "MeshBoundaryLayerList", "Base", "Mesh boundaries need inflation layers")
obj.MeshBoundaryLayerList = []
obj.addProperty("App::PropertyLinkList", "MeshRegionList", "Base", "Mesh regions of the mesh")
@@ -84,7 +84,7 @@ class _FemMeshGmsh():
obj.addProperty("App::PropertyBool", "CoherenceMesh", "FEM GMSH Mesh Params", "Removes all duplicate mesh vertices")
obj.CoherenceMesh = True
obj.addProperty("App::PropertyFloat", "GeometryTolerance", "FEM GMSH Mesh Params", "Gemetrical Tolerance (0.0 = GMSH std = 1e-08)")
obj.addProperty("App::PropertyFloat", "GeometryTolerance", "FEM GMSH Mesh Params", "Geometrical Tolerance (0.0 = GMSH std = 1e-08)")
obj.GeometryTolerance = 1e-06
obj.addProperty("App::PropertyEnumeration", "Algorithm2D", "FEM GMSH Mesh Params", "mesh algorithm 2D")