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

Understanding code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2017, 21:00
Default Understanding code
  #1
New Member
 
Robert Huang
Join Date: Jan 2017
Posts: 11
Rep Power: 9
HRobertHS is on a distinguished road
Hi,

I am an extreme beginner to OpenFOAM.
I am having confusion on what exactly in specifications of a solution and what fixedFluxPressure, totalPressure, and uniform means. Can anyone explain?
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
leftWall
{
type fixedFluxPressure;
value uniform 0;
}

rightWall
{
type fixedFluxPressure;
value uniform 0;
}

lowerWall
{
type fixedFluxPressure;
value uniform 0;
}

atmosphere
{
type totalPressure;
p0 uniform 0;
}

defaultFaces
{
type empty;
}
}

// ************************************************** *********************** //
HRobertHS is offline   Reply With Quote

Old   February 7, 2017, 07:45
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Robert,

I suggest that you have a look at the material of the training course: "Learning how to use free surface flows in OpenFOAM 3.0"
The couse material can be found in the following link:
http://openfoam-extend.sourceforge.n...s/courses.html

Best Regards,
Paulo
vatavuk 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
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 12:30
Understanding k-omega SST model source code tmhonka OpenFOAM Programming & Development 1 September 8, 2009 07:33
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 11:44


All times are GMT -4. The time now is 13:46.