Model.elementchecksettings#

Model.elementchecksettings(solver, jacobian_2d, jacobian_3d, min_len_2d, min_len_3d, aspect_2d, aspect_3d, skew_2d, skew_3d, angle, warpage, taper, chord_dev, tetra_collapse, cell_squish_2d, equi_skew_2d, cell_squish_3d, equi_skew_3d, time_step, reserved_1, reserved_2, reserved_3, reserved_4)#

Specifies the methods for calculating element quality checks which are generally those used by an FE solver. If an invalid method index is specified for any check, the check is utilized.

Parameters:
  • solver (int) –

    Solver method to use for all checks. If a value of -1 is given, a distinct method can be supplied for some individual checks (see each option below to determine relevance). Valid values for the method/solver are: 0 - HyperMesh

    1 - Abaqus

    2 - I-deas

    3 - LS-DYNA

    4 - Moldflow

    5 - Nastran

    6 - OptiStruct

    8 - Radioss

    9 - ANSYS

    10 - Medina

    12 - HyperMesh-Alt

  • jacobian_2d (int) –

    Flag indicating the type of Jacobian calculation to use for 2D elements. Valid values are:

    0 - Calculate at integration points (default value)

    1 - Calculate at corners

    2 - At corner and mid points

    3 - At high order integration points

  • jacobian_3d (int) –

    Flag indicating the type of Jacobian calculation to use for 3D elements. Valid values are:

    0 - Calculate at integration points

    1 - Calculate at corners

    2 - At corner and mid points

    3 - At high order integration points

    4 - Scaled corner Jacobian

    5 - Raw corner Jacobian

  • min_len_2d (int) –

    Flag for minimum 2D element edge calculations. Valid values are:

    0 - Calculate using the shortest edge

    1 - Calculate using the minimum normalized height (default value)

    2 - Calculate using the minimum height

    10 - Calculate using Radioss default formulation

    20 - Calculate using LS-DYNA ISDO=0

    21 - Calculate using LS-DYNA ISDO=1

    22 - Calculate using LS-DYNA ISDO=2

    30 - Calculate using PAM-CRASH LARGE active

    31 - Calculate using PAM-CRASH SMALL active

    If solver is changed to LS-DYNA then :python:` min_len_2d` parameter is ignored and 2D element edge calculations is set to LS-DYNA ISDO=0. Methods 1 and 2 differ only for tria elements. Method 1 finds minimum tria length as its minimum height multiplied by the factor sqrt(3)/2. For equilateral triangles, this method returns exactly the triangle side length. Method 2 finds the minimum tria length as its minimum height.

  • min_len_3d (int) –

    Flag for minimum 3D element edge calculations. Valid values are:

    0 - Calculate using the shortest edge

    2 - Calculate using the minimum height (tetra) (default value)

    10 - Calculate using Radioss default formulation

    20 - Calculate using LS-DYNA ISDO=0

    21 - Calculate using LS-DYNA ISDO=1

    22 - Calculate using LS-DYNA ISDO=2

    30 - Calculate using PAM-CRASH LARGE active

    31 - Calculate using PAM-CRASH SMALL active

    If solver is changed to LS-DYNA then min_len_3d parameter is ignored and 3D element edge calculations is set to minimum height.

  • aspect_2d (int) –

    Method used to calculate the aspect ratio of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    2 - Ideas

    3 - LS-DYNA

    4 - Moldflow

    5 - Nastran

    6 - OptiStruct

    8 - Patran

    9 - ANSYS

    10 - Medina

    12 - HyperMesh-Alt

  • aspect_3d (int) –

    Method used to calculate the aspect ratio of 3D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    2 - Ideas

    3 - LS-DYNA

    4 - Moldflow

    5 - Nastran

    8 - Patran

    9 - ANSYS

  • skew_2d (int) –

    Method used to calculate the skew of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    2 - Ideas

    3 - LS-DYNA

    5 - Nastran

    6 - OptiStruct

    8 - Patran

    9 - ANSYS

    10 - Medina

    12 - HyperMesh-Alt

  • skew_3d (int) –

    Method used to calculate the skew of 3D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    3 - LS-DYNA

  • angle (int) –

    Method used to calculate the interior angle of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    3 - LS-DYNA

    5 - Nastran

    6 - OptiStruct

    8 - Patran

    9 - ANSYS

    10 - Medina

  • warpage (int) –

    Method used to calculate the warpage of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    1 - Abaqus

    2 - Ideas

    3 - LS-DYNA

    5 - Nastran

    6 - OptiStruct

    8 - Patran

    9 - ANSYS

    10 - Medina

    12 - HyperMesh-Alt

  • taper (int) –

    Method used to calculate the taper of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    2 - Ideas

    3 - LS-DYNA

    5 - Nastran

    6 - OptiStruct

    8 - Patran

    10 - Medina

    12 - HyperMesh-Alt

  • chord_dev (int) –

    Method used to calculate chordal deviation of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    3 - LS-DYNA

  • tetra_collapse (int) –

    Method used to calculate tetra collapse of tetra elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    3 - LS-DYNA

  • cell_squish_2d (int) –

    Method used to calculate cell squish of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

    3 - LS-DYNA

  • equi_skew_2d (int) –

    Method used to calculate the equi skew of 2D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

  • cell_squish_3d (int) –

    Method used to calculate cell squish of 3D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

  • equi_skew_3d (int) –

    Method used to calculate the equi skew of 3D elements. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

  • time_step (int) –

    Method used to calculate time step. This value is used only if the solver=-1. Valid methods are:

    0 - HyperMesh

  • reserved_1 (int) – Reserved for future use. Should always be 0.

  • reserved_2 (int) – Reserved for future use. Should always be 0.

  • reserved_3 (int) – Reserved for future use. Should always be 0.

  • reserved_4 (int) – Reserved for future use. Should always be 0.

Example#

Use the OptiStruct checks#
import hm
import hm.entities as ent

model = hm.Model()

model.elementchecksettings(
    solver=6,
    jacobian_2d=0,
    jacobian_3d=0,
    min_len_2d=1,
    min_len_3d=1,
    aspect_2d=6,
    aspect_3d=0,
    skew_2d=6,
    skew_3d=0,
    angle=6,
    warpage=6,
    taper=6,
    chord_dev=0,
    tetra_collapse=0,
    cell_squish_2d=0,
    equi_skew_2d=0,
    cell_squish_3d=0,
    equi_skew_3d=0,
    time_step=0,
    reserved_1=0,
    reserved_2=0,
    reserved_3=0,
    reserved_4=0,
)