1 Info<<
"Reading velocity field U\n" <<
endl;
32 U.correctBoundaryConditions();
46 U.boundaryField().size(),
47 fixedValueFvPatchScalarField::typeName
52 if (
U.boundaryField()[
patchi].fixesValue())
54 pBCTypes[
patchi] = zeroGradientFvPatchScalarField::typeName;
58 Info<<
"Constructing pressure field " << pName <<
nl <<
endl;
66 IOobject::READ_IF_PRESENT,
77 p.boundaryField().size(),
78 zeroGradientFvPatchScalarField::typeName
83 if (
p.boundaryField()[
patchi].fixesValue())
85 PhiBCTypes[
patchi] = fixedValueFvPatchScalarField::typeName;
89 Info<<
"Constructing velocity potential field Phi\n" <<
endl;
97 IOobject::READ_IF_PRESENT,
105 label PhiRefCell = 0;
106 scalar PhiRefValue = 0;
114 mesh.setFluxRequired(Phi.name());
116 #include "createMRF.H"
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector("zero", dimVelocity, Zero))
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
GeometricField< vector, fvPatchField, volMesh > volVectorField
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
List< word > wordList
A List of words.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Foam::argList args(argc, argv)
const dimensionSet dimVelocity