Skip to content
Snippets Groups Projects
Commit 6a910199 authored by Henry Weller's avatar Henry Weller
Browse files

JohnsonJacksonSchaefferFrictionalStress: Updated I2D expression

parent 6edac8f9
Branches
Tags
1 merge request!60Merge foundation
...@@ -126,7 +126,6 @@ JohnsonJacksonSchaeffer::nu ...@@ -126,7 +126,6 @@ JohnsonJacksonSchaeffer::nu
) const ) const
{ {
const volScalarField& alpha = phase; const volScalarField& alpha = phase;
const scalar I2Dsmall = 1.0e-15;
tmp<volScalarField> tnu tmp<volScalarField> tnu
( (
...@@ -155,17 +154,8 @@ JohnsonJacksonSchaeffer::nu ...@@ -155,17 +154,8 @@ JohnsonJacksonSchaeffer::nu
nuf[celli] = nuf[celli] =
0.5*pf[celli]*sin(phi_.value()) 0.5*pf[celli]*sin(phi_.value())
/( /(
sqrt sqrt((1.0/3.0)*sqr(tr(D[celli])) - invariantII(D[celli]))
( + SMALL
1.0/6.0
*(
sqr(D[celli].xx() - D[celli].yy())
+ sqr(D[celli].yy() - D[celli].zz())
+ sqr(D[celli].zz() - D[celli].xx())
)
+ sqr(D[celli].xy()) + sqr(D[celli].xz()
)
+ sqr(D[celli].yz())) + I2Dsmall
); );
} }
} }
...@@ -182,7 +172,7 @@ JohnsonJacksonSchaeffer::nu ...@@ -182,7 +172,7 @@ JohnsonJacksonSchaeffer::nu
pf.boundaryField()[patchi]*sin(phi_.value()) pf.boundaryField()[patchi]*sin(phi_.value())
/( /(
mag(U.boundaryField()[patchi].snGrad()) mag(U.boundaryField()[patchi].snGrad())
+ I2Dsmall + SMALL
) )
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment