Skip to content

Commit

Permalink
Replace nuFraExp to nuFra in UEqns.H
Browse files Browse the repository at this point in the history
  • Loading branch information
remichassagne committed Oct 20, 2023
1 parent 3940686 commit d3c6f40
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 d3c6f40

Please sign in to comment.