OpenFOAM-4.x-lab/applications/solvers/combustion/NOxFoam_thermal_fuelNOx/NH3Eqn.H
2018-01-23 23:59:03 +09:00

17 lines
318 B
C

// NH3 transport equation
while (simple.correctNonOrthogonal())
{
fvScalarMatrix NH3Eqn
(
fvm::ddt(rho, NH3)
+ fvm::div(phi, NH3)
- fvm::laplacian(mut, NH3)
==
Snh3
);
NH3Eqn.relax();
fvOptions.constrain(NH3Eqn);
NH3Eqn.solve();
fvOptions.correct(NH3);
}