ExportMapdlCdbParams#
- class ansys.meshing.prime.ExportMapdlCdbParams(model=None, config_settings=None, pre_solution_settings=None, material_properties=None, boundary_conditions=None, analysis_settings=None, write_cells=None, enable_face_based_labels=None, label_export_params=None, write_by_zones=None, consider_general_connectors_as_spot_weld=None, analysis_type=None, simulation_type=None, analysis_settings_file_name=None, write_separate_blocks=None, write_components_with_element_blocks=None, separate_blocks_format_type=None, export_tie_as_cntgen=None, export_coupling_as_sfcgen=None, export_fasteners_as_swgen=None, export_rigid_bodies_as_rbgen=None, write_component_based_ties=None, mortar_contact_for_ties=None, write_thickness_file=None, contact_element_types=None, reorder_spotweldsurface=None, skip_comments=None, json_data=None, **kwargs)#
Parameters to control MAPDL CDB export settings.
- Parameters:
- model: Model
Model to create a
ExportMapdlCdbParamsobject with default parameters.- config_settings: str, optional
MAPDL configuration settings in CDB format to be added at the beginning of the file.
This is a beta parameter. The behavior and name may change in the future.
- pre_solution_settings: str, optional
MAPDL Settings in CDB format to be added before the solution block in the file.
This is a beta parameter. The behavior and name may change in the future.
- material_properties: str, optional
Materials in CDB format to be added to the file.
This is a beta parameter. The behavior and name may change in the future.
- boundary_conditions: str, optional
Boundary conditions in CDB format to be added to the file.
This is a beta parameter. The behavior and name may change in the future.
- analysis_settings: str, optional
MAPDL analysis settings in CDB format to be added after the solution block in the file. Note: Boundary conditions can be included into analysis settings.
This is a beta parameter. The behavior and name may change in the future.
- write_cells: bool, optional
Option to write out cells as part of the file.
This is a beta parameter. The behavior and name may change in the future.
- enable_face_based_labels: bool, optional
Use LabelExportParams instead. Parameter enableFaceBasedLabels will be removed in 2025R2.
This is a beta parameter. The behavior and name may change in the future.
- label_export_params: LabelExportParams, optional
Parameters to control the export of labels as Nodal or Element Components in CDB.
This is a beta parameter. The behavior and name may change in the future.
- write_by_zones: bool, optional
Option to write zones in the file.
This is a beta parameter. The behavior and name may change in the future.
- consider_general_connectors_as_spot_weld: bool, optional
Option to translate all general connector joints (other than axial) to spot weld type. This is important when nodes are non coincident.
This is a beta parameter. The behavior and name may change in the future.
- analysis_type: CdbAnalysisType, optional
Option to specify CDB analysis type.
This is a beta parameter. The behavior and name may change in the future.
- simulation_type: CdbSimulationType, optional
Simulation type for the file.
This is a beta parameter. The behavior and name may change in the future.
- analysis_settings_file_name: str, optional
File path to export mapdl analysis settings.
This is a beta parameter. The behavior and name may change in the future.
- write_separate_blocks: bool, optional
Controls whether element blocks should be written separately. When true, writes elements in separate blocks based on the format specified in separate_blocks_format_type. When false, writes all elements into a single block.
This is a beta parameter. The behavior and name may change in the future.
- write_components_with_element_blocks: bool, optional
Controls whether component definitions should be written within individual element blocks. write_components_with_element_blocks only has effect when write_separate_blocks is true. When write_components_with_element_blocks is true, writes component commands for each element block. When write_components_with_element_blocks is false, writes components separately.
This is a beta parameter. The behavior and name may change in the future.
- separate_blocks_format_type: SeparateBlocksFormatType, optional
Controls the format type when writing separate element blocks. Only used when write_separate_blocks is true.
This is a beta parameter. The behavior and name may change in the future.
- export_tie_as_cntgen: bool, optional
Option to export ties as cntgen. When true, translates ties and contact pairs into compact cntgen blocks in the exported file. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- export_coupling_as_sfcgen: bool, optional
Option to export coupling as sfcgen. When true, translates kinematic or distributing coupling into compact sfcgen blocks in the exported file. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- export_fasteners_as_swgen: bool, optional
Option to export fasteners as swgen. When true, translates fasteners into compact swgen blocks in the exported file. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- export_rigid_bodies_as_rbgen: bool, optional
Option to export rigid bodies as rbgen. When true, translates rigid bodies into compact rbgen blocks in the exported file. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- write_component_based_ties: bool, optional
Option to write ties using component-based format. When true, writes ties using component selection and surface generation commands instead of explicit element definitions. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- mortar_contact_for_ties: bool, optional
Option to enable mortar contact for ties. When true, changes the key options for tie surfaces. The default value is false.
This is a beta parameter. The behavior and name may change in the future.
- write_thickness_file: bool, optional
Option to write a thickness file for spotweld fatigue analysis. If true, writes a file named [exportedFilename].cdb.thick.txt containing thickness information.
This is a beta parameter. The behavior and name may change in the future.
- contact_element_types: ContactElementTypeParams, optional
Parameters for choosing element types for contact surfaces in TIEs and CONTACT PAIRs.
This is a beta parameter. The behavior and name may change in the future.
- reorder_spotweldsurface: bool, optional
Parameters to choose the logic of spotweld computation. When false, computes spotwelds by prioritzing proximity of surface to spotweld. When true, computes spotwelds by prioritizing proximity of boundary surface to spotweld.
This is a beta parameter. The behavior and name may change in the future.
- skip_comments: bool, optional
Parameter to skip export of comments to the exported file.
This is a beta parameter. The behavior and name may change in the future.
- json_data: dict, optional
JSON dictionary to create a
ExportMapdlCdbParamsobject with provided parameters.
Examples
>>> export_mapdl_cdb_params = prime.ExportMapdlCdbParams(model = model)
Methods
Print the default values of
ExportMapdlCdbParamsobject.Set the default values of the
ExportMapdlCdbParamsobject.Attributes
Boundary conditions can be included into analysis settings.
File path to export mapdl analysis settings.
Option to specify CDB analysis type.
Boundary conditions in CDB format to be added to the file.
MAPDL configuration settings in CDB format to be added at the beginning of the file.
ExportMapdlCdbParams.consider_general_connectors_as_spot_weldOption to translate all general connector joints (other than axial) to spot weld type.
Parameters for choosing element types for contact surfaces in TIEs and CONTACT PAIRs.
Use LabelExportParams instead.
Option to export coupling as sfcgen.
Option to export fasteners as swgen.
Option to export rigid bodies as rbgen.
Option to export ties as cntgen.
Parameters to control the export of labels as Nodal or Element Components in CDB.
Materials in CDB format to be added to the file.
Option to enable mortar contact for ties.
MAPDL Settings in CDB format to be added before the solution block in the file.
Parameters to choose the logic of spotweld computation.
Controls the format type when writing separate element blocks.
Simulation type for the file.
Parameter to skip export of comments to the exported file.
Option to write zones in the file.
Option to write out cells as part of the file.
Option to write ties using component-based format.
Controls whether component definitions should be written within individual element blocks.
Controls whether element blocks should be written separately.
Option to write a thickness file for spotweld fatigue analysis.
Examples using ExportMapdlCdbParams#
Mesh a mid-surfaced bracket for a structural analysis