CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Using icoDyMFoam to simulate sinking sphere

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 18, 2007, 12:15
Default Hi, I am modifing the icoDy
Senior Member
Florian Krause
Join Date: Mar 2009
Location: Munich
Posts: 103
Rep Power: 10
florian_krause is on a distinguished road

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

Kindest Regards,
florian_krause is offline   Reply With Quote

Old   December 18, 2007, 19:00
Default Hi Flo! To get fields that
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,013
Rep Power: 43
gschaider will become famous soon enoughgschaider will become famous soon enough
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");

Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesh Problem with icoDyMFoam yuhai OpenFOAM Running, Solving & CFD 5 January 14, 2009 15:57
Problem with icoDyMFoam olivier OpenFOAM Running, Solving & CFD 13 December 19, 2008 10:03
Sinking of a foundation Amir CFX 1 January 24, 2008 17:36
Problem with icoDyMFoam philippose OpenFOAM Running, Solving & CFD 19 March 7, 2007 13:06
How to use icoDyMFOAM soup OpenFOAM Running, Solving & CFD 7 November 24, 2006 04:25

All times are GMT -4. The time now is 06:52.