KVSlab / turtleFSI

Monolithic Fluid-Structure Interaction (FSI) solver
https://turtlefsi2.readthedocs.io/en/latest/
GNU General Public License v3.0
63 stars 23 forks source link

How to get the same post results as the example case shown in turtleFSI #26

Closed zhangmuElias closed 1 year ago

zhangmuElias commented 1 year ago

Thanks for the great work on this solver.

I ran the example cases of TF_fsi, and it ran and finished without any errors, but seeing the xdmf files in the 'TF_fsi_results\1\Visualization' I think the velocity contour is not the fsi result, because I didn't see any mesh deformation in the contour.

my velocity contour

I think the demo fig is right, and it is really different from my contour. This is really strange. fsi_illu

But when I check the output x and y displacements and lift and drag, they are well presented. disp_y

May I know how to get the right contour shown in this website? Which software do you use? Is my test simulation wrong or is it just the way of postprocessing?

keiyamamo commented 1 year ago

Hi @zhangmuElias You need to apply 'warp by vector' filter from Paraview to 'deformation.xdmf' to see the mesh deformation.

zhangmuElias commented 1 year ago

Thanks for your reply! I added this filter to deformation.xdmf, and it can show the mesh deformation. 1670080470325

So I guess I can't show the deformation just using the velocity.xdmf but need the velocity.xdmf and deformation.xdmf together? And also is there a way to separate the mesh of solid part and fluid part? In this contour, the two domains are still mixed together. 1670080775826

keiyamamo commented 1 year ago

No, you can't see the deformation from the velocity only. You can use 'Append attributes' in Paraivew to combine velocity and deformation and visualize velocity while mesh is deformed based on the 'deformation.xdmf'.

There's a way to separate fluid and solid domain, but you would have to use FEniCS function and save the mesh based on the domain id given to each fluid and solid.

zhangmuElias commented 1 year ago

Dear @keiyamamo I tried your suggestions and it works well. Thank you! And as for the separation, I will try later.

1670083377033