CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Running pimpleDyMFoam with groovyBC (http://www.cfd-online.com/Forums/openfoam-solving/122269-running-pimpledymfoam-groovybc.html)

lexmatt August 15, 2013 19:31

Running pimpleDyMFoam with groovyBC
 
1 Attachment(s)
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt

gschaider August 16, 2013 06:52

Quote:

Originally Posted by lexmatt (Post 446004)
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt

Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently

lexmatt August 16, 2013 15:08

Quote:

Originally Posted by gschaider (Post 446087)
Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently

Thanks Bernhard!

I was missing the cellMotionUx file.

Best,
Matt


All times are GMT -4. The time now is 10:42.