42 int main(
int argc,
char *argv[])
49 #include "createControl.H" 50 #include "createFields.H" 51 #include "initContinuityErrs.H" 57 while (runTime.loop())
59 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
61 force.primitiveFieldRef() =
ReImSum 65 K/(
mag(
K) + 1.0
e-6) ^ forceGen.newField(),
K.nn()
84 while (
piso.correct())
104 pEqn.solve(
mesh.solver(
p.select(
piso.finalInnerIter())));
108 #include "continuityErrs.H" 111 U.correctBoundaryConditions();
116 if (runTime.writeTime())
120 runTime.path()/
"graphs"/runTime.timeName(),
122 runTime.graphFormat()
126 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 127 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< surfaceScalarField > interpolate(const RhoType &rho)
GeometricField< vector, fvPatchField, volMesh > volVectorField
graph calcEk(const volVectorField &U, const Kmesh &K)
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
CGAL::Exact_predicates_exact_constructions_kernel K
scalarField ReImSum(const UList< complex > &cf)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar e
Elementary charge.
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
fvMatrix< vector > fvVectorMatrix
dimensioned< scalar > mag(const dimensioned< Type > &)
void write(Ostream &, const word &format) const
Write graph to stream in given format.
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Execute application functionObjects to post-process existing results.
volScalarField rAU(1.0/UEqn.A())