70 int main(
int argc,
char *argv[])
85 while (runTime.loop())
87 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
89 #include "CourantNo.H"
147 U.correctBoundaryConditions();
static const Foam::dimensionedScalar B("B", Foam::dimless, 18.678)
pisoControl bpiso(mesh, "BPISO")
Generic GeometricField class.
bool momentumPredictor() const
Flag to indicate to solve for momentum.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
tmp< volScalarField > A() const
Return the central coefficient.
tmp< VolField< Type > > H() const
Return the H operation source.
tmp< SurfaceField< Type > > flux() const
Return the face-flux field from the matrix.
void setReference(const label celli, const Type &value, const bool forceReference=false)
Set reference level for solution.
bool finalNonOrthogonalIter() const
Flag to indicate the last non-orthogonal iteration.
bool correct(const bool finalIter=false)
Piso loop within outer loop.
bool correctNonOrthogonal(const bool finalIter=true)
Non-orthogonal corrector loop.
Provides controls for the pressure reference in closed-volume simulations.
scalar refValue() const
Return the pressure reference level.
label refCell() const
Return the cell in which the reference pressure is set.
Calculates and prints the continuity errors.
surfaceScalarField & phiB
Calculate the first temporal derivative.
Calculate the face-flux of the given field.
Calculate the gradient of the given field.
Calculate the matrix for the first temporal derivative.
Calculate the matrix for the divergence of the given field and flux.
Calculate the matrix for the laplacian of the field.
Declare and initialise the cumulative continuity error.
volScalarField rAU(1.0/UEqn.A())
surfaceScalarField phiHbyA("phiHbyA", fvc::interpolate(rho) *fvc::flux(HbyA))
int main(int argc, char *argv[])
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< SurfaceField< typename Foam::flux< Type >::type > > ddtCorr(const VolField< Type > &U, const SurfaceField< Type > &Uf)
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void constrainHbyA(volVectorField &HbyA, const volVectorField &U, const volScalarField &p)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
Execute application functionObjects to post-process existing results.