CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Mesh motion by groovyBc (https://www.cfd-online.com/Forums/openfoam/219951-mesh-motion-groovybc.html)

peyman.havaej August 16, 2019 14:00

Mesh motion by groovyBc
 
Dear Formers


I wanted to test dynamic mesh motion by groovyBC utility. Hence, I attempt to run the tutorial of movingConeDistorted.


While the mesh can be moved correctly with velocityComponentLaplacian solver, When I run the movingConeDistorted case with velocityLaplacian solver, the mesh did not move by groovyBC boundary condition.

Is it a bug in groovyBC which cause mesh does not move? or is something wrong in this case setup?


Could someone give me an explanation about this problem, please?
I appreciate that.
Thank you.

gschaider August 19, 2019 03:29

Quote:

Originally Posted by peyman.havaej (Post 742290)
Dear Formers


I wanted to test dynamic mesh motion by groovyBC utility. Hence, I attempt to run the tutorial of movingConeDistorted.


While the mesh can be moved correctly with velocityComponentLaplacian solver, When I run the movingConeDistorted case with velocityLaplacian solver, the mesh did not move by groovyBC boundary condition.

Is it a bug in groovyBC which cause mesh does not move? or is something wrong in this case setup?


Could someone give me an explanation about this problem, please?
I appreciate that.
Thank you.


Tthe movingConeDistorted case is unchanged since 2012 and uses velocityLaplacian since then. At least the one in swak4Foam.


Which version are you using? (of groovyBC? Which OpenFOAM-version?)

peyman.havaej August 19, 2019 03:52

Quote:

Originally Posted by gschaider (Post 742357)
Tthe movingConeDistorted case is unchanged since 2012 and uses velocityLaplacian since then. At least the one in swak4Foam.


Which version are you using? (of groovyBC? Which OpenFOAM-version?)

Thanks for your reply.
I use OpenFoam extend 4.0 and swak4foam 0.4.0.

gschaider August 23, 2019 05:03

Quote:

Originally Posted by peyman.havaej (Post 742359)
Thanks for your reply.
I use OpenFoam extend 4.0 and swak4foam 0.4.0.


Two very unsatisfactory answers
- works for me
- your versions (both foam-extend and swak4foam) are rather old (I haven't got a fe4.0 installation. Otherwise I could check whether this works with the current swak4foam version)

peyman.havaej August 23, 2019 06:51

1 Attachment(s)
Quote:

Originally Posted by gschaider (Post 742881)
Two very unsatisfactory answers
- works for me
- your versions (both foam-extend and swak4foam) are rather old (I haven't got a fe4.0 installation. Otherwise I could check whether this works with the current swak4foam version)


Thanks for your answer
I installed the new version of swak4Foam according to openfoamwiiki; unfortunately, it did not work.
Since I attempt to simulate a FSI problem with solids4foam toolkit, I have to use fe40.


A trick which I found for resolving the mesh motion with groovyBC is as follow.


in contrast to the original movingConeDistorted case, the boundary condition for the moving wall was defined in the cellMotion as below:


movingWall
{
type groovyBC;
value uniform (0 0 0);
valueExpression "vector(sin(pi*time()/0.006)*(
0.2+pos().y*1.2e2),0,0)";
}



and for pointMotion:


movingWall
{
type groovyBC;
value (0 0 0);
valueExpression "toPoint(cellMotionU)";
}



with these modifications, the mesh is moved without any problem by velocityLaplacian solver. However, I am not sure that these changes in the boundary conditions of cellMotion and pointMotion will result in correct mesh motion or not.


Please kindly find the attached files. I will be delighted if I receive your suggestions and comments.



All times are GMT -4. The time now is 18:07.