From ed919b37fb8e499401de6002b5259ecae9f02e5e Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 19 Oct 2017 07:22:35 +0100 Subject: [PATCH] FEM: various typos --- src/Mod/Fem/FemMeshTools.py | 6 +++--- src/Mod/Fem/ObjectsFem.py | 12 ++++++------ src/Mod/Fem/PyObjects/_FemMeshGmsh.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Mod/Fem/FemMeshTools.py b/src/Mod/Fem/FemMeshTools.py index adb19d9f0f..92f55b5b55 100644 --- a/src/Mod/Fem/FemMeshTools.py +++ b/src/Mod/Fem/FemMeshTools.py @@ -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: diff --git a/src/Mod/Fem/ObjectsFem.py b/src/Mod/Fem/ObjectsFem.py index 445f0f71c2..e04aa0a57e 100644 --- a/src/Mod/Fem/ObjectsFem.py +++ b/src/Mod/Fem/ObjectsFem.py @@ -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) diff --git a/src/Mod/Fem/PyObjects/_FemMeshGmsh.py b/src/Mod/Fem/PyObjects/_FemMeshGmsh.py index 8e6930a5ce..28588b4fab 100644 --- a/src/Mod/Fem/PyObjects/_FemMeshGmsh.py +++ b/src/Mod/Fem/PyObjects/_FemMeshGmsh.py @@ -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")