RCAIDE.Framework.External_Interfaces.OpenVSP.vsp_nacelle

vsp_nacelle#

Functions

read_vsp_nacelle(nacelle_id, vsp_nacelle_type)

This reads an OpenVSP stack geometry or body of revolution and writes it to a RCAIDE nacelle format.

write_vsp_nacelle(nacelle, OML_set_ind)

This converts nacelles into OpenVSP format.

write_vsp_nacelle(nacelle, OML_set_ind)[source]#

This converts nacelles into OpenVSP format.

Assumptions: 1. If nacelle segments are defined, geometry written to OpenVSP is of type “StackGeom”.

1.a This type of nacelle can be either set as flow through or not flow through. 1.b Segments are defined in a similar manner to fuselage segments. See geometric

documentation in RCAIDE-Library-Components-Nacelles-Nacelle

  1. If nacelle segments are not defined, geometry written to OpenVSP is of type “BodyofRevolution”. 2.a This type of nacelle can be either set as flow through or not flow through. 2.b BodyofRevolution can be either be a 4 digit airfoil (type string) or super ellipse (default)

Source: N/A Inputs:

nacelle. origin [m] in all three dimension, should have as many origins as engines length [m] diameter [m] flow_through <boolean> if True create a flow through nacelle, if False create a cylinder segment(optional).

width [m] height [m] lenght [m] percent_x_location [m] percent_y_location [m] percent_z_location [m]

Outputs: Operates on the active OpenVSP model, no direct output Properties Used: N/A

read_vsp_nacelle(nacelle_id, vsp_nacelle_type, units_type='SI')[source]#

This reads an OpenVSP stack geometry or body of revolution and writes it to a RCAIDE nacelle format. If an airfoil is defined in body-of-revolution, its coordinates are not read in due to absence of API functions in VSP.

Assumptions:

Source: N/A

Inputs: 0. Pre-loaded VSP vehicle in memory, via import_vsp_vehicle. 1. VSP 10-digit geom ID for nacelle. 2. Units_type set to ‘SI’ (default) or ‘Imperial’.

Outputs: Writes RCAIDE nacelle, with these geometries: (all defaults are SI, but user may specify Imperial)

Nacelles.Nacelle.

origin [m] in all three dimensions width [m] lengths [m] heights [m] tag <string> segment[]. (segments are in ordered container and callable by number)

percent_x_location [unitless] percent_z_location [unitless] height [m] width [m]

Properties Used: N/A