Example #1
0
 def __init__(self):
     super(_SolverZ88, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_SolverZ88", "Solver Z88")
     self.accel = "S, Z"
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_SolverZ88",
                                         "Creates a FEM solver Z88")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_noset_edit"
Example #2
0
 def __init__(self):
     super(_SolverMystran, self).__init__()
     self.pixmap = "FEM_SolverStandard"
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_SolverMystran", "Solver Mystran")
     self.accel = "S, M"
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_SolverMystran", "Creates a FEM solver Mystran")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_noset_edit"
Example #3
0
 def __init__(self):
     super(_MeshRegion, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MeshRegion",
                                          "FEM mesh region")
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_MeshRegion",
                                         "Creates a FEM mesh region")
     self.is_active = "with_gmsh_femmesh"
     self.do_activated = "add_obj_on_gui_selobj_set_edit"
Example #4
0
 def __init__(self):
     super(_ElementGeometry2D, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ElementGeometry2D",
                                          "Shell plate thickness")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ElementGeometry2D", "Creates a FEM shell plate thickness")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #5
0
 def __init__(self):
     super(_ElementFluid1D, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ElementFluid1D",
                                          "Fluid section for 1D flow")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ElementFluid1D", "Creates a FEM fluid section for 1D flow")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #6
0
 def __init__(self):
     super(_EquationFlow, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_EquationFlow",
                                          "Flow equation")
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_EquationFlow",
                                         "Creates a FEM equation for flow")
     self.is_active = "with_solver_elmer"
     self.do_activated = "add_obj_on_gui_selobj_noset_edit"
Example #7
0
 def __init__(self):
     super(_ClippingPlaneAdd, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ClippingPlaneAdd", "Clipping plane on face")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ClippingPlaneAdd",
         "Add a clipping plane on a selected face"
     )
     self.is_active = "with_document"
Example #8
0
 def __init__(self):
     super(_SolverRun, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_SolverRun",
                                          "Run solver calculations")
     self.accel = "S, R"
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_SolverRun", "Runs the calculations for the selected solver")
     self.is_active = "with_solver"
Example #9
0
 def __init__(self):
     super(_MeshGmshFromShape, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MeshGmshFromShape",
                                          "FEM mesh from shape by Gmsh")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshGmshFromShape",
         "Create a FEM mesh from a shape by Gmsh mesher")
     self.is_active = "with_part_feature"
Example #10
0
 def __init__(self):
     super(_ElementRotation1D, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ElementRotation1D",
                                          "Beam rotation")
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_ElementRotation1D",
                                         "Creates a FEM beam rotation")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_noset_edit"
Example #11
0
 def __init__(self):
     super(_MaterialFluid, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MaterialFluid",
                                          "Material for fluid")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MaterialFluid", "Creates a FEM material for fluid")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #12
0
 def __init__(self):
     super(_MaterialMechanicalNonlinear, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MaterialMechanicalNonlinear",
                                          "Nonlinear mechanical material")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MaterialMechanicalNonlinear",
         "Creates a nonlinear mechanical material")
     self.is_active = "with_material_solid"
Example #13
0
 def __init__(self):
     super(_MaterialEditor, self).__init__()
     self.pixmap = "Arch_Material_Group"
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MaterialEditor",
                                          "Material editor")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MaterialEditor", "Opens the FreeCAD material editor")
     self.is_active = "always"
Example #14
0
 def __init__(self):
     super(_Examples, self).__init__()
     self.pixmap = "FemWorkbench"
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_Examples",
                                          "Open FEM examples")
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_Examples",
                                         "Open FEM examples")
     self.is_active = "always"
Example #15
0
 def GetResources(self):
     return {
         'MenuText': Qt.QT_TRANSLATE_NOOP("Part_Tube", "Create tube"),
         'Accel': "",
         'CmdType': "AlterDoc:Alter3DView:AlterSelection",
         'Pixmap': "Part_Tube",
         'ToolTip': Qt.QT_TRANSLATE_NOOP("Part_Tube", "Creates a tube")
     }
Example #16
0
 def __init__(self):
     super(_ConstraintTie, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ConstraintTie",
                                          "Constraint tie")
     self.tooltip = Qt.QT_TRANSLATE_NOOP("FEM_ConstraintTie",
                                         "Creates a FEM constraint tie")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #17
0
 def __init__(self):
     super(_ResultsPurge, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ResultsPurge",
                                          "Purge results")
     self.accel = "R, P"
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ResultsPurge", "Purges all results from active analysis")
     self.is_active = "with_results"
Example #18
0
 def __init__(self):
     super(_MeshNetgenFromShape, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MeshNetgenFromShape",
                                          "FEM mesh from shape by Netgen")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshNetgenFromShape",
         "Create a FEM mesh from a solid or face shape by Netgen internal mesher"
     )
     self.is_active = "with_part_feature"
Example #19
0
 def __init__(self):
     super(_Analysis, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_Analysis",
                                          "Analysis container")
     self.accel = "S, A"
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_Analysis",
         "Creates an analysis container with standard solver CalculiX")
     self.is_active = "with_document"
Example #20
0
 def __init__(self):
     super(_SolverCxxtools, self).__init__()
     self.pixmap = "FEM_SolverStandard"
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_SolverCalculixCxxtools",
                                          "Solver CalculiX Standard")
     self.accel = "S, X"
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_SolverCalculixCxxtools",
         "Creates a standard FEM solver CalculiX with ccx tools")
     self.is_active = "with_analysis"
Example #21
0
 def __init__(self):
     super(_ConstraintInitialFlowVelocity, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstraintInitialFlowVelocity",
         "Constraint initial flow velocity")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstraintInitialFlowVelocity",
         "Creates a FEM constraint initial flow velocity")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #22
0
 def __init__(self):
     super(_ConstraintBodyHeatSource, self).__init__()
     self.pixmap = "FEM_ConstraintHeatflux"  # the heatflux icon is used
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ConstraintBodyHeatSource",
                                          "Constraint body heat source")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstraintBodyHeatSource",
         "Creates a FEM constraint body heat source")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_noset_edit"
Example #23
0
 def __init__(self):
     super(_ConstraintElectrostaticPotential, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstraintElectrostaticPotential",
         "Constraint electrostatic potential")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstraintElectrostaticPotential",
         "Creates a FEM constraint electrostatic potential")
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #24
0
 def __init__(self):
     super(_SolverControl, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_SolverControl",
                                          "Solver job control")
     self.accel = "S, T"
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_SolverControl",
         "Changes solver attributes and runs the calculations for the selected solver"
     )
     self.is_active = "with_solver"
Example #25
0
 def __init__(self):
     super(_MaterialReinforced, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_MaterialReinforced",
                                          "Reinforced material (concrete)")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MaterialReinforced",
         "Creates a material for reinforced matrix material such as concrete"
     )
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_set_edit"
Example #26
0
 def __init__(self):
     super(_ClippingPlaneRemoveAll, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_ClippingPlaneRemoveAll",
         "Remove all clipping planes"
     )
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ClippingPlaneRemoveAll",
         "Remove all clipping planes"
     )
     self.is_active = "with_document"
Example #27
0
 def __init__(self):
     super(_MeshDisplayInfo, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshDisplayInfo",
         "Display FEM mesh info"
     )
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshDisplayInfo",
         "Display FEM mesh info"
     )
     self.is_active = "with_femmesh"
Example #28
0
 def __init__(self):
     super(_MeshClear, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshClear",
         "Clear FEM mesh"
     )
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_MeshClear",
         "Clear the Mesh of a FEM mesh object"
     )
     self.is_active = "with_femmesh"
Example #29
0
 def __init__(self):
     super(_FEMMesh2Mesh, self).__init__()
     self.menutext = Qt.QT_TRANSLATE_NOOP(
         "FEM_FEMMesh2Mesh",
         "FEM mesh to mesh"
     )
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_FEMMesh2Mesh",
         "Convert the surface of a FEM mesh to a mesh"
     )
     self.is_active = "with_femmesh_andor_res"
Example #30
0
 def __init__(self):
     super(_ConstantVacuumPermittivity, self).__init__()
     self.pixmap = "fem-solver-analysis-thermomechanical.svg"
     self.menutext = Qt.QT_TRANSLATE_NOOP("FEM_ConstantVacuumPermittivity",
                                          "Constant vacuum permittivity")
     self.tooltip = Qt.QT_TRANSLATE_NOOP(
         "FEM_ConstantVacuumPermittivity",
         "Creates a FEM constant vacuum permittivity to overwrite standard value"
     )
     self.is_active = "with_document"
     self.is_active = "with_analysis"
     self.do_activated = "add_obj_on_gui_noset_edit"