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;
63 Info<<
"Constructing pressure field " << pName <<
nl <<
endl;
71 IOobject::READ_IF_PRESENT,
83 p.boundaryField().size(),
84 zeroGradientFvPatchScalarField::typeName
87 forAll(
p.boundaryField(), patchi)
89 if (
p.boundaryField()[patchi].fixesValue())
91 PhiBCTypes[patchi] = fixedValueFvPatchScalarField::typeName;
95 Info<<
"Constructing velocity potential field Phi\n" <<
endl;
103 IOobject::READ_IF_PRESENT,
111 label PhiRefCell = 0;
112 scalar PhiRefValue = 0;
120 mesh.setFluxRequired(Phi.name());
122 #include "createMRF.H"
129 nonInt.
insert(
"cellMask");
130 nonInt.insert(
"interpolatedCells");
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
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Creates mask for interpolated cells.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
bool insert(const Key &key)
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
Creates mask for blocked out cells.
HashSet< word, Hash< word > > wordHashSet
A HashSet with word keys and string hasher.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Foam::argList args(argc, argv)
bool found(const word &optName) const