Bugfix: use function form of transpose

This commit is contained in:
Hrvoje Jasak 2016-04-25 12:17:45 +01:00
parent 0ca922c6c6
commit e319d5d6c0
5 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@
<< (
0.5*nu*average
(
magSqr(fvc::grad(U) + fvc::grad(U)().T())
magSqr(fvc::grad(U) + T(fvc::grad(U)))
)
).value() << endl;

View file

@ -219,7 +219,7 @@ tmp<fvVectorMatrix> PDRkEpsilon::divDevRhoReff(volVectorField& U) const
{
return
(
- fvm::laplacian(muEff(), U) - fvc::div(muEff()*dev2(fvc::grad(U)().T()))
- fvm::laplacian(muEff(), U) - fvc::div(muEff()*dev2(T(fvc::grad(U))))
);
}

View file

@ -139,7 +139,7 @@ int main(int argc, char *argv[])
+ aphiv_neg*(rho_neg*(e_neg + 0.5*magSqr(U_neg)) + p_neg)
+ aSf*p_pos - aSf*p_neg;
volTensorField tauMC("tauMC", mu*dev2(fvc::grad(U)().T()));
volTensorField tauMC("tauMC", mu*dev2(T(fvc::grad(U))));
// --- Solve density
solve(fvm::ddt(rho) + fvc::div(phi));

View file

@ -11,7 +11,7 @@
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muf*(mesh.Sf() & fvc::interpolate(fvc::grad(U)().T())))
- fvc::div(muEff*(mesh.Sf() & fvc::interpolate(T(fvc::grad(U)))))
);
UEqn.relax();

View file

@ -6,5 +6,5 @@
+ fvm::div(mixture.rhoPhi(), U)
- fvm::laplacian(muf, U)
- (fvc::grad(U) & fvc::grad(muf))
//- fvc::div(muf*(mesh.Sf() & fvc::interpolate(fvc::grad(U)().T())))
//- fvc::div(muf*(mesh.Sf() & fvc::interpolate(T(fvc::grad(U)))))
);