CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Dynamic meshing chtmultiRegion (https://www.cfd-online.com/Forums/openfoam-meshing/230847-dynamic-meshing-chtmultiregion.html)

tga October 8, 2020 10:09

Dynamic meshing chtmultiRegion
 
Hello everyone,


since I am relatively new to OpenFOAM and now want to solve a rather complex task for me, I want to ask you for advice.
I receive data from a FEM simulation (geometries and temperatures) and want to couple it with a single-phase CFD simulation in OpenFOAM.

The difficulty here is that the geometry of the solid body changes during the simulation. So I have the geometry data from the FEM simulation for every time step.
At the moment I simulate a single time step. Therefore, I import the geometry of the FEM simulation, create the mesh by means of snappyHexMesh, create the solid and fluid regions and then run the simulation with the chtMultiRegion solver. Now I want to be able to run a transient CFD simulation for all time steps. So I am looking for an elegant method to do this.
The most obvious approach for me is to use snappy to create a mesh for each time step and load it into the simulation. Then you would have to map the data from the previous time step on the new geometry at the new time, as the geometry of the solid and fluid is changing. How to do that, I do not know yet. I am also not sure if this causes problems when the cell number changes and so on.
Or maybe it is more reasonable to define the movement of the cells with a vector or a function.

So I want to ask if you have any experience with something like that or an idea how I can implement it.


Thank you for your help and I am looking forward to your advices.
Best regards,
tga :)


All times are GMT -4. The time now is 06:47.