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

Setting up fields in OpenFoam

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 12
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: Leuven, Belgium
Posts: 299
Rep Power: 22
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: 12
AB08 is on a distinguished road
Thanx a lot Lieven........
AB08 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 42 January 15, 2018 09:52
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 Siemens 6 November 15, 2004 05:41


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