femtools.ccxtools.FemToolsCcx Class Reference

Public Member Functions

def ccx_run (self)
 
def check_prerequisites (self)
 
def find_analysis (self)
 
def find_solver (self)
 
def find_solver_analysis (self)
 
def get_ccx_version (self)
 
def has_no_material_assigned (self)
 
def has_nonpositive_jacobians (self)
 
def load_results (self)
 
def load_results_ccxdat (self)
 
def load_results_ccxfrd (self)
 
def purge_results (self)
 
def reset_all (self)
 
def reset_mesh_purge_results_checked (self)
 
def run (self)
 
def set_base_name (self, base_name=None)
 
def set_inp_file_name (self, inp_file_name=None)
 
def setup_ccx (self, ccx_binary=None, ccx_binary_sig="CalculiX")
 
def setup_working_dir (self, param_working_dir=None, create=False)
 
def start_ccx (self)
 
def update_objects (self)
 
def write_inp_file (self)
 

Public Attributes

 analysis
 
 base_name
 
 ccx_binary
 
 ccx_binary_present
 
 ccx_prefs
 
 ccx_stderr
 
 ccx_stdout
 
 fem_prefs
 
 inp_file_name
 
 member
 
 mesh
 mesh for the analysis More...
 
 result_object
 
 results_present
 
 solver
 
 test_mode
 
 working_dir
 

Static Public Attributes

 finished = QtCore.Signal(int)
 

Detailed Description

Attributes
----------
analysis : Fem::FemAnalysis
    FEM group analysis object
    has to be present, will be set in __init__
solver : Fem::FemSolverObjectPython
    FEM solver object
    has to be present, will be set in __init__
base_name : str
    name of .inp/.frd file (without extension)
    It is used to construct .inp file path that is passed to CalculiX ccx
ccx_binary : str
working_dir : str
results_present : bool
    indicating if there are calculation results ready for us
members : class femtools/membertools/AnalysisMember
    contains references to all analysis member except solvers and mesh
    Updated with update_objects

Member Function Documentation

◆ ccx_run()

◆ check_prerequisites()

def femtools.ccxtools.FemToolsCcx.check_prerequisites (   self)

References femmesh.gmshtools.GmshTools.analysis, femmesh.meshsetsgetter.MeshSetsGetter.analysis, femsolver.elmer.writer.Writer.analysis, femsolver.run.BaseTask.analysis(), femsolver.writerbase.FemInputWriter.analysis, femtaskpanels.task_mesh_gmsh._TaskPanel.analysis, femtools.ccxtools.FemToolsCcx.analysis, femtools.membertools.AnalysisMember.analysis, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.action_directive.analysis, automotive_design.action_directive.analysis, config_control_design.action_directive.analysis, femtools.checksanalysis.check_member_for_solver_calculix(), femmesh.meshsetsgetter.MeshSetsGetter.member, femsolver.writerbase.FemInputWriter.member, femtools.ccxtools.FemToolsCcx.member, femsolver.fenics.fenics_tools.XDMFReader.mesh, femtools.ccxtools.FemToolsCcx.mesh, MeshCore::MeshPlaneVisitor.mesh, Mesh::MeshSegment.mesh, MeshTestsApp.MeshSplitTestCases.mesh, MeshTestsApp.MeshSubElement.mesh, MeshGui::ViewProviderFace.mesh, MeshGui::RemeshGmsh::Private.mesh, MeshGui::SoFCMeshObjectElement.mesh, MeshGui::SoFCMeshPickNode.mesh, MeshGui::SoFCMeshObjectNode.mesh, MeshGui::MeshSplit.mesh, MeshPartGui::MeshCrossSection.mesh, MeshPartGui::CurveOnMeshHandler::Private.mesh, Sandbox::MeshLoaderThread.mesh, MeshThread.mesh, MengerSponge.MengerThread.mesh, femsolver.elmer.writer.Writer.solver, femsolver.run.BaseTask.solver, femsolver.run.Machine.solver, femtools.ccxtools.FemToolsCcx.solver, femmesh.gmshtools.GmshTools.working_dir, and femtools.ccxtools.FemToolsCcx.working_dir.

Referenced by femtools.ccxtools.FemToolsCcx.run().

◆ find_analysis()

◆ find_solver()

◆ find_solver_analysis()

◆ get_ccx_version()

def femtools.ccxtools.FemToolsCcx.get_ccx_version (   self)

◆ has_no_material_assigned()

◆ has_nonpositive_jacobians()

◆ load_results()

◆ load_results_ccxdat()

◆ load_results_ccxfrd()

◆ purge_results()

◆ reset_all()

◆ reset_mesh_purge_results_checked()

def femtools.ccxtools.FemToolsCcx.reset_mesh_purge_results_checked (   self)
Reset mesh color, deformation and removes all result objects
if preferences to keep them is not set.

◆ run()

◆ set_base_name()

def femtools.ccxtools.FemToolsCcx.set_base_name (   self,
  base_name = None 
)
Set base_name

Parameters
----------
base_name : str, optional
    base_name base name of .inp/.frd file (without extension).
    It is used to construct .inp file path that is passed to CalculiX ccx

