Bug fix:
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/8089
This commit is contained in:
parent
927de85fab
commit
adb7d5fb49
@ -123,13 +123,13 @@ Foam::tmp<Foam::volScalarField> Foam::SchaefferFrictionalStress::muf
|
||||
)
|
||||
);
|
||||
|
||||
volScalarField& muf_ = tmuf();
|
||||
volScalarField& muff = tmuf();
|
||||
|
||||
forAll (D, celli)
|
||||
{
|
||||
if (alpha[celli] > alphaMax.value()-5e-2)
|
||||
{
|
||||
muf_[celli] =
|
||||
muff[celli] =
|
||||
0.5*pf[celli]*sin(phi.value())
|
||||
/(
|
||||
sqrt(1.0/6.0*(sqr(D[celli].xx() - D[celli].yy())
|
||||
@ -141,7 +141,7 @@ Foam::tmp<Foam::volScalarField> Foam::SchaefferFrictionalStress::muf
|
||||
}
|
||||
}
|
||||
|
||||
return muf_;
|
||||
return tmuf;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user