### 6.6.1. SolidModel

`class compolyx.SolidModel`(graph, obj, parent=None)

Solid Model class

`active`

  Solid-Model active

`add_disable_dropoff_set_on_bottom`(set)

  Add set where the drop-offs on bottom surface are disabled

`add_disable_dropoff_set_on_top`(set)

  Add set where the drop-offs on top surface are disabled

`add_element_set`(element_set)

  Add Element Set to Solid Model

`analysis_plies`

  Analysis Plies of the Solid Model

`clear_disable_dropoff_sets_on_bottom`()

  Clear sets where the drop-offs on bottom are disabled

`clear_disable_dropoff_sets_on_top`()

  Clear sets where the drop-offs on top are disabled

`clear_element_sets`()

  Clear Element Sets of Solid Model

`clear_generated_data`()

  Function clears generated solid model but keeps all definitions.

`connect_butt_joined_plies`

  Do not make drop-offs between butt-joined plies if set to True

`coordinate_system_index`

  Coordinate System index

`copy_cut_off_geometry_obj`(source)

  Copy a Cut Off Geometry

  Parameters

  - source : Source object to copy

  Returns

  New instance of a Cut Off Geometry

`copy_extrusion_guide`(source)

  Copy a Extrusion Guide

  Parameters

  - source : Source object to copy

  Returns

  New instance of a Extrusion Guide

`copy_snap_to_geometry_obj`(source)

  Copy a Snap To Geometry

  Parameters

  - source : Source object to copy

  Returns

  New instance of a Snap To Geometry

`create_cut_off_geometry_obj`(name, cad_geometry=None, orientation='up', active=True, id='', rel_merge_tolerance=0.1)

  Create a new cut-off geometry object

  Parameters

  - name : the name of the object

  - id : the id of the object

  - cad_geometry : a geometry to snap to

  - orientation : "up" or "down"

  Retruns

  Cut off geometry

`create_extrusion_guide`(name, edge_set=None, id='', cad_geometry=None, direction=(0.0, 0.0, 0.0), radius=None, depth=1.0, use_curvature_correction=False, active=True)

  Create a new extrusion guide

  Parameters

  - name : the name of the extrusion guide

  - edge_set : an edge set where this guide applies

  - id : the id of the extrusion guide

  - cad_geometry : a cad geometry object

  - direction : Extrusion direction

  - radius

      distance up to which node translations due to the guide will be propagated through the mesh

      0.0 : only the nodes extruded from edge_set will be shifted onto the guide

  - depth

      intensity for the propagation of mesh corrections

      1.0 : linear decay from guide to radius >1.0 : higher reach <1.0 : more local

  - use_curvature_correction : whether to use curvature correction algorithm to smooth mesh adapted to extrusion guide. Default is False

`create_snap_to_geometry_obj`(name, cad_geometry=None, oriented_selection_set=None, orientation='top', active=True, id='')

  Create a new snap-to-geometry object

  Parameters

  - name : the name of the object

  - id : the id of the object

  - active : pass the active-flag of the object

  - cad_geometry : a geometry to snap to

  - oriented_selection_set : oriented element set where this snap to applies

  - orientation : "top" or "bottom"

`cut_off_geometry_objs`

  Cut-Off Geometry objects

`delete_bad_elements`

  Boolean whether to delete the erroneous elements.

`disable_dropoff_sets_on_bottom`

  Elements where the drop-offs on bottom are disabled.

`disable_dropoff_sets_on_top`

  Elements of where the drop-offs on top are disabled.

`disable_dropoffs_on_bottom`

  Boolean whether to disable the drop-off elements on bottom surface.

`disable_dropoffs_on_top`

  Boolean whether to disable the drop-off elements on top surface.

`disable_numbering_updates`

  Debug option to disable all numbering updates. Note that the status of this option is not saved.

`disable_skin_components`

  Debug option to disable the creation of skin components. Note that the status of this option is not saved.

`drop_hanging_nodes`

  If the hanging nodes are exported or dropped

`drop_off_type`

  Drop-off type. Allowed string values: ['outside_ply', 'inside_ply']

`element_index`

  Element offset index

`element_sets`

  Element Set of the solid model.

