FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createFields.H File Reference


Detailed Description

Definition in file createFields.H.

#include "applications/solvers/compressible/rhoCentralFoam/rhoBoundaryTypes.H"
Include dependency graph for createFields.H:

Go to the source code of this file.

Functions

Info<< "Reading thermophysical
properties\n"<< endl;autoPtr
< basicPsiThermo >  
pThermo (basicPsiThermo::New(mesh))
bool  inviscid (true)
 if (max(mu.internalField()) > 0.0)

Variables

basicPsiThermo &  thermo = pThermo()
volScalarField &  p = thermo.p()
volScalarField &  e = thermo.e()
const volScalarField &  T = thermo.T()
const volScalarField &  psi = thermo.psi()
const volScalarField &  mu = thermo.mu()
Info<< "Reading field U\n"
<< endl;volVectorField U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);volScalarField
rho(IOobject("rho",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE),
thermo.rho(), rhoBoundaryTypes);volVectorField
rhoU(IOobject("rhoU",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), rho *U);volScalarField
rhoE(IOobject("rhoE",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), rho *(e+0.5
*magSqr(U)));surfaceScalarField
pos(IOobject("pos",
runTime.timeName(), mesh),
mesh, dimensionedScalar("pos",
dimless,
1.0));surfaceScalarField neg(IOobject("neg",
runTime.timeName(), mesh),
mesh, dimensionedScalar("neg",
dimless,-1.0));surfaceScalarField
phi("phi", mesh.Sf()&fvc::interpolate(rhoU));Info
<< "Creating turbulence model\n"
<< endl;autoPtr
< compressible::turbulenceModel  
turbulence )(compressible::turbulenceModel::New(rho, U, phi, thermo))

Function Documentation

Info<< "Reading thermophysical properties\n" << endl;autoPtr<basicPsiThermo> pThermo ( basicPsiThermo::   Newmesh  )
bool inviscid ( true    )
if ( max(mu.internalField())   ,
0.   0  
)

Definition at line 16 of file createFields.H.

References inviscid().


Variable Documentation

basicPsiThermo& thermo = pThermo()

Definition at line 7 of file createFields.H.

volScalarField& p = thermo.p()

Definition at line 9 of file createFields.H.

volScalarField& e = thermo.e()

Definition at line 10 of file createFields.H.

const volScalarField& T = thermo.T()

Definition at line 11 of file createFields.H.

const volScalarField& psi = thermo.psi()

Definition at line 12 of file createFields.H.

const volScalarField& mu = thermo.mu()

Definition at line 13 of file createFields.H.

Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);volScalarField rho( IOobject ( "rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), thermo.rho(), rhoBoundaryTypes);volVectorField rhoU( IOobject ( "rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), rho*U);volScalarField rhoE( IOobject ( "rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), rho*(e + 0.5*magSqr(U)));surfaceScalarField pos( IOobject ( "pos", runTime.timeName(), mesh ), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg( IOobject ( "neg", runTime.timeName(), mesh ), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", mesh.Sf() & fvc::interpolate(rhoU));Info<< "Creating turbulence model\n" << endl;autoPtr<compressible::turbulenceModel turbulence)(compressible::turbulenceModel::New(rho,U,phi,thermo))