References femtools.ccxtools.FemToolsCcx.base_name, and femtools.ccxtools.FemToolsCcx.set_inp_file_name().

◆ set_inp_file_name()

def femtools.ccxtools.FemToolsCcx.set_inp_file_name (   self,
  inp_file_name = None 
)
Set inp file name. Normally inp file name is set by write_inp_file.
That name is also used to determine location and name of frd result file.

Parameters
----------
inp_file_name : str, optional
    input file name path

Referenced by femtools.ccxtools.FemToolsCcx.set_base_name(), and femtools.ccxtools.FemToolsCcx.setup_working_dir().

◆ setup_ccx()

def femtools.ccxtools.FemToolsCcx.setup_ccx (   self,
  ccx_binary = None,
  ccx_binary_sig = "CalculiX" 
)
Set Calculix binary path and validate its execution.

Parameters
----------
ccx_binary : str, optional
    It defaults to `None`. The path to the `ccx` binary. If it is `None`,
    the path is guessed.
ccx_binary_sig : str, optional
    Defaults to 'CalculiX'. Expected output from `ccx` when run empty.

References femtools.ccxtools.FemToolsCcx.ccx_binary.

Referenced by femtools.ccxtools.FemToolsCcx.ccx_run(), and femtools.ccxtools.FemToolsCcx.get_ccx_version().

◆ setup_working_dir()

def femtools.ccxtools.FemToolsCcx.setup_working_dir (   self,
  param_working_dir = None,
  create = False 
)
Set working dir for solver execution.

Parameters
----------
param_working_dir :  str, optional
    directory to be used for writing
create : bool, optional
    Should the working directory be created if it does not exist

References femtools.ccxtools.FemToolsCcx.set_inp_file_name(), femsolver.elmer.writer.Writer.solver, femsolver.run.BaseTask.solver, femsolver.run.Machine.solver, femtools.ccxtools.FemToolsCcx.solver, femmesh.gmshtools.GmshTools.working_dir, and femtools.ccxtools.FemToolsCcx.working_dir.

Referenced by femtools.ccxtools.FemToolsCcx.run().

◆ start_ccx()

def femtools.ccxtools.FemToolsCcx.start_ccx (   self)

◆ update_objects()

def femtools.ccxtools.FemToolsCcx.update_objects (   self)

◆ write_inp_file()

def femtools.ccxtools.FemToolsCcx.write_inp_file (   self)

Member Data Documentation

◆ analysis

◆ base_name

femtools.ccxtools.FemToolsCcx.base_name

◆ ccx_binary

◆ ccx_binary_present

femtools.ccxtools.FemToolsCcx.ccx_binary_present

◆ ccx_prefs

femtools.ccxtools.FemToolsCcx.ccx_prefs

◆ ccx_stderr

femtools.ccxtools.FemToolsCcx.ccx_stderr

◆ ccx_stdout

◆ fem_prefs

femtools.ccxtools.FemToolsCcx.fem_prefs

◆ finished

femtools.ccxtools.FemToolsCcx.finished = QtCore.Signal(int)
static

◆ inp_file_name

◆ member

femtools.ccxtools.FemToolsCcx.member

Referenced by femtools.ccxtools.FemToolsCcx.check_prerequisites(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_centrif_elements(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_contact_faces(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_displacement_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_fixed_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_fluidsection_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_force_nodeloads(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_heatflux_faces(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_planerotation_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_pressure_faces(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_sectionprint_faces(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_temperature_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_tie_faces(), femmesh.meshsetsgetter.MeshSetsGetter.get_constraints_transform_nodes(), femmesh.meshsetsgetter.MeshSetsGetter.get_element_fluid1D_elements(), femmesh.meshsetsgetter.MeshSetsGetter.get_element_geometry1D_elements(), femmesh.meshsetsgetter.MeshSetsGetter.get_element_geometry2D_elements(), femmesh.meshsetsgetter.MeshSetsGetter.get_element_rotation1D_elements(), femmesh.meshsetsgetter.MeshSetsGetter.get_element_sets_material_and_femelement_geometry(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_multiple_beam(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_multiple_fluid(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_multiple_shell(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_single_beam(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_single_fluid(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_single_shell(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_multiple_mat_solid(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_multiple_beam(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_multiple_fluid(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_multiple_shell(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_single_beam(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_single_fluid(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_single_shell(), femmesh.meshsetsgetter.MeshSetsGetter.get_mat_geo_sets_single_mat_solid(), femmesh.meshsetsgetter.MeshSetsGetter.get_material_elements(), femsolver.z88.writer.FemInputWriterZ88.write_z88_constraints(), femsolver.z88.writer.FemInputWriterZ88.write_z88_elements_properties(), and femsolver.z88.writer.FemInputWriterZ88.write_z88_materials().

◆ mesh

◆ result_object

femtools.ccxtools.FemToolsCcx.result_object

◆ results_present

◆ solver

◆ test_mode

femtools.ccxtools.FemToolsCcx.test_mode

◆ working_dir


The documentation for this class was generated from the following file: