1Info<<
"Reading velocity field U\n" << endl;
20 U.internalFieldRef() = Zero;
21 U.boundaryFieldRef() = Zero;
37if (
args.found(
"initialiseUBCs"))
39 U.correctBoundaryConditions();
49const word pName =
args.getOrDefault<word>(
"pName",
"p");
54 U.boundaryField().size(),
55 fixedValueFvPatchScalarField::typeName
60 if (
U.boundaryField()[patchi].fixesValue())
62 pBCTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
66Info<<
"Constructing pressure field " << pName <<
nl <<
endl;
74 IOobject::READ_IF_PRESENT,
85 p.boundaryField().size(),
86 zeroGradientFvPatchScalarField::typeName
89forAll(
p.boundaryField(), patchi)
91 if (
p.boundaryField()[patchi].fixesValue())
93 PhiBCTypes[patchi] = fixedValueFvPatchScalarField::typeName;
97Info<<
"Constructing velocity potential field Phi\n" <<
endl;
105 IOobject::READ_IF_PRESENT,
114scalar PhiRefValue = 0;
122mesh.setFluxRequired(Phi.name());
124#include "createMRF.H"
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
List< word > wordList
List of word.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)
wordList pBCTypes(U.boundaryField().size(), fixedValueFvPatchScalarField::typeName)
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
#define forAll(list, i)
Loop across all elements in list.