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

porousSimpleFoam creatfield

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 22, 2013, 08:48
Default porousSimpleFoam creatfield
  #1
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 55
Rep Power: 4
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
thanks
arjang
AmirBaqa1987 is offline   Reply With Quote

Old   June 22, 2013, 16:09
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 295
Rep Power: 13
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.

Cheers,


Lieven
Lieven 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
porousSimpleFoam aban OpenFOAM 7 July 21, 2012 09:05
porousSimpleFoam Per OpenFOAM Running, Solving & CFD 4 April 19, 2012 08:29
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 19:12.