createFields.H File Reference
Include dependency graph for createFields.H:

Go to the source code of this file.

Functions

Info<< "Reading velocity field U\n"<< endl;volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);U=Zero;surfaceScalarField phi(IOobject("phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), fvc::flux(U));if(args.optionFound("initialiseUBCs")){ U.correctBoundaryConditions();phi=fvc::flux(U);}word pName("p");args.optionReadIfPresent("pName", pName);wordList pBCTypes(U.boundaryField().size(), fixedValueFvPatchScalarField::typeName);forAll(U.boundaryField(), patchi){ if(U.boundaryField()[patchi].fixesValue()) { pBCTypes[patchi]=zeroGradientFvPatchScalarField::typeName;}}Info<< "Constructing pressure field "<< pName<< nl<< endl;typeIOobject< volScalarField > pHeader (pName, runTime.name(), mesh)
 
volScalarField p (pHeader.headerOk() ? volScalarField(pHeader, mesh) :volScalarField(pHeader, mesh, dimensionedScalar(pName, sqr(dimVelocity), 0), pBCTypes))
 
wordList PhiBCTypes (p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName)
 
 forAll (p.boundaryField(), patchi)
 

Function Documentation

◆ pHeader()

Info<< "Reading velocity field U\n" << endl;volVectorField U( IOobject ( "U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);U = Zero;surfaceScalarField phi( IOobject ( "phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), fvc::flux(U));if (args.optionFound("initialiseUBCs")){ U.correctBoundaryConditions(); phi = fvc::flux(U);}word pName("p");args.optionReadIfPresent("pName", pName);wordList pBCTypes( U.boundaryField().size(), fixedValueFvPatchScalarField::typeName);forAll(U.boundaryField(), patchi){ if (U.boundaryField()[patchi].fixesValue()) { pBCTypes[patchi] = zeroGradientFvPatchScalarField::typeName; }}Info<< "Constructing pressure field " << pName << nl << endl;typeIOobject<volScalarField> pHeader ( pName  ,
runTime.  name(),
mesh   
)

◆ p()

volScalarField p ( pHeader.  headerOk) ? volScalarField(pHeader, mesh) :volScalarField(pHeader, mesh, dimensionedScalar(pName, sqr(dimVelocity), 0), pBCTypes)

◆ PhiBCTypes()

wordList PhiBCTypes ( p.  boundaryField).size(,
zeroGradientFvPatchScalarField::typeName   
)

Referenced by forAll().

Here is the caller graph for this function:

◆ forAll()

forAll ( p.  boundaryField(),
patchi   
)

Definition at line 86 of file createFields.H.

References p, patchi, PhiBCTypes(), and Foam::typeName().

Referenced by forAll().

Here is the call graph for this function:
Here is the caller graph for this function: