Model.createCAERO2card#

Model.createCAERO2card(start_id, system_id, origin_coordinate, length, n_int, n_slend, radii, theta, axis=1)#

Creates a body component of type CAERO2.

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

  • system_id (int) – The ID of the local coordinate system which the mesh will be generated based on. A value of 0 indicates the global coordinate system.

  • origin_coordinate (hwString) – The location of the origin. This must be 3 values enclosed in double quotes.

  • length (double) – The length along the x-axis of the coordinate system.

  • n_int (int) – The number of interference elements.

  • n_slend (int) – The number of slender body elements.

  • radii (hwString) – The radius at each interval along the length of the body. This must be the same number of values as given by n_slend, and must be enclosed in double quotes.

  • theta (hwString) – The angle along the radial direction of the body. This must be the same number of values as given by n_int, and must be enclosed in double quotes.

  • axis (int) –

    1 - x-axis

    2 - y-axis

    3 - z-axis

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()

# Creating collection containing node with ID 1
input_collection = hm.Collection(model, ent.Node, [1])

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
)