Go to the documentation of this file. 1 Info<<
"Reading velocity field U\n" <<
endl;
33 U.correctBoundaryConditions();
48 U.boundaryField().size(),
49 fixedValueFvPatchScalarField::typeName
54 if (
U.boundaryField()[patchi].fixesValue())
56 pBCTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
60 Info<<
"Constructing pressure field " << pName <<
nl <<
endl;
68 IOobject::READ_IF_PRESENT,
79 p.boundaryField().size(),
80 zeroGradientFvPatchScalarField::typeName
83 forAll(
p.boundaryField(), patchi)
85 if (
p.boundaryField()[patchi].fixesValue())
87 PhiBCTypes[patchi] = fixedValueFvPatchScalarField::typeName;
91 Info<<
"Constructing velocity potential field Phi\n" <<
endl;
99 IOobject::READ_IF_PRESENT,
107 label PhiRefCell = 0;
108 scalar PhiRefValue = 0;
116 mesh.setFluxRequired(Phi.name());
118 #include "createMRF.H"
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
forAll(U.boundaryField(), patchi)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
T getOrDefault(const word &optName, const T &deflt) const
static constexpr const zero Zero
const dimensionSet dimVelocity
Ostream & endl(Ostream &os)
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
wordList pBCTypes(U.boundaryField().size(), fixedValueFvPatchScalarField::typeName)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
List< word > wordList
A List of words.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Foam::argList args(argc, argv)
bool found(const word &optName) const