hEqn.H
Go to the documentation of this file.00001 {
00002 tmp<volScalarField> pWork
00003 (
00004 new volScalarField
00005 (
00006 IOobject
00007 (
00008 "pWork",
00009 runTime.timeName(),
00010 mesh,
00011 IOobject::NO_READ,
00012 IOobject::NO_WRITE
00013 ),
00014 mesh,
00015 dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
00016 )
00017 );
00018
00019 if (dpdt)
00020 {
00021 pWork() += fvc::ddt(p);
00022 }
00023 if (eWork)
00024 {
00025 pWork() = -p*fvc::div(phi/fvc::interpolate(rho));
00026 }
00027 if (hWork)
00028 {
00029 pWork() += fvc::div(phi/fvc::interpolate(rho)*fvc::interpolate(p));
00030 }
00031
00032 {
00033 solve
00034 (
00035 fvm::ddt(rho, h)
00036 + mvConvection->fvmDiv(phi, h)
00037 - fvm::laplacian(turbulence->alphaEff(), h)
00038 ==
00039 pWork()
00040 + parcels.Sh()
00041 + radiation->Sh(thermo)
00042 );
00043
00044 thermo.correct();
00045
00046 radiation->correct();
00047
00048 Info<< "T gas min/max = " << min(T).value() << ", "
00049 << max(T).value() << endl;
00050 }
00051 }
Copyright © 2000-2009 OpenCFD Ltd