OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

createFields.H File Reference

Go to the source code of this file.


Functions

Info<< "Reading thermophysical
properties\n"<< endl;autoPtr
< basicPsiThermo > 
pThermo (basicPsiThermo::New(mesh))
volScalarField rho (IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), thermo.rho())
Info<< "Reading field U\n"
<< endl;volVectorField U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Creating turbulence model\n"
<< endl;autoPtr
< compressible::RASModel > 
turbulence (compressible::RASModel::New(rho, U, phi, thermo))
thermo correct ()
 setRefCell (p, mesh.solutionDict().subDict("SIMPLE"), pRefCell, pRefValue)

Variables

basicPsiThermo & thermo = pThermo()
volScalarField & p = thermo.p()
volScalarField & h = thermo.h()
const volScalarField & psi = thermo.psi()
label pRefCell = 0
scalar pRefValue = 0.0
dimensionedScalar initialMass = fvc::domainIntegrate(rho)

Function Documentation

Info<< "Reading thermophysical properties\n" << endl; autoPtr<basicPsiThermo> pThermo ( basicPsiThermo::  Newmesh  ) 

volScalarField rho ( IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE)  ,
thermo.  rho() 
)

Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Creating turbulence model\n" << endl; autoPtr<compressible::RASModel> turbulence ( compressible::RASModel::  Newrho, U, phi, thermo  ) 

setRefCell ( p  ,
mesh.  solutionDict).subDict("SIMPLE",
pRefCell  ,
pRefValue   
)


Variable Documentation

basicPsiThermo& thermo = pThermo()

Definition at line 7 of file createFields.H.

volScalarField& p = thermo.p()

Definition at line 22 of file createFields.H.

volScalarField& h = thermo.h()

Definition at line 23 of file createFields.H.

const volScalarField& psi = thermo.psi()

Definition at line 24 of file createFields.H.

label pRefCell = 0

Definition at line 58 of file createFields.H.

scalar pRefValue = 0.0

Definition at line 59 of file createFields.H.

dimensionedScalar initialMass = fvc::domainIntegrate(rho)

Definition at line 69 of file createFields.H.

Copyright © 2000-2009 OpenCFD Ltd