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/)
-   -   Using icoDyMFoam to simulate sinking sphere (http://www.cfd-online.com/Forums/openfoam-solving/59275-using-icodymfoam-simulate-sinking-sphere.html)

florian_krause December 18, 2007 12:15

Hi, I am modifing the icoDy
 
Hi,

I am modifing the icoDyMFoam Solver from OF version 1.4.1 to simulate the physical correct sinking process of a sphere in a cylinder full of water.

Now I have the problem to update the cellMotionUy and pointMotionUy with the new calculated velocities I get for each iteration.

So my question:

Where can I access and modify the cellMotionUy and pointMotionUy value for each iteration in the PISO loop except in the .../0/ directory?

I hope to hear from you soon http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Kindest Regards,
Flo

gschaider December 18, 2007 19:00

Hi Flo! To get fields that
 
Hi Flo!

To get fields that are implicitly created by some library but not "seen" in the sources of a solver do something like (type, constness, name etc have to be adapted for your application) this:

const volVectorField &cm=mesh.objectRegistry::lookupObject<volvectorfie ld>("cellMotionU");

Bernhard


All times are GMT -4. The time now is 08:37.