FEM: rename CommandMeshFromShape into _CommandMeshNetgenFromShape

This commit is contained in:
Bernd Hahnebach 2016-11-22 19:47:46 +01:00
parent 30e54ec0e2
commit 1c0920d624
5 changed files with 14 additions and 14 deletions

View File

@ -70,7 +70,7 @@ SET(FemScripts_SRCS
_CommandConstraintSelfWeight.py _CommandConstraintSelfWeight.py
_CommandMaterialMechanicalNonlinear.py _CommandMaterialMechanicalNonlinear.py
_CommandMechanicalMaterial.py _CommandMechanicalMaterial.py
_CommandMeshFromShape.py _CommandMeshNetgenFromShape.py
_CommandPurgeResults.py _CommandPurgeResults.py
_CommandRunSolver.py _CommandRunSolver.py
_CommandShellThickness.py _CommandShellThickness.py

View File

@ -24,7 +24,7 @@ INSTALL(
TestFem.py TestFem.py
FemCommands.py FemCommands.py
_CommandMeshFromShape.py _CommandMeshNetgenFromShape.py
_CommandPurgeResults.py _CommandPurgeResults.py
_CommandRunSolver.py _CommandRunSolver.py
_CommandControlSolver.py _CommandControlSolver.py

View File

@ -58,7 +58,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
*fem << "Fem_Analysis" *fem << "Fem_Analysis"
<< "Fem_SolverCalculix" << "Fem_SolverCalculix"
// << "Fem_SolverZ88" // << "Fem_SolverZ88"
<< "Fem_MeshFromShape" << "Fem_MeshNetgenFromShape"
<< "Fem_MechanicalMaterial" << "Fem_MechanicalMaterial"
<< "Fem_MaterialMechanicalNonlinear" << "Fem_MaterialMechanicalNonlinear"
<< "Fem_BeamSection" << "Fem_BeamSection"
@ -118,7 +118,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
*fem << "Fem_Analysis" *fem << "Fem_Analysis"
<< "Fem_SolverCalculix" << "Fem_SolverCalculix"
<< "Fem_SolverZ88" << "Fem_SolverZ88"
<< "Fem_MeshFromShape" << "Fem_MeshNetgenFromShape"
<< "Fem_MechanicalMaterial" << "Fem_MechanicalMaterial"
<< "Fem_MaterialMechanicalNonlinear" << "Fem_MaterialMechanicalNonlinear"
<< "Fem_BeamSection" << "Fem_BeamSection"

View File

@ -49,7 +49,7 @@ class FemWorkbench (Workbench):
import _CommandRunSolver import _CommandRunSolver
import _CommandPurgeResults import _CommandPurgeResults
import _CommandControlSolver import _CommandControlSolver
import _CommandMeshFromShape import _CommandMeshNetgenFromShape
import _CommandAnalysis import _CommandAnalysis
import _CommandShellThickness import _CommandShellThickness
import _CommandBeamSection import _CommandBeamSection

View File

@ -20,11 +20,11 @@
# * * # * *
# *************************************************************************** # ***************************************************************************
__title__ = "Command Mesh From Shape" __title__ = "Command Mesh Netgen From Shape"
__author__ = "Juergen Riegel" __author__ = "Juergen Riegel"
__url__ = "http://www.freecadweb.org" __url__ = "http://www.freecadweb.org"
## @package CommandMeshFromShape ## @package CommandMeshNetgenFromShape
# \ingroup FEM # \ingroup FEM
import FreeCAD import FreeCAD
@ -33,17 +33,17 @@ import FreeCADGui
from PySide import QtCore from PySide import QtCore
class _CommandMeshFromShape(FemCommands): class _CommandMeshNetgenFromShape(FemCommands):
# the Fem_MeshFromShape command definition # the Fem_MeshNetgenFromShape command definition
def __init__(self): def __init__(self):
super(_CommandMeshFromShape, self).__init__() super(_CommandMeshNetgenFromShape, self).__init__()
self.resources = {'Pixmap': 'fem-fem-mesh-from-shape', self.resources = {'Pixmap': 'fem-fem-mesh-from-shape',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "FEM mesh from shape"), 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "FEM mesh from shape by Netgen"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "Create a FEM volume mesh from a solid shape")} 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "Create a FEM volume mesh from a solid or face shape by Netgen internal mesher")}
self.is_active = 'with_part_feature' self.is_active = 'with_part_feature'
def Activated(self): def Activated(self):
FreeCAD.ActiveDocument.openTransaction("Create FEM mesh") FreeCAD.ActiveDocument.openTransaction("Create FEM mesh Netgen")
FreeCADGui.addModule("FemGui") FreeCADGui.addModule("FemGui")
sel = FreeCADGui.Selection.getSelection() sel = FreeCADGui.Selection.getSelection()
if (len(sel) == 1): if (len(sel) == 1):
@ -56,4 +56,4 @@ class _CommandMeshFromShape(FemCommands):
if FreeCAD.GuiUp: if FreeCAD.GuiUp:
FreeCADGui.addCommand('Fem_MeshFromShape', _CommandMeshFromShape()) FreeCADGui.addCommand('Fem_MeshNetgenFromShape', _CommandMeshNetgenFromShape())