Go to the source code of this file.
|
| 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) |
| |
◆ 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 |
|
|
) |
| |
◆ forAll()
| forAll |
( |
p. |
boundaryField(), |
|
|
patchi |
|
|
) |
| |