CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Setting rootcase variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2006, 15:22
Default Hi, I'm trying to use the out
  #1
New Member
 
Carlo Fabrizi
Join Date: Mar 2009
Location: Rome, Italy
Posts: 5
Rep Power: 17
carlo_fabrizi is on a distinguished road
Hi,
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];

thanks
Bye
carlo_fabrizi 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
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 04:46
setting variable boundary Mehdi Siemens 3 January 31, 2006 05:33
variable time step:setting global courant number Cedric FLUENT 0 July 28, 2005 10:14


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