Model.createcaero2bodymeshing#
- Model.createcaero2bodymeshing(componentid, halfwidths, igid, interferenceangles, length, location, systemid, bodyname='', mode=0, nint=0, nsb=0, tableid1=0, tableid2=0)#
Creates a component for aeroelastic panel mesh CAERO2.
- Parameters:
componentid (int) – The start value for component and element numbering.
halfwidths (hwDoubleList) – The list describing halfwidth or radius of the body at each interval along the length of body. A single value makes a body with a constant radius.
igid (int) – The interference group identifier.
interferenceangles (hwDoubleList) – The angles along the radial direction of the body elements.
length (double) – The length of the body in the local x direction of the aerodynamic coordinate system.
location (hwTriple) – The hwTriple object defining the coordinates of the origin point. User can also supply a Python list of three doubles.
systemid (int) – The ID of the system for locating the origin point.
bodyname (hwString) – The name of the CAERO2 body entity. If not specified, CAERO2_<
componentid> is used.mode (int) –
Valid options:
0 - Create component (default)
1 - Update component
nint (int) – The number of interface elements. If not provided, must specify
tableid2.nsb (int) – The number of slenderbody elements. If not provided, must specify
tableid1.tableid1 (int) – The ID of an AEFACT table containing the list of division points for slenderbody elements. Used only if
nsbis not provided.tableid2 (int) – The ID of an AEFACT table containing the list of division points for interface elements. Used only if
nintis not provided.
Example#
Create an aero component with ID 62001 , with 10 slenderbody elements (nsb=10) , and 6 interface elements (nint=6)#import hm import hm.entities as ent model = hm.Model() # Creating an aero component with ID 62001, nsb=10, and nint=6 model.createcaero2bodymeshing( componentid=62001, systemid=502, mode=0, nsb=10, nint=6, location=[248, 35.0, 274.62], length=476, halfwidths=[20.0, 40.0, 60.0, 80.0, 90.0, 80.0, 70.0], interferenceangles=[0.0, 60.0, 120.0, 180.0, 240.0, 300.0], igid=1, )