Skip to content

Commit

Permalink
Merge pull request #180 from remichassagne/nuFraExp
Browse files Browse the repository at this point in the history
Replace nuFraExp to nuFra in UEqns.H
  • Loading branch information
CyrilleBonamy authored Oct 20, 2023
2 parents 3940686 + d3c6f40 commit 94ffb29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
9 changes: 2 additions & 7 deletions solver/pU/UEqns.H
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,14 @@ if (SUSaniso)
susb = SUS*(K/rhob)*turbulenceb->nut()
*((SUS_I*iso-SUS_A*aniso) & fvc::grad(alpha));
}
// limiter for the explicit stress terms to avoid numerical instability and
// too strong limitation on the time step
volScalarField nuFraExp(nuFra);
nuFraExp.min(nuMaxExp);
nuFraExp.correctBoundaryConditions();

// Compute explicit stress term for phase a
volTensorField Rca
(
"Rca",
((2.0/3.0)*I)*((nuEffa+nuFraExp/(alpha+alphaSmall))*tr(gradUaT)
((2.0/3.0)*I)*((nuEffa+nuFra/(alpha+alphaSmall))*tr(gradUaT)
+ spherSigmaSGSa)
- (nuEffa+nuFraExp/(alpha+alphaSmall))*gradUaT
- (nuEffa+nuFra/(alpha+alphaSmall))*gradUaT
);

// Compute concentration gradient stress contribution on cell faces for phase a
Expand Down
10 changes: 2 additions & 8 deletions solver/pUf/UEqns.H
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,13 @@ if (SUSaniso)
*((SUS_I*iso-SUS_A*aniso) & fvc::grad(alpha));
}

// limiter for the explicit stress terms to avoid numerical instability and
// too strong limitation on the time step
volScalarField nuFraExp(nuFra);
nuFraExp.min(nuMaxExp);
nuFraExp.correctBoundaryConditions();

// Compute explicit stress term for phase a
volTensorField Rca
(
"Rca",
((2.0/3.0)*I)*((nuEffa+nuFraExp/(alpha+alphaSmall))*tr(gradUaT)
((2.0/3.0)*I)*((nuEffa+nuFra/(alpha+alphaSmall))*tr(gradUaT)
+ spherSigmaSGSa)
- (nuEffa+nuFraExp/(alpha+alphaSmall))*gradUaT
- (nuEffa+nuFra/(alpha+alphaSmall))*gradUaT
);

// Compute concentration gradient stress contribution on cell faces for phase a
Expand Down

0 comments on commit 94ffb29

Please sign in to comment.