Fuselage - Spline or Cubic bezier as cross sections geometry #70
-
Hello everyone, Firstly I would like to thank all the team for this amazing tool and to provide it for free. I am currently following an eVTOL aircraft tutorial and I am facing a challenge regarding the geometry definition and simulation of an eVTOL aircraft. Specifically, I am using one of the NASA UAM references, namely the Lift plus Cruise configuration. While I have successfully defined the wings and rotors of the aircraft, I am now faced with the task of defining the fuselage. Typically, in the vsp3 file format, fuselage sections are defined using Cubic Bezier curves. However, I have not been able to find this option for defining cross sections. The only available method seems to be gt.conic_cross_section(Ps, CPs, rhos, ss). I am seeking assistance in this endeavor. Is there a way to convert a geometry defined using Cubic Bezier curves to conic cross sections? Alternatively, I would be even more interested to know if there are ongoing efforts to streamline the generation of components such as the airframe, including the possibility of direct import from any of the OpenVSP files export formats. For those, like me, who are trying to understand the conic cross section and its results, here is a code snippet that can be helpful in providing clarity: # after defining Ps, CPs, rhos, ss and scaling
# using Plots
points = gt.conic_cross_section(Ps, CPs, rhos, ss)
points = scaling*points
sections[1] = points;
scatter(Tuple.(sections[1]),size=(2600,1800),markersize=13,markercolor=:black,reuse=false)
Plots.title!("Section 1")
scalefontsizes()
scalefontsizes(5)
scatter!(Tuple.(Ps),size=(2600,1800),markersize=15,markercolor=:blue)
scatter!(Tuple.(CPs),size=(2600,1800),markersize=15,markercolor=:red) Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Gabriel! If you already have your Bezier curves, I would recommend just exporting them as points and using those points instead. Meaning, instead of using
simply do
|
Beta Was this translation helpful? Give feedback.
-
Regarding OpenVSP capabilities, @cibinjoseph has been working on integrating OpenVSP into FLOWUnsteady for the last few months. More info to come! =] |
Beta Was this translation helpful? Give feedback.
Hello @EdoAlvarezR,
Absolutely! The recent upgrade, especially the enhanced functionality for importing geometries from OpenVSP, has made the process of adding geometries to FLOWUnsteady incredibly straightforward. Big thanks to @cibinjoseph for this valuable contribution!
For completeness of this discussion, I attempted to develop a script to retrieve points defined in a CSV file and correctly create an object that can be read in FLOWUnsteady. The code is presented below: