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, 14: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 07:44
Setting working environment variable Arthur FLUENT 0 December 10, 2008 04:33
B.C. setting PK FLUENT 0 September 28, 2007 03:46
setting variable boundary Mehdi Siemens 3 January 31, 2006 04: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 02:46.