CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   moving Body in different directions with topological changes of the mesh (https://www.cfd-online.com/Forums/openfoam-programming-development/147701-moving-body-different-directions-topological-changes-mesh.html)

fluidmobil January 27, 2015 15:12

moving Body in different directions with topological changes of the mesh
 
Hello foamers,

I'm new to OpenFOAM and using foam-extended-3.1.
I want to adapt the tutorial

"tutorials / incompressible / icoDyMFoam / movingConeTopo"

in the way that a body is moved in x- and y-direction and for each each direction separate movingBodyTopoFvMeshCoeffs defined in the dynamicMeshDict.

I considered modifying the file movingBodyTopoFvMesh.C but I'm not sure what exactly to change.

Another idea was to subsequently apply the mesh motion module twice for each direction.

Can anybody help?

kind regards

fluidmobil April 13, 2015 05:55

Hello,

maybe some more information about the problem could be helpful.

The case is very simple. Just a structured rectangular mesh. The pictures simpleTopo1.jpg and simpleTopo2.jpg show the motion in vertical direction. The pictures simpleTopoHoriz1.jpg and simpleTopoHoriz2.jpg the direction in horizontal direction.

https://dl.dropboxusercontent.com/u/...impleTopo1.jpg

https://dl.dropboxusercontent.com/u/...impleTopo2.jpg


https://dl.dropboxusercontent.com/u/...TopoHoriz1.jpg

https://dl.dropboxusercontent.com/u/...TopoHoriz2.jpg

the two motions individual is working and simple. But now I want to move the lower boundary and the right boundary simultanously. This does not work.

my blockMeshDict:
https://dl.dropboxusercontent.com/u/.../blockMeshDict

my dynamicMeshDict:
https://dl.dropboxusercontent.com/u/...ynamicMeshDict

my meshModifiers:
https://dl.dropboxusercontent.com/u/.../meshModifiers

my setBatch-file to define the moving faces:
https://dl.dropboxusercontent.com/u/77291489/setBatch


Maybe the front and backFaces have to be defined differently?

tiat October 23, 2015 09:47

Hi!

I am having the same interest of moving the mesh both in x and y direction. I wonder have you figured out the solution?

regards,
Tian

maalan March 2, 2016 05:30

Quote:

in the way that a body is moved in x- and y-direction and for each each direction separate movingBodyTopoFvMeshCoeffs defined in the dynamicMeshDict.
Hi there! I'm also interested in this point. Did you finally solve it?

Best

saatt April 23, 2017 10:34

Hi guys, can anyone solve the question?


All times are GMT -4. The time now is 03:58.