Skip to content
Snippets Groups Projects
Commit 3284dd0d authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Fix sign error in non-SRT Guo force model

parent 7ab45178
No related merge requests found
......@@ -503,8 +503,8 @@ public:
const auto common = Matrix3<real_t>::makeDiagonalMatrix( velocity * bodyForce_ );
return (tensorProduct( velocity, bodyForce_ ) +
tensorProduct( bodyForce_, velocity ) -
common * (real_t(2)*one_over_d) ) * real_t(0.5) * ( real_t(2) + omega )
+ common * ( one_over_d * ( real_t(2) + omega_bulk ) );
common * (real_t(2)*one_over_d) ) * real_t(0.5) * ( real_t(2) - omega )
+ common * ( one_over_d * ( real_t(2) - omega_bulk ) );
}
else
{
......@@ -589,8 +589,8 @@ public:
const auto common = Matrix3<real_t>::makeDiagonalMatrix( velocity * force(x,y,z) );
return (tensorProduct( velocity, force(x,y,z) ) +
tensorProduct( force(x,y,z), velocity ) -
common * (real_t(2)*one_over_d) ) * real_t(0.5) * ( real_t(2) + omega )
+ common * ( one_over_d * ( real_t(2) + omega_bulk ) );
common * (real_t(2)*one_over_d) ) * real_t(0.5) * ( real_t(2) - omega )
+ common * ( one_over_d * ( real_t(2) - omega_bulk ) );
}
else
{
......
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