Skip to content
Snippets Groups Projects
Commit 13fb959f authored by Andrew Heather's avatar Andrew Heather
Browse files

lagrangian solver updates

parent 8b0fc6bd
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
fvScalarMatrix hEqn fvScalarMatrix hEqn
( (
fvm::ddt(rho, h) fvm::ddt(rho, h)
+ fvm::div(phi, h) + mvConvection->fvmDiv(phi, h)
- fvm::laplacian(turbulence->alphaEff(), h) - fvm::laplacian(turbulence->alphaEff(), h)
== ==
DpDt DpDt
......
...@@ -14,7 +14,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection ...@@ -14,7 +14,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
label inertIndex = -1; label inertIndex = -1;
volScalarField Yt = 0.0*Y[0]; volScalarField Yt = 0.0*Y[0];
for(label i=0; i<Y.size(); i++) for (label i=0; i<Y.size(); i++)
{ {
if (Y[i].name() != inertSpecie) if (Y[i].name() != inertSpecie)
{ {
...@@ -39,8 +39,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection ...@@ -39,8 +39,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
inertIndex = i; inertIndex = i;
} }
} }
Y[inertIndex] = scalar(1) - Yt; Y[inertIndex] = scalar(1) - Yt;
Y[inertIndex].max(0.0); Y[inertIndex].max(0.0);
} }
...@@ -26,7 +26,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection ...@@ -26,7 +26,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection
- fvm::laplacian(turbulence->muEff(), Yi) - fvm::laplacian(turbulence->muEff(), Yi)
== ==
parcels.Srho(i) parcels.Srho(i)
+ kappa*chemistry.RR(i)().dimensionedInternalField() + kappa*chemistry.RR(i)().dimensionedInternalField(),
mesh.solver("Yi")
); );
Yi.max(0.0); Yi.max(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment