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.schemes().setFluxRequired(Phi.name());
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
List< word > wordList
A List of words.
VolField< vector > volVectorField
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimLength
VolField< scalar > volScalarField
const dimensionSet dimVelocity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
If the field fieldRef needs referencing find the reference cell nearest.
const dictionary & potentialFlow(mesh.solution().dict().subDict("potentialFlow"))
Foam::argList args(argc, argv)
volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))