RCAIDE.Framework.External_Interfaces.OpenVSP.export_vsp_vehicle

export_vsp_vehicle#

export_vsp_vehicle(vehicle, vehicle_tag, fuel_tank_set_ind=3, verbose=True, write_file=True, OML_set_ind=4, write_igs=False)[source]#

This writes a RCAIDE vehicle to OpenVSP format. It will take wing segments into account if they are specified in the vehicle setup file.

Assumptions: Vehicle is composed of conventional shape fuselages, wings, and networks. Any network that should be created is tagged as ‘turbofan’.

Source: N/A

Inputs: vehicle.

tag [-] wings.*. (* is all keys)

origin [m] in all three dimensions spans.projected [m] chords.root [m] chords.tip [m] sweeps.quarter_chord [radians] twists.root [radians] twists.tip [radians] thickness_to_chord [-] dihedral [radians] tag <string> Segments.*. (optional)

twist [radians] percent_span_location [-] .1 is 10% root_chord_percent [-] .1 is 10% dihedral_outboard [radians] sweeps.quarter_chord [radians] thickness_to_chord [-]

networks.turbofan. (optional)

number_of_engines [-] nacelle_diameter [m] origin [m] in all three dimension, should have as many origins as engines OpenVSP_simple (optional) <boolean> if False (default) create a flow through nacelle, if True creates a roughly biparabolic shape

fuselages.fuselage (optional)

width [m] lengths.total [m] heights.

maximum [m] at_quarter_length [m] at_wing_root_quarter_chord [m] at_three_quarters_length [m]

effective_diameter [m] fineness.nose [-] ratio of nose section length to fuselage width fineness.tail [-] ratio of tail section length to fuselage width tag <string> OpenVSP_values. (optional)

nose.top.angle [degrees] nose.top.strength [-] this determines how much the specified angle influences that shape nose.side.angle [degrees] nose.side.strength [-] nose.TB_Sym <boolean> determines if top angle is mirrored on bottom nose.z_pos [-] z position of the nose as a percentage of fuselage length (.1 is 10%) tail.top.angle [degrees] tail.top.strength [-] tail.z_pos (optional, 0.02 default) [-] z position of the tail as a percentage of fuselage length (.1 is 10%)

fuel_tank_set_index <int> OpenVSP object set containing the fuel tanks

Outputs: <tag>.vsp3 This is the OpenVSP representation of the aircraft

Properties Used: N/A