52 int main(
int argc,
char *argv[])
59 #include "createControl.H"
64 Info<<
"\nStarting time loop\n" <<
endl;
68 Info<<
"\n Time = " << runTime.name() <<
nl <<
endl;
97 if (mesh.nGeometricD() == 3)
99 hU -= (gHat & hU)*gHat;
100 hU.correctBoundaryConditions();
150 if (mesh.nGeometricD() == 3)
152 hU -= (gHat & hU)*gHat;
155 hU.correctBoundaryConditions();
164 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
165 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
Calculates and outputs the maximum Courant Number.
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....
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
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.
bool finalNonOrthogonalIter() const
Flag to indicate the last non-orthogonal iteration.
bool correct()
Piso loop within outer loop.
bool correctNonOrthogonal()
Non-orthogonal corrector loop.
pimpleControl pimple(mesh)
Calculate the first temporal derivative.
Calculate the face-flux of the given field.
Calculate the gradient of the given field.
Calculate the snGrad of the given volField.
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.
volScalarField rAU(1.0/UEqn.A())
surfaceScalarField phiHbyA("phiHbyA", fvc::interpolate(rho) *fvc::flux(HbyA))
const dimensionedScalar F
Faraday constant: default SI units: [C/kmol].
const dimensionedScalar h
Planck constant.
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< Type > > snGrad(const VolField< Type > &vf, const word &name)
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)
scalar h0(const fluidMulticomponentThermo &thermo, const scalarList &Y, const scalar p, const scalar T)
Ostream & endl(Ostream &os)
Add newline and flush stream.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
Execute application functionObjects to post-process existing results.
int main(int argc, char *argv[])