Model.createCAERO1#

Model.createCAERO1(start_id, n_span, n_chord, coordinates, mode=0, table_id_1=0, table_id_2=0, createproperty=1, propname=s_defaultString)#

Creates an aero component of type CAERO1.

Parameters:
  • start_id (int) – The ID from which the component and element numbering will start.

  • n_span (int) – The number of spanwise boxes to create.

  • n_chord (int) – The number of chordwise boxes to create.

  • coordinates (hwString) – The location of the four corner points. This must be 12 values enclosed in double quotes.

  • mode (int) –

    Flag for create or update of component:

    0 - Create

    1 - Update

  • table_id_1 (int) – The ID of the AEFACT table containing the 1D array of custom element sizes along the span direction.

  • table_id_2 (int) – The ID of the AEFACT table containing the 1D array of custom biasing sizes along the span direction.

  • createproperty (int) – Reserved for future development

  • propname (hwString) – Reserved for future development

Example#

Create a body component with ID 677771, system with ID 508, and considering the length along the y-axis of the coordinate system#
import hm
import hm.entities as ent

model = hm.Model()

model.createCAERO2card(
    start_id=677771,
    system_id=508,
    origin_coordinate="1011.96772 124.925267 172.770859",
    length=500.0,
    n_int=6,
    n_slend=7,
    radii="0 40.0 40.0 50.0 60.0 60.0 80.0",
    theta="0 60.0 120.0 180.0 240.0 300.0",
    axis=2,
)