Hi, I am modifing the icoDy
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
Hi Flo! To get fields that
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");
|All times are GMT -4. The time now is 12:41.|