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");
forAll(U.boundaryField(), patchi)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
wordList pBCTypes(U.boundaryField().size(), fixedValueFvPatchScalarField::typeName)
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
Creates mask for interpolated cells.
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
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.
Creates mask for blocked out cells.
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity