Go to the documentation of this file.
99 int main(
int argc,
char *argv[])
103 "Potential flow solver which solves for the velocity potential"
110 "Name of the pressure field"
113 argList::addBoolOption
116 "Initialise U boundary conditions"
119 argList::addBoolOption
122 "Write the final volumetric flux field"
125 argList::addBoolOption
128 "Write the final velocity potential field"
131 argList::addBoolOption
134 "Calculate and write the Euler pressure field"
137 argList::addBoolOption
139 "withFunctionObjects",
140 "Execute functionObjects"
151 #include "createFields.H"
155 Info<<
nl <<
"Calculating potential flow" <<
endl;
159 runTime.functionObjects().start();
174 PhiEqn.setReference(PhiRefCell, PhiRefValue);
179 phi -= PhiEqn.flux();
185 Info<<
"Continuity error = "
190 U.correctBoundaryConditions();
192 Info<<
"Interpolated velocity error = "
214 Info<<
nl <<
"Calculating approximate pressure field" <<
endl;
258 runTime.functionObjects().end();
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
tmp< GeometricField< Type, faPatchField, areaMesh > > average(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
volVectorField F(fluid.F())
Ostream & endl(Ostream &os)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
fvMatrix< scalar > fvScalarMatrix
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const dictionary & potentialFlow(mesh.solutionDict().subDict("potentialFlow"))
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Foam::argList args(argc, argv)
const dimensionSet dimless
bool found(const word &optName) const