RCAIDE.Framework.External_Interfaces.OpenVSP.write_vsp_mesh
write_vsp_mesh#
- write_vsp_mesh(geometry, tag, half_mesh_flag, growth_ratio, growth_limiting_flag)[source]#
This create an .stl surface mesh based on a vehicle stored in a .vsp3 file.
Assumptions: None
Source: N/A
Inputs: geometry. - Also passed to set_sources
wings.main_wing.chords.mean_aerodynamic [m]
half_mesh_flag <boolean> determines if a symmetry plane is created growth_ratio [-] growth ratio for the mesh growth_limiting_flag <boolean> determines if 3D growth limiting is used
Outputs: <tag>.stl
Properties Used: N/A
- set_sources(geometry)[source]#
This sets meshing sources in a way similar to the OpenVSP default. Some source values can also be optionally specified as below.
Assumptions: None
Source: OpenVSP/OpenVSP (with some modifications)
Inputs: geometry.
- wings.*. (passed to add_segment_sources())
tag <string> Segments.*.percent_span_location [-] (.1 is 10%) Segments.*.root_chord_percent [-] (.1 is 10%) chords.root [m] chords.tip [m] vsp_mesh (optional) - This holds settings that are used in add_segment_sources
- fuselages.*.
tag <string> vsp_mesh. (optional)
length [m] radius [m]
lengths.total (only used if vsp_mesh is not defined for the fuselage)
Outputs: <tag>.stl
Properties Used: N/A
- add_segment_sources(comp, cr, ct, ii, u_start, num_secs, custom_flag, wingtip_flag, seg)[source]#
This sets meshing sources for the wing segments according to their size and position.
Assumptions: None
Source: OpenVSP/OpenVSP (with some modifications)
Inputs: comp <string> - OpenVSP component ID cr [m] - root chord ct [m] - tip chord ii [-] - segment index u_start [-] - OpenVSP parameter determining the u dimensional start point num_secs [-] - number of segments on the corresponding wing custom_flag <boolean> - determines if custom source settings are to be used wingtip_flag <boolean> - indicates if the current segment is a wingtip seg.vsp_mesh. (only used if custom_flag is True)
inner_length [m] - length of inboard element edge outer_length [m] - length of outboard element edge inner_radius [m] - radius of influence for inboard source outer_radius [m] - radius of influence for outboard source
Outputs: None - sources are added to OpenVSP instance
Properties Used: N/A