CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Using icoDyMFoam to simulate sinking sphere

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2007, 11:15
Default Hi, I am modifing the icoDy
  #1
Senior Member
 
Florian Krause
Join Date: Mar 2009
Location: Munich
Posts: 103
Rep Power: 17
florian_krause is on a distinguished road
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

Kindest Regards,
Flo
florian_krause is offline   Reply With Quote

Old   December 18, 2007, 18:00
Default Hi Flo! To get fields that
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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");

Bernhard
__________________
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

Reply


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 Off
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 14:57
Problem with icoDyMFoam olivier OpenFOAM Running, Solving & CFD 13 December 19, 2008 09:03
Sinking of a foundation Amir CFX 1 January 24, 2008 16:36
Problem with icoDyMFoam philippose OpenFOAM Running, Solving & CFD 19 March 7, 2007 12:06
How to use icoDyMFOAM soup OpenFOAM Running, Solving & CFD 7 November 24, 2006 03:25


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