CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Setting rootcase variable

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

LinkBack Thread Tools Display Modes
Old   May 8, 2006, 14:22
Default Hi, I'm trying to use the out
New Member
Carlo Fabrizi
Join Date: Mar 2009
Location: Rome, Italy
Posts: 5
Rep Power: 8
carlo_fabrizi is on a distinguished road
I'm trying to use the output of one case as bc of another one.. It is a terrible task, now I need to know how I can change variable environment in a function that i use to read data.. in particular I run a modified simpleFoam as:

simpleRFR <root> <case1>

and I can read data from the directory /<case1>/0/.
But in simpleRFR.C I call a function that should read from /<case2>/5/. How i can do this??
I read data in the following way:

// Get index of patch
label inletPatchID = mesh.boundaryMesh().findPatchID("movingWall");

// Get reference to boundary value
const fvPatchVectorField& faceCentreshub = mesh.Cf().boundaryField()[inletPatchID];
fvPatchVectorField& movingWallU = U.boundaryField()[inletPatchID];

carlo_fabrizi 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
RP_Set_Real("variable-name", variable name) bohis FLUENT 1 March 9, 2009 08:44
Setting working environment variable Arthur FLUENT 0 December 10, 2008 05:33
B.C. setting PK FLUENT 0 September 28, 2007 03:46
setting variable boundary Mehdi CD-adapco 3 January 31, 2006 05:33
variable time step:setting global courant number Cedric FLUENT 0 July 28, 2005 09:14

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