FEM: command modules, add Fem to file and class name
This commit is contained in:
committed by
Yorik van Havre
parent
f5c717b771
commit
8411d03de5
@@ -106,27 +106,27 @@ SET(FemObjectsScripts_SRCS
|
||||
SET(FemGuiScripts_SRCS
|
||||
PyGui/FemCommands.py
|
||||
PyGui/__init__.py
|
||||
PyGui/_CommandAnalysis.py
|
||||
PyGui/_CommandBeamSection.py
|
||||
PyGui/_CommandConstraintSelfWeight.py
|
||||
PyGui/_CommandFEMMesh2Mesh.py
|
||||
PyGui/_CommandFluidSection.py
|
||||
PyGui/_CommandMaterialMechanicalNonlinear.py
|
||||
PyGui/_CommandMaterialSolid.py
|
||||
PyGui/_CommandMaterialFluid.py
|
||||
PyGui/_CommandMeshGmshFromShape.py
|
||||
PyGui/_CommandMeshNetgenFromShape.py
|
||||
PyGui/_CommandMeshClear.py
|
||||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshPrintInfo.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandResultShow.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
PyGui/_CommandSolverCalculix.py
|
||||
PyGui/_CommandSolverControl.py
|
||||
PyGui/_CommandSolverRun.py
|
||||
PyGui/_CommandSolverZ88.py
|
||||
PyGui/_CommandFemAnalysis.py
|
||||
PyGui/_CommandFemBeamSection.py
|
||||
PyGui/_CommandFemConstraintSelfWeight.py
|
||||
PyGui/_CommandFemFluidSection.py
|
||||
PyGui/_CommandFemMaterialMechanicalNonlinear.py
|
||||
PyGui/_CommandFemMaterialSolid.py
|
||||
PyGui/_CommandFemMaterialFluid.py
|
||||
PyGui/_CommandFemMesh2Mesh.py
|
||||
PyGui/_CommandFemMeshGmshFromShape.py
|
||||
PyGui/_CommandFemMeshNetgenFromShape.py
|
||||
PyGui/_CommandFemMeshClear.py
|
||||
PyGui/_CommandFemMeshGroup.py
|
||||
PyGui/_CommandFemMeshPrintInfo.py
|
||||
PyGui/_CommandFemMeshRegion.py
|
||||
PyGui/_CommandFemResultShow.py
|
||||
PyGui/_CommandFemResultsPurge.py
|
||||
PyGui/_CommandFemShellThickness.py
|
||||
PyGui/_CommandFemSolverCalculix.py
|
||||
PyGui/_CommandFemSolverControl.py
|
||||
PyGui/_CommandFemSolverRun.py
|
||||
PyGui/_CommandFemSolverZ88.py
|
||||
PyGui/_TaskPanelFemBeamSection.py
|
||||
PyGui/_TaskPanelFemFluidSection.py
|
||||
PyGui/_TaskPanelFemMeshGmsh.py
|
||||
|
||||
@@ -67,27 +67,27 @@ INSTALL(
|
||||
FILES
|
||||
PyGui/FemCommands.py
|
||||
PyGui/__init__.py
|
||||
PyGui/_CommandAnalysis.py
|
||||
PyGui/_CommandBeamSection.py
|
||||
PyGui/_CommandConstraintSelfWeight.py
|
||||
PyGui/_CommandFEMMesh2Mesh.py
|
||||
PyGui/_CommandFluidSection.py
|
||||
PyGui/_CommandMaterialMechanicalNonlinear.py
|
||||
PyGui/_CommandMaterialSolid.py
|
||||
PyGui/_CommandMaterialFluid.py
|
||||
PyGui/_CommandMeshClear.py
|
||||
PyGui/_CommandMeshGmshFromShape.py
|
||||
PyGui/_CommandMeshGroup.py
|
||||
PyGui/_CommandMeshNetgenFromShape.py
|
||||
PyGui/_CommandMeshPrintInfo.py
|
||||
PyGui/_CommandMeshRegion.py
|
||||
PyGui/_CommandResultShow.py
|
||||
PyGui/_CommandResultsPurge.py
|
||||
PyGui/_CommandShellThickness.py
|
||||
PyGui/_CommandSolverCalculix.py
|
||||
PyGui/_CommandSolverControl.py
|
||||
PyGui/_CommandSolverRun.py
|
||||
PyGui/_CommandSolverZ88.py
|
||||
PyGui/_CommandFemAnalysis.py
|
||||
PyGui/_CommandFemBeamSection.py
|
||||
PyGui/_CommandFemConstraintSelfWeight.py
|
||||
PyGui/_CommandFemFluidSection.py
|
||||
PyGui/_CommandFemMaterialMechanicalNonlinear.py
|
||||
PyGui/_CommandFemMaterialSolid.py
|
||||
PyGui/_CommandFemMaterialFluid.py
|
||||
PyGui/_CommandFemMesh2Mesh.py
|
||||
PyGui/_CommandFemMeshClear.py
|
||||
PyGui/_CommandFemMeshGmshFromShape.py
|
||||
PyGui/_CommandFemMeshGroup.py
|
||||
PyGui/_CommandFemMeshNetgenFromShape.py
|
||||
PyGui/_CommandFemMeshPrintInfo.py
|
||||
PyGui/_CommandFemMeshRegion.py
|
||||
PyGui/_CommandFemResultShow.py
|
||||
PyGui/_CommandFemResultsPurge.py
|
||||
PyGui/_CommandFemShellThickness.py
|
||||
PyGui/_CommandFemSolverCalculix.py
|
||||
PyGui/_CommandFemSolverControl.py
|
||||
PyGui/_CommandFemSolverRun.py
|
||||
PyGui/_CommandFemSolverZ88.py
|
||||
PyGui/_TaskPanelFemBeamSection.py
|
||||
PyGui/_TaskPanelFemFluidSection.py
|
||||
PyGui/_TaskPanelFemMeshGmsh.py
|
||||
|
||||
@@ -45,27 +45,28 @@ class FemWorkbench (Workbench):
|
||||
import Fem
|
||||
import FemGui
|
||||
|
||||
import PyGui._CommandFEMMesh2Mesh
|
||||
import PyGui._CommandAnalysis
|
||||
import PyGui._CommandShellThickness
|
||||
import PyGui._CommandBeamSection
|
||||
import PyGui._CommandFluidSection
|
||||
import PyGui._CommandMaterialSolid
|
||||
import PyGui._CommandMaterialFluid
|
||||
import PyGui._CommandMaterialMechanicalNonlinear
|
||||
import PyGui._CommandMeshClear
|
||||
import PyGui._CommandMeshGmshFromShape
|
||||
import PyGui._CommandMeshGroup
|
||||
import PyGui._CommandMeshNetgenFromShape
|
||||
import PyGui._CommandMeshPrintInfo
|
||||
import PyGui._CommandMeshRegion
|
||||
import PyGui._CommandResultShow
|
||||
import PyGui._CommandResultsPurge
|
||||
import PyGui._CommandSolverCalculix
|
||||
import PyGui._CommandSolverControl
|
||||
import PyGui._CommandSolverRun
|
||||
import PyGui._CommandSolverZ88
|
||||
import PyGui._CommandConstraintSelfWeight
|
||||
import PyGui._CommandFemAnalysis
|
||||
import PyGui._CommandFemConstraintSelfWeight
|
||||
import PyGui._CommandFemMaterialSolid
|
||||
import PyGui._CommandFemMaterialFluid
|
||||
import PyGui._CommandFemMaterialMechanicalNonlinear
|
||||
import PyGui._CommandFemMesh2Mesh
|
||||
import PyGui._CommandFemMeshClear
|
||||
import PyGui._CommandFemMeshGmshFromShape
|
||||
import PyGui._CommandFemMeshGroup
|
||||
import PyGui._CommandFemMeshNetgenFromShape
|
||||
import PyGui._CommandFemMeshPrintInfo
|
||||
import PyGui._CommandFemMeshRegion
|
||||
import PyGui._CommandFemResultShow
|
||||
import PyGui._CommandFemResultsPurge
|
||||
import PyGui._CommandFemSolverCalculix
|
||||
import PyGui._CommandFemSolverControl
|
||||
import PyGui._CommandFemSolverRun
|
||||
import PyGui._CommandFemSolverZ88
|
||||
|
||||
import PyGui._CommandFemShellThickness
|
||||
import PyGui._CommandFemBeamSection
|
||||
import PyGui._CommandFemFluidSection
|
||||
|
||||
def GetClassName(self):
|
||||
return "FemGui::Workbench"
|
||||
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command New Analysis"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandAnalysis
|
||||
## @package CommandFemAnalysis
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandAnalysis(FemCommands):
|
||||
class _CommandFemAnalysis(FemCommands):
|
||||
"the FEM_Analysis command definition"
|
||||
def __init__(self):
|
||||
super(_CommandAnalysis, self).__init__()
|
||||
super(_CommandFemAnalysis, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-analysis',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_Analysis", "Analysis container"),
|
||||
'Accel': "N, A",
|
||||
@@ -57,4 +57,4 @@ class _CommandAnalysis(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [App.activeDocument()." + sel[0].Name + "]")
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_Analysis', _CommandAnalysis())
|
||||
FreeCADGui.addCommand('FEM_Analysis', _CommandFemAnalysis())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandBeamSection"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandBeamSection
|
||||
## @package CommandFemBeamSection
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandBeamSection(FemCommands):
|
||||
class _CommandFemBeamSection(FemCommands):
|
||||
"The FEM_BeamSection command definition"
|
||||
def __init__(self):
|
||||
super(_CommandBeamSection, self).__init__()
|
||||
super(_CommandFemBeamSection, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-beam-section',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_BeamSection", "Beam cross section"),
|
||||
'Accel': "C, B",
|
||||
@@ -49,4 +49,4 @@ class _CommandBeamSection(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeBeamSection()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_BeamSection', _CommandBeamSection())
|
||||
FreeCADGui.addCommand('FEM_BeamSection', _CommandFemBeamSection())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command constraint self weight"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandConstraintSelfWeight
|
||||
## @package CommandFemConstraintSelfWeight
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandConstraintSelfWeight(FemCommands):
|
||||
class _CommandFemConstraintSelfWeight(FemCommands):
|
||||
"The FEM_ConstraintSelfWeight command definition"
|
||||
def __init__(self):
|
||||
super(_CommandConstraintSelfWeight, self).__init__()
|
||||
super(_CommandFemConstraintSelfWeight, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-constraint-selfweight',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ConstraintSelfWeight", "Constraint self weigt"),
|
||||
'Accel': "C, W",
|
||||
@@ -49,4 +49,4 @@ class _CommandConstraintSelfWeight(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeConstraintSelfWeight()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_ConstraintSelfWeight', _CommandConstraintSelfWeight())
|
||||
FreeCADGui.addCommand('FEM_ConstraintSelfWeight', _CommandFemConstraintSelfWeight())
|
||||
@@ -25,7 +25,7 @@ __title__ = "_CommandFluidSection"
|
||||
__author__ = "Ofentse Kgoa"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandFluidSection
|
||||
## @package CommandFemFluidSection
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandFluidSection(FemCommands):
|
||||
class _CommandFemFluidSection(FemCommands):
|
||||
"The FEM_FluidSection command definition"
|
||||
def __init__(self):
|
||||
super(_CommandFluidSection, self).__init__()
|
||||
super(_CommandFemFluidSection, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-fluid-section',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_FluidSection", "Fluid section for 1D flow"),
|
||||
'Accel': "C, B",
|
||||
@@ -50,4 +50,4 @@ class _CommandFluidSection(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeFemFluidSection()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_FluidSection', _CommandFluidSection())
|
||||
FreeCADGui.addCommand('FEM_FluidSection', _CommandFemFluidSection())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandFluidMaterial"
|
||||
__author__ = "Juergen Riegel, Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMaterial
|
||||
## @package CommandFemMaterialFluid
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMaterialFluid(FemCommands):
|
||||
class _CommandFemMaterialFluid(FemCommands):
|
||||
"the FEM_MaterialFluid command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMaterialFluid, self).__init__()
|
||||
super(_CommandFemMaterialFluid, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-material-fluid',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialFluid", "FEM material for Fluid"),
|
||||
'Accel': "M, M",
|
||||
@@ -55,4 +55,4 @@ class _CommandMaterialFluid(FemCommands):
|
||||
FreeCADGui.doCommand("Gui.activeDocument().setEdit(App.ActiveDocument.ActiveObject.Name)")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_MaterialFluid', _CommandMaterialFluid())
|
||||
FreeCADGui.addCommand('FEM_MaterialFluid', _CommandFemMaterialFluid())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command nonlinear mechanical material"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMaterialMechanicalNonLinear
|
||||
## @package CommandFemMaterialMechanicalNonLinear
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMaterialMechanicalNonlinear(FemCommands):
|
||||
class _CommandFemMaterialMechanicalNonlinear(FemCommands):
|
||||
"The FEM_MaterialMechanicalNonlinear command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMaterialMechanicalNonlinear, self).__init__()
|
||||
super(_CommandFemMaterialMechanicalNonlinear, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-material-nonlinear',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialMechanicalNonlinear", "Nonlinear mechanical material"),
|
||||
'Accel': "C, W",
|
||||
@@ -74,4 +74,4 @@ class _CommandMaterialMechanicalNonlinear(FemCommands):
|
||||
if solver_object and solver_object.SolverType == 'FemSolverCalculix':
|
||||
solver_object.MaterialNonlinearity = "nonlinear"
|
||||
|
||||
FreeCADGui.addCommand('FEM_MaterialMechanicalNonlinear', _CommandMaterialMechanicalNonlinear())
|
||||
FreeCADGui.addCommand('FEM_MaterialMechanicalNonlinear', _CommandFemMaterialMechanicalNonlinear())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandSolidMaterial"
|
||||
__author__ = "Juergen Riegel, Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMaterial
|
||||
## @package CommandFemMaterialSolid
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMaterialSolid(FemCommands):
|
||||
class _CommandFemMaterialSolid(FemCommands):
|
||||
"the FEM_MaterialSolid command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMaterialSolid, self).__init__()
|
||||
super(_CommandFemMaterialSolid, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-material',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MaterialSolid", "FEM material for solid"),
|
||||
'Accel': "M, M",
|
||||
@@ -55,4 +55,4 @@ class _CommandMaterialSolid(FemCommands):
|
||||
FreeCADGui.doCommand("Gui.activeDocument().setEdit(App.ActiveDocument.ActiveObject.Name)")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_MaterialSolid', _CommandMaterialSolid())
|
||||
FreeCADGui.addCommand('FEM_MaterialSolid', _CommandFemMaterialSolid())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Clear the FemMesh of a FEM mesh object"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshClear
|
||||
## @package CommandFemMeshClear
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshClear(FemCommands):
|
||||
class _CommandFemMeshClear(FemCommands):
|
||||
"the FEM_MeshClear command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMeshClear, self).__init__()
|
||||
super(_CommandFemMeshClear, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-clear-mesh',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshClear", "Clear FEM mesh"),
|
||||
# 'Accel': "Z, Z",
|
||||
@@ -53,4 +53,4 @@ class _CommandMeshClear(FemCommands):
|
||||
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshClear', _CommandMeshClear())
|
||||
FreeCADGui.addCommand('FEM_MeshClear', _CommandFemMeshClear())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command GMSH Mesh From Shape"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshGmshFromShape
|
||||
## @package CommandFemMeshGmshFromShape
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshGmshFromShape(FemCommands):
|
||||
class _CommandFemMeshGmshFromShape(FemCommands):
|
||||
# the FEM_MeshGmshFromShape command definition
|
||||
def __init__(self):
|
||||
super(_CommandMeshGmshFromShape, self).__init__()
|
||||
super(_CommandFemMeshGmshFromShape, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-gmsh-from-shape',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGmshFromShape", "FEM mesh from shape by GMSH"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGmshFromShape", "Create a FEM mesh from a shape by GMSH mesher")}
|
||||
@@ -61,4 +61,4 @@ class _CommandMeshGmshFromShape(FemCommands):
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshGmshFromShape', _CommandMeshGmshFromShape())
|
||||
FreeCADGui.addCommand('FEM_MeshGmshFromShape', _CommandFemMeshGmshFromShape())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandMeshGroup"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshGroup
|
||||
## @package CommandFemMeshGroup
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshGroup(FemCommands):
|
||||
class _CommandFemMeshGroup(FemCommands):
|
||||
"The FEM_MeshGroup command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMeshGroup, self).__init__()
|
||||
super(_CommandFemMeshGroup, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-from-shape',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshGroup", "FEM mesh group"),
|
||||
'Accel': "M, G",
|
||||
@@ -54,4 +54,4 @@ class _CommandMeshGroup(FemCommands):
|
||||
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshGroup', _CommandMeshGroup())
|
||||
FreeCADGui.addCommand('FEM_MeshGroup', _CommandFemMeshGroup())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command Mesh Netgen From Shape"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshNetgenFromShape
|
||||
## @package CommandFemMeshNetgenFromShape
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshNetgenFromShape(FemCommands):
|
||||
class _CommandFemMeshNetgenFromShape(FemCommands):
|
||||
# the FEM_MeshNetgenFromShape command definition
|
||||
def __init__(self):
|
||||
super(_CommandMeshNetgenFromShape, self).__init__()
|
||||
super(_CommandFemMeshNetgenFromShape, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-netgen-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 or face shape by Netgen internal mesher")}
|
||||
@@ -59,4 +59,4 @@ class _CommandMeshNetgenFromShape(FemCommands):
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshNetgenFromShape', _CommandMeshNetgenFromShape())
|
||||
FreeCADGui.addCommand('FEM_MeshNetgenFromShape', _CommandFemMeshNetgenFromShape())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Print info of FEM mesh object"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshPrintInfo
|
||||
## @package CommandFemMeshPrintInfo
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshPrintInfo(FemCommands):
|
||||
class _CommandFemMeshPrintInfo(FemCommands):
|
||||
"the FEM_MeshPrintInfo command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMeshPrintInfo, self).__init__()
|
||||
super(_CommandFemMeshPrintInfo, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-print-info',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshPrintInfo", "Print FEM mesh info"),
|
||||
# 'Accel': "Z, Z",
|
||||
@@ -55,4 +55,4 @@ class _CommandMeshPrintInfo(FemCommands):
|
||||
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshPrintInfo', _CommandMeshPrintInfo())
|
||||
FreeCADGui.addCommand('FEM_MeshPrintInfo', _CommandFemMeshPrintInfo())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandMeshRegion"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshRegion
|
||||
## @package CommandFemMeshRegion
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshRegion(FemCommands):
|
||||
class _CommandFemMeshRegion(FemCommands):
|
||||
"The FEM_MeshRegion command definition"
|
||||
def __init__(self):
|
||||
super(_CommandMeshRegion, self).__init__()
|
||||
super(_CommandFemMeshRegion, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-femmesh-region',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_MeshRegion", "FEM mesh region"),
|
||||
'Accel': "M, R",
|
||||
@@ -54,4 +54,4 @@ class _CommandMeshRegion(FemCommands):
|
||||
|
||||
FreeCADGui.Selection.clearSelection()
|
||||
|
||||
FreeCADGui.addCommand('FEM_MeshRegion', _CommandMeshRegion())
|
||||
FreeCADGui.addCommand('FEM_MeshRegion', _CommandFemMeshRegion())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command Show Result"
|
||||
__author__ = "Juergen Riegel, Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandResultShow
|
||||
## @package CommandFemResultShow
|
||||
# \ingroup FEM
|
||||
# \brief FreeCAD Command show results for FEM workbench
|
||||
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandResultShow(FemCommands):
|
||||
class _CommandFemResultShow(FemCommands):
|
||||
"the FEM_ResultShow command definition"
|
||||
def __init__(self):
|
||||
super(_CommandResultShow, self).__init__()
|
||||
super(_CommandFemResultShow, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-result',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ResultShow", "Show result"),
|
||||
'Accel': "S, R",
|
||||
@@ -51,4 +51,4 @@ class _CommandResultShow(FemCommands):
|
||||
result_object.ViewObject.startEditing()
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_ResultShow', _CommandResultShow())
|
||||
FreeCADGui.addCommand('FEM_ResultShow', _CommandFemResultShow())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command Purge Fem Results"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandResultsPurge
|
||||
## @package CommandFemResultsPurge
|
||||
# \ingroup FEM
|
||||
|
||||
from FemCommands import FemCommands
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandResultsPurge(FemCommands):
|
||||
class _CommandFemResultsPurge(FemCommands):
|
||||
# the FEM_ResultsPurge command definition
|
||||
def __init__(self):
|
||||
super(_CommandResultsPurge, self).__init__()
|
||||
super(_CommandFemResultsPurge, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-purge-results',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ResultsPurge", "Purge results"),
|
||||
'Accel': "S, S",
|
||||
@@ -49,4 +49,4 @@ class _CommandResultsPurge(FemCommands):
|
||||
self.hide_meshes_show_parts_constraints()
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_ResultsPurge', _CommandResultsPurge())
|
||||
FreeCADGui.addCommand('FEM_ResultsPurge', _CommandFemResultsPurge())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandShellThickness"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandShellThickness
|
||||
## @package CommandFemShellThickness
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandShellThickness(FemCommands):
|
||||
class _CommandFemShellThickness(FemCommands):
|
||||
"The FEM_ShellThickness command definition"
|
||||
def __init__(self):
|
||||
super(_CommandShellThickness, self).__init__()
|
||||
super(_CommandFemShellThickness, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-shell-thickness',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_ShellThickness", "Shell plate thickness"),
|
||||
'Accel': "C, S",
|
||||
@@ -49,4 +49,4 @@ class _CommandShellThickness(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeShellThickness()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_ShellThickness', _CommandShellThickness())
|
||||
FreeCADGui.addCommand('FEM_ShellThickness', _CommandFemShellThickness())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandSolverCalculix"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandSolverCalculix
|
||||
## @package CommandFemSolverCalculix
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -34,10 +34,10 @@ import FemGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandSolverCalculix(FemCommands):
|
||||
class _CommandFemSolverCalculix(FemCommands):
|
||||
"The FEM_SolverCalculix command definition"
|
||||
def __init__(self):
|
||||
super(_CommandSolverCalculix, self).__init__()
|
||||
super(_CommandFemSolverCalculix, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-solver',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverCalculix", "Solver CalculiX"),
|
||||
'Accel': "S, C",
|
||||
@@ -59,4 +59,4 @@ class _CommandSolverCalculix(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeSolverCalculix()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_SolverCalculix', _CommandSolverCalculix())
|
||||
FreeCADGui.addCommand('FEM_SolverCalculix', _CommandFemSolverCalculix())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command Control Solver"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandSolverControl
|
||||
## @package CommandFemSolverControl
|
||||
# \ingroup FEM
|
||||
|
||||
from FemCommands import FemCommands
|
||||
@@ -32,10 +32,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandSolverControl(FemCommands):
|
||||
class _CommandFemSolverControl(FemCommands):
|
||||
"the FEM_SolverControl command definition"
|
||||
def __init__(self):
|
||||
super(_CommandSolverControl, self).__init__()
|
||||
super(_CommandFemSolverControl, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-control-solver',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverControl", "Solver job control"),
|
||||
'Accel': "S, C",
|
||||
@@ -47,4 +47,4 @@ class _CommandSolverControl(FemCommands):
|
||||
FreeCADGui.ActiveDocument.setEdit(solver_obj, 0)
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_SolverControl', _CommandSolverControl())
|
||||
FreeCADGui.addCommand('FEM_SolverControl', _CommandFemSolverControl())
|
||||
@@ -24,7 +24,7 @@ __title__ = "Command Run Solver"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandSolverRun
|
||||
## @package CommandFemSolverRun
|
||||
# \ingroup FEM
|
||||
|
||||
from FemCommands import FemCommands
|
||||
@@ -32,10 +32,10 @@ import FreeCADGui
|
||||
from PySide import QtCore, QtGui
|
||||
|
||||
|
||||
class _CommandSolverRun(FemCommands):
|
||||
class _CommandFemSolverRun(FemCommands):
|
||||
# the FEM_SolverRun command definition
|
||||
def __init__(self):
|
||||
super(_CommandSolverRun, self).__init__()
|
||||
super(_CommandFemSolverRun, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-run-solver',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverRun", "Run solver calculations"),
|
||||
'Accel': "R, C",
|
||||
@@ -77,4 +77,4 @@ class _CommandSolverRun(FemCommands):
|
||||
QtGui.QMessageBox.critical(None, "Not known solver type", message)
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_SolverRun', _CommandSolverRun))
|
||||
FreeCADGui.addCommand('FEM_SolverRun', _CommandFemSolverRun())
|
||||
@@ -24,7 +24,7 @@ __title__ = "_CommandSolverZ88"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandSolverZ88
|
||||
## @package CommandFemSolverZ88
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
@@ -33,10 +33,10 @@ import FreeCADGui
|
||||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandSolverZ88(FemCommands):
|
||||
class _CommandFemSolverZ88(FemCommands):
|
||||
"The FEM_SolverZ88 command definition"
|
||||
def __init__(self):
|
||||
super(_CommandSolverZ88, self).__init__()
|
||||
super(_CommandFemSolverZ88, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-solver',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("FEM_SolverZ88", "Solver Z88"),
|
||||
'Accel': "S, Z",
|
||||
@@ -49,4 +49,4 @@ class _CommandSolverZ88(FemCommands):
|
||||
FreeCADGui.doCommand("FemGui.getActiveAnalysis().Member = FemGui.getActiveAnalysis().Member + [ObjectsFem.makeSolverZ88()]")
|
||||
|
||||
|
||||
FreeCADGui.addCommand('FEM_SolverZ88', _CommandSolverZ88())
|
||||
FreeCADGui.addCommand('FEM_SolverZ88', _CommandFemSolverZ88())
|
||||
Reference in New Issue
Block a user