CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Setting up fields in OpenFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 21, 2013, 06:34
Default Setting up fields in OpenFoam
  #1
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 3
AB08 is on a distinguished road
Hi....m very new to OpenFoam................. can sm1 tell me what does.......The last two lines of the following does????

IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE

)
);
AB08 is offline   Reply With Quote

Old   June 21, 2013, 07:36
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 294
Rep Power: 13
Lieven will become famous soon enough
Hi AB08,

They basically do what they say. You are creating an IOobject with the properties that:
IOobject::MUST_READ_IF_MODIFIED: if you change the file during the simulation, it is read again automatically
IOobject::NO_WRITE: the IOdictionary is never written automatically. Basically meaning that OpenFOAM will not overwrite your input file.

Cheers,

Lieven
Lieven is offline   Reply With Quote

Old   June 21, 2013, 16:41
Default
  #3
New Member
 
Abhiroop
Join Date: Jun 2013
Posts: 26
Rep Power: 3
AB08 is on a distinguished road
Thanx a lot Lieven........
AB08 is offline   Reply With Quote

Reply

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
How to Map Fields in openFOAM using the utility Alhasan OpenFOAM Running, Solving & CFD 15 January 8, 2014 22:06
Help with setting up an OpenFoam case plucas CFD Freelancers 1 February 27, 2013 06:14
separate .vtk files + OpenFOAM fields: synchronous time tomislav_maric OpenFOAM Post-Processing 4 November 21, 2011 10:34
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


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