Saving the Mesh after Parametrization #133
-
It is a query regarding the Aerodynamic Optimization tutorial, specific to Geometric Parametrization. The tutorial briefly explains about how FFD box is created and visualizing the deformed FFD box. I would like to know if I can use IDWrap to save a parameterized grid file. Something like I tried the tutorial available here but was unsuccessful since it did not utilize the FFD box method. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi Abjith, I'm not sure I understand your question, what do you mean by a "paramterized grid file"? The idwarp tutorial you linked to doesn't assume you are using an FFD. |
Beta Was this translation helpful? Give feedback.
-
Hi @A-CGray Thanks for your reply. I will rephrase my question with a visual example. Within the tools available in MDO lab packages, I am interested in understanding whether it is possible to directly parameterize a CGNS mesh using the FFD box, driven by design variable moments. And then save the parameterized mesh in CGNS format. FFD box for parameterizing the mesh: Resulting mesh: Many thanks Best |
Beta Was this translation helpful? Give feedback.
-
Yes this is possible. You'll have to combine the steps from the two tutorials you linked to. Basically, follow the same steps as the idwarp tutorial you linked, but then instead of updating the surface coordinates using this code: # Modify the coordinates as required
newCoords = coords0.copy()
for i in range(len(coords0)):
newCoords[i, :] *= 1.1 You will want to generate |
Beta Was this translation helpful? Give feedback.
Yes this is possible. You'll have to combine the steps from the two tutorials you linked to.
Basically, follow the same steps as the idwarp tutorial you linked, but then instead of updating the surface coordinates using this code:
You will want to generate
newCoords
using the FFD following the steps in the MACH-Aero tutorial you linked to. The morphed surface coordinates you need to pass to idwarp are returned by theDVGeo.update
function