CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

porousSimpleFoam creatfield

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

LinkBack Thread Tools Display Modes
Old   June 22, 2013, 08:48
Default porousSimpleFoam creatfield
Arjang Behnoud
Join Date: Oct 2012
Posts: 61
Rep Power: 7
AmirBaqa1987 is on a distinguished road
Hi everyone,
can any body say what do the following lines do in createfields?

Switch pressureImplicitPorosity(false);

int nUCorr = 0;
if (pZones.size())
// nUCorrectors for pressureImplicitPorosity
if (mesh.solutionDict().subDict("SIMPLE").found("nUCo rrectors"))
nUCorr = readInt
mesh.solutionDict().subDict("SIMPLE").lookup("nUCo rrectors")

if (nUCorr > 0)
pressureImplicitPorosity = true;

any help is appreciated
AmirBaqa1987 is offline   Reply With Quote

Old   June 22, 2013, 16:09
Senior Member
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 297
Rep Power: 16
Lieven will become famous soon enough
Hi argjang,

int nUCorr = 0; initialize nUCorr to 0
if (pZones.size()) checks if there are pZones (size > 0)
// nUCorrectors for pressureImplicitPorosity
if (mesh.solutionDict().subDict("SIMPLE").found("nUCo rrectors")) checks if the nUCorrects keyword is present in the SIMPLE subdictionary of the solutionDict-file (system/fvSolutions)
nUCorr = readInt
mesh.solutionDict().subDict("SIMPLE").lookup("nUCo rrectors")
); If it is present, the (integer) value is read using the lookup function and stores it under nUCorr

if (nUCorr > 0) If nUCorr is bigger than 0, parameter pressureImplicitPorosity is set to true
pressureImplicitPorosity = true;

Hope this is what you liked to know.


Lieven 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
porousSimpleFoam aban OpenFOAM 8 December 10, 2016 08:43
porousSimpleFoam Per OpenFOAM Running, Solving & CFD 5 October 24, 2015 15:42
porousSimpleFoam crash on 40 cores ciberbob1987 OpenFOAM Running, Solving & CFD 2 February 26, 2012 18:22
porousSimpleFoam - crash Sebaj OpenFOAM 2 January 4, 2012 17:16
porousSimpleFoam bug in 1.7.x chibsen OpenFOAM Bugs 4 August 6, 2010 17:26

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