diff --git a/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py b/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py index 66b8fb354b..9bd62758a6 100644 --- a/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py +++ b/src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py @@ -222,7 +222,7 @@ class _TaskPanelFemMaterial: self.material['Name'] = 'Empty' if 'Density' in self.material: if 'Density' not in str(Units.Unit(self.material['Density'])): - print('Density in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('Density in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['Density'] = '0 kg/m^3' else: print('Density not found in material data of: ' + self.material['Name']) @@ -231,26 +231,26 @@ class _TaskPanelFemMaterial: # mechanical properties if 'YoungsModulus' in self.material: if 'Pressure' not in str(Units.Unit(self.material['YoungsModulus'])): # unit type of YoungsModulus is Pressure - print('YoungsModulus in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('YoungsModulus in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['YoungsModulus'] = '0 MPa' else: print('YoungsModulus not found in material data of: ' + self.material['Name']) self.material['YoungsModulus'] = '0 MPa' - if 'PoissonRatio' not in self.material: # PoissonRatio does not have a unit, we do not gone check for a unit + if 'PoissonRatio' not in self.material: # PoissonRatio does not have a unit, we're not going to check for a unit print('PoissonRatio not found in material data of: ' + self.material['Name']) self.material['PoissonRatio'] = '0' if self.obj.Category == 'Fluid': # Fluidic properties if 'KinematicViscosity' in self.material: if 'KinematicViscosity' not in str(Units.Unit(self.material['KinematicViscosity'])): - print('KinematicViscosity in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('KinematicViscosity in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['KinematicViscosity'] = '0 m^2/s' else: print('KinematicViscosity not found in material data of: ' + self.material['Name']) self.material['KinematicViscosity'] = '0 m^2/s' if 'VolumetricThermalExpansionCoefficient' in self.material: if 'ThermalExpansionCoefficient' not in str(Units.Unit(self.material['VolumetricThermalExpansionCoefficient'])): # unit type of VolumetricThermalExpansionCoefficient is ThermalExpansionCoefficient - print('VolumetricThermalExpansionCoefficient in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('VolumetricThermalExpansionCoefficient in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['VolumetricThermalExpansionCoefficient'] = '0 m/m/K' else: print('VolumetricThermalExpansionCoefficient not found in material data of: ' + self.material['Name']) @@ -258,21 +258,21 @@ class _TaskPanelFemMaterial: # Thermal properties if 'ThermalConductivity' in self.material: if 'ThermalConductivity' not in str(Units.Unit(self.material['ThermalConductivity'])): - print('ThermalConductivity in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('ThermalConductivity in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['ThermalConductivity'] = '0 W/m/K' else: print('ThermalConductivity not found in material data of: ' + self.material['Name']) self.material['ThermalConductivity'] = '0 W/m/K' if 'ThermalExpansionCoefficient' in self.material: if 'ThermalExpansionCoefficient' not in str(Units.Unit(self.material['ThermalExpansionCoefficient'])): - print('ThermalExpansionCoefficient in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('ThermalExpansionCoefficient in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['ThermalExpansionCoefficient'] = '0 um/m/K' else: print('ThermalExpansionCoefficient not found in material data of: ' + self.material['Name']) self.material['ThermalExpansionCoefficient'] = '0 um/m/K' if 'SpecificHeat' in self.material: if 'SpecificHeat' not in str(Units.Unit(self.material['SpecificHeat'])): - print('SpecificHeat in material data seams to have no unit or a wrong unit (reset the value): ' + self.material['Name']) + print('SpecificHeat in material data seems to have no unit or a wrong unit (reset the value): ' + self.material['Name']) self.material['SpecificHeat'] = '0 J/kg/K' else: print('SpecificHeat not found in material data of: ' + self.material['Name']) @@ -563,8 +563,8 @@ class _TaskPanelFemMaterial: self.export_FCMat(saveName, self.material) FreeCAD.Console.PrintMessage("Successfully save the Material property file: " + saveName + "\n") else: - self.export_FCMat(saveName, self.material) - FreeCAD.Console.PrintMessage("Successfully overwritren the Material property file: " + saveName + "\n") + self.export_FCMat(saveName, self.obj.Material) + FreeCAD.Console.PrintMessage("Successfully overwritten the Material property file: " + saveName + "\n") """ msgBox = QMessageBox() msgBox.setText("FcMat file name {} has existed in {} or system folder, overwriting?\n".format(saveName, TargetDir)) @@ -574,7 +574,7 @@ class _TaskPanelFemMaterial: ret = msgBox.exec_() if ret == QMessageBox.Yes: self.export_FCMat(saveName, self.obj.Material) - FreeCAD.Console.PrintMessage("Successfully overwritren the Material property file: "+ saveName + "\n") + FreeCAD.Console.PrintMessage("Successfully overwritten the Material property file: "+ saveName + "\n") """ ###################geometry reference selection ################# diff --git a/src/Mod/Fem/femmesh/meshtools.py b/src/Mod/Fem/femmesh/meshtools.py index f0f3a946ed..10cdda742d 100644 --- a/src/Mod/Fem/femmesh/meshtools.py +++ b/src/Mod/Fem/femmesh/meshtools.py @@ -1247,7 +1247,7 @@ def get_anlysis_empty_references_group_elements(group_elements, aAnalysis, aShap if not empty_reference_material: empty_reference_material = m.Name else: - FreeCAD.Console.PrintError('Problem in get_anlysis_empty_references_group_elements, we seams to have two or more materials with empty referneces') + FreeCAD.Console.PrintError('Problem in get_anlysis_empty_references_group_elements, we seem to have two or more materials with empty references') return {} elif hasattr(m, "References") and m.References: # ShapeType of the group elements, strip the number of the first group element diff --git a/src/Mod/Fem/femsolver/elmer/writer.py b/src/Mod/Fem/femsolver/elmer/writer.py index ac7160887a..927d821320 100644 --- a/src/Mod/Fem/femsolver/elmer/writer.py +++ b/src/Mod/Fem/femsolver/elmer/writer.py @@ -477,7 +477,7 @@ class Writer(object): densityQuantity = Units.Quantity(m["Density"]) dimension = "M/L^3" if name.startswith("Edge"): - density = None # not tested, but it seams needed because denisty does not exist (IMHO, bernd) + density = None # not tested, but it seems needed because denisty does not exist (IMHO, bernd) density.Unit = Units.Unit(-2, 1) dimension = "M/L^2" density = convert(densityQuantity, dimension) diff --git a/src/Mod/Fem/femsolver/z88/tasks.py b/src/Mod/Fem/femsolver/z88/tasks.py index 51bf0b6ecc..d7b37a81dc 100644 --- a/src/Mod/Fem/femsolver/z88/tasks.py +++ b/src/Mod/Fem/femsolver/z88/tasks.py @@ -80,9 +80,9 @@ class Prepare(run.Prepare): class Solve(run.Solve): def run(self): - # AFAIK: z88r needs to be run twice, once in test mode ond once in real solve mode - # the subprocess was just copied, it seams to work :-) - # TODO: search out for "Vektor GS" and "Vektor KOI" and print values, may be compare with the used ones + # AFAIK: z88r needs to be run twice, once in test mode and once in real solve mode + # the subprocess was just copied, it seems to work :-) + # TODO: search out for "Vektor GS" and "Vektor KOI" and print values, may be compared with the used ones self.pushStatus("Executing test solver...\n") binary = settings.getBinary("Z88") self._process = subprocess.Popen( @@ -258,7 +258,7 @@ class _Container(object): # for material object: # in GUI defined material_obj could have no RefShape and RefShapes could be different type # we're going to need the RefShapes to be the same type inside one fem_doc_object - # TODO here: check if all RefShapes inside the object really have the same type + # TODO: check if all RefShapes inside the object really have the same type import femmesh.meshtools as FemMeshTools if hasattr(fem_doc_object, 'References') and fem_doc_object.References: first_ref_obj = fem_doc_object.References[0] diff --git a/src/Mod/Fem/femtest/testfemcommon.py b/src/Mod/Fem/femtest/testfemcommon.py index 64a4bd9b08..f17f563ec8 100644 --- a/src/Mod/Fem/femtest/testfemcommon.py +++ b/src/Mod/Fem/femtest/testfemcommon.py @@ -1328,7 +1328,7 @@ class SolverFrameWorkTest(unittest.TestCase): solver_elmer_eqobj = ObjectsFem.makeEquationElasticity(self.active_doc, solver_elmer_object) self.assertTrue(solver_elmer_eqobj, "FemTest of elmer elasticity equation failed") - # set ThermalExpansionCoefficient, current elmer seams to need it even on simple elasticity analysis + # set ThermalExpansionCoefficient, current elmer seems to need it even on simple elasticity analysis mat = material_object.Material mat['ThermalExpansionCoefficient'] = "0 um/m/K" # FIXME elmer elasticity needs the dictionary key, otherwise it fails material_object.Material = mat