`enabled`

  Whether this object is currently enabled or not. Solid Models are are enabled in pre and shared mode.

`ex_type`

  Extrusion type. Allowed string values: ['sandwich_wise', 'modeling_ply_wise', 'material_wise', 'monolithic', 'production_ply_wise', 'analysis_ply_wise', 'specify_thickness', 'user_defined']

`extrusion_guides`

  Extrusion Guides

`global_cut_off_material`

  Element Set of the solid model.

`global_drop_off_material`

  Element Set of the solid model.

`is_uptodate`

  Update status of the object

`locked`

  Solid Model is generated from an imported source and cannot be changed.

`material_index`

  Material index

`max_thickness`

  Maximum thickness of solid elements.

`node_index`

  Node offset index

`offset_type`

  Offset type. Allowed string values: ['surface_normal', 'shell_normal']

`ply_group_pointers`

  Ply group pointers for user defined extrusion.

`remove_element_set`(element_set)

  Remove Element Set from the solid model

`remove_global_cut_off_material`()

  Removes the global cutoff material of the SolidModel

`remove_global_drop_off_material`()

  Removes the global dropoff material of the SolidModel

`reorder_extrusion_guides`(source, target, type)

  Reorders the extrusion guides

  Parameters

  - source : Extrusion guide to be reordered.

  - target : Place to put the source.

  - type : Can be 'after' or 'before'. Defines if the source is put before or after the target.

  Usage

      >>> sm.reorder_extrusion_guides(source = sm.extrusion_guides['wall'], target=sm.extrusion_guides['leading_edge'], type='after')

`section_index`

  Section offset index

`shell_elements`()

  Function returns the shell elements where this extrusion operates on

`snap_to_geometry_objs`

  Snap to Geometry objects

`solid_elements`(include_solver_elements)

  Parameters

  - include_solver_elements

      controls whether all layered elements are returned or if

      the solver elements are returned for layered elements which have them.

  Returns

  A list with solid element labels of current solid model

`transfer_all_sets`

  Whether to transfer all edge and element sets to the solid model or not.

`transferred_edge_sets`

  Edge sets to transfer to solid model. Only processed if transfer_all_sets=False.

`transferred_element_sets`

  Element sets to transfer to solid model. Only processed if transfer_all_sets=False.

`update_update_status_from_dependent_objects`()

  update the update-status from dependent objects of the SolidModel

`use_default_coordinate_system_index`

  Use consecutive coordinate system numbering

`use_default_element_index`

  Use consecutive element numbering

`use_default_material_index`

  Use consecutive material numbering

`use_default_node_index`

  Use consecutive node numbering

`use_default_section_index`

  Use consecutive section numbering

`use_solid_model_prefix`

  If the solid model name is used as a prefix for all components exported to the *cdb file

`use_solsh_elements`

  If selected solid-shell elements are written to the *cdb file

`warping_limit`

  Defines the maximum allowable warping limit.

`write_degenerated_elements`

  If set to false no drop-off and cut-off elements are written to the *cdb file

`write_h5_and_cdb_file`(path)

  Writes the h5 and cdb file for ANSYS. The file extensions are added automatically.

  Usage

  solid_model.write_h5_and_cdb_file(r'C: mphull_solid_model')

  Parameters

  - path : The file path without extension

`write_lsdyna_solid_model`(path, part_number=1, mat_type='mat_enhanced_composite_damage')

  Export solid model as FE model for LS Dyna

  Parameters

  - path : Out file path (file extension must be .k)

  - part_number : Ls Dyna part number (default is 1)

  - mat_type : LS Dyna material card type (default is 'MAT_ENHANCED_COMPOSITE_DAMAGE')

  Supported mat_types:

    - 'MAT_ENHANCED_COMPOSITE_DAMAGE'

    - 'MAT_COMPOSITE_DAMAGE'

    - 'MAT_COMPOSITE_FAILURE_SOLID_MODEL'

    - 'MAT_COMPOSITE_DMG_MSC'

    - 'MAT_USER_DEFINED_MATERIAL_MODELS'

`write_solid_model`(path)

  Export solid model as FE model for ANSYS

  Parameters

  - path : Out file path (currently allowed formats are .cdb or .h5)

Release 18.2 - © ANSYS, Inc. All rights reserved.