FEM: source typo fixes

This commit is contained in:
luz.paz
2018-06-08 20:25:05 -04:00
committed by wmayer
parent f7d9f734b5
commit 2f39b92985
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ from PySide import QtCore
# Python command definitions
# for C++ comand definitions see src/Mod/Fem/Command.cpp
# for C++ command definitions see src/Mod/Fem/Command.cpp
class _CommandFemAnalysis(CommandManager):
"The FEM_Analysis command definition"
@@ -425,7 +425,7 @@ class _CommandFemMaterialMechanicalNonlinear(CommandManager):
FreeCADGui.doCommand(command_to_run)
# set some property of the solver to nonlinear (only if one solver is available and if this solver is a CalculiX solver):
# nonlinear material
# nonlinear geometry --> its is triggered anyway https://forum.freecadweb.org/viewtopic.php?f=18&t=23101&p=180489#p180489
# nonlinear geometry --> it is triggered anyway https://forum.freecadweb.org/viewtopic.php?f=18&t=23101&p=180489#p180489
solver_object = None
for m in self.active_analysis.Group:
if m.isDerivedFrom('Fem::FemSolverObjectPython'):
@@ -592,7 +592,7 @@ class _CommandFemMeshNetgenFromShape(CommandManager):
FreeCADGui.addModule("ObjectsFem")
FreeCADGui.doCommand("ObjectsFem.makeMeshNetgen(FreeCAD.ActiveDocument, '" + mesh_obj_name + "')")
FreeCADGui.doCommand("FreeCAD.ActiveDocument.ActiveObject.Shape = FreeCAD.ActiveDocument." + self.selobj.Name)
# Netgen mesh object could be added without an active analysis, but if there is an active analysis move it in there import FemGui
# Netgen mesh object could be added without an active analysis, but if there is an active analysis move it in there
import FemGui
if FemGui.getActiveAnalysis():
FreeCADGui.addModule("FemGui")

View File

@@ -619,7 +619,7 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
raise Exception(error_message)
except Exception as e:
FreeCAD.Console.PrintError(str(e))
error_message = "FEM: CalculiX ccx \'{}\' output \'{}\' doesn't contain expected phrase \'{}\'. There are some problems in runing the binary of ccx. Check if ccx runs standalone without FreeCAD.\n".format(ccx_binary, ccx_stdout, ccx_binary_sig)
error_message = "FEM: CalculiX ccx \'{}\' output \'{}\' doesn't contain expected phrase \'{}\'. There are some problems when running the ccx binary. Check if ccx runs standalone without FreeCAD.\n".format(ccx_binary, ccx_stdout, ccx_binary_sig)
if FreeCAD.GuiUp:
QtGui.QMessageBox.critical(None, error_title, error_message)
raise Exception(error_message)