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/)
-   -   [mesh manipulation] OpenFoam2.1 dynamic mesh - expanding a circular face (https://www.cfd-online.com/Forums/openfoam-meshing/118999-openfoam2-1-dynamic-mesh-expanding-circular-face.html)

panpanzhong June 3, 2013 11:39

OpenFoam2.1 dynamic mesh - expanding a circular face
 
Hi OpenFoam Users. I am new to OpenFoam and I try to simulate a cylindrical hole expanding. I figured attach and detach dynamic Mesh can help. But I don't know how to use it. Could someone please upload an example of attach and detach dynamic Mesh or point me in the right direction? Thank you in advance.

panpanzhong June 7, 2013 18:24

OpenFoam2.1 dynamic mesh - expanding a circular face
 
Dear OpenFoam users. How do I deform a circular face of a mesh so that its radius increases. I want to use this concept to simulate a cylindrical hole expanding radially. If someone has done a similar case, please point me to the right direction or post a case file. Thank you very much.

pan

wyldckat June 8, 2013 17:02

Greetings panpanzhong and welcome to the forum!

It'll be easier to help you if you provide a simple test case that can be adapted to do what you need.

For more ideas, I suggest that you check the tutorials located at:
  • "mesh/moveDynamicMesh/"
  • "incompressible/pimpleDyMFoam"
Best regards,
Bruno

panpanzhong July 8, 2013 13:02

1 Attachment(s)
I solved this problem by editting a source code. I attach my source code with a test case here.

First I put the folder "libMyPolyNomVelocity" in the "OpenFOAM/User/run" directory and then compile it doing the following in terminal

cd $FOAM_RUN
wclean
wmake libso

Now I change to the case directory for movingCyl and execute the following:

blockMesh
moveDynamicMesh

moveDynamicMesh can be replaced with "solver"DyMFoam. ei. sonicDyMFoam, icoDyMFoam, rhoCentralDyMFoam. These will solve the whole case instead of just the moving mesh.


All times are GMT -4. The time now is 21:28.