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 field U\n"
<< endl;volVectorField U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Creating face flux\n"
<< endl;surfaceScalarField phi(IOobject("phi",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), mesh,
dimensionedScalar("zero",
mesh.Sf().dimensions()*U.dimensions(),
0.0));singlePhaseTransportModel
laminarTransport(U, phi);autoPtr
< incompressible::RASModel > 
turbulence (incompressible::RASModel::New(U, phi, laminarTransport))
IOdictionary transportProperties (IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedVector Ubar (transportProperties.lookup("Ubar"))
scalar nWallFaces (0)
vector wallNormal (vector::zero)
 forAll (patches, patchi)
dimensionedVector gradP ("gradP", dimensionSet(0, 1,-2, 0, 0), vector(0, 0, 0))

Variables

vector flowDirection = (Ubar/mag(Ubar)).value()
tensor flowMask = sqr(flowDirection)
const fvPatchList & patches = mesh.boundary()
scalarField y = wallNormal & mesh.C().internalField()
 create position array for graph generation

Function Documentation

Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Creating face flux\n" << endl; surfaceScalarField phi ( IOobject ( "phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0) ); singlePhaseTransportModel laminarTransport(U, phi); autoPtr<incompressible::RASModel> turbulence ( incompressible::RASModel::  NewU, phi, laminarTransport  ) 

IOdictionary transportProperties ( IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)   ) 

dimensionedVector Ubar ( transportProperties.  lookup"Ubar"  ) 

Referenced by if().

Here is the caller graph for this function:

scalar nWallFaces ( 0   ) 

Referenced by forAll().

Here is the caller graph for this function:

vector wallNormal ( vector::zero   ) 

Referenced by forAll().

Here is the caller graph for this function:

forAll ( patches  ,
patchi   
)

Check that wall faces are parallel

Definition at line 68 of file createFields.H.

References Foam::abort(), Foam::FatalError, forAll, Foam::Info, Foam::mag(), mesh, nWallFaces(), patchi, and wallNormal().

Here is the call graph for this function:

dimensionedVector gradP ( "gradP"  ,
dimensionSet(0, 1,-2, 0, 0)  ,
vector(0, 0, 0)   
)

Referenced by if().

Here is the caller graph for this function:


Variable Documentation

vector flowDirection = (Ubar/mag(Ubar)).value()

Definition at line 57 of file createFields.H.

tensor flowMask = sqr(flowDirection)

Definition at line 58 of file createFields.H.

const fvPatchList& patches = mesh.boundary()

Definition at line 66 of file createFields.H.

scalarField y = wallNormal & mesh.C().internalField()

create position array for graph generation

Definition at line 114 of file createFields.H.

Copyright © 2000-2009 OpenCFD Ltd