Skip to content
Snippets Groups Projects
Unverified Commit e9fd8513 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Merge pull request #2099 from HBShaoUFZ/fix_HT_nan_bug

Fix NAN bug in the HT process
parents c1d8a549 07b9f1f0
No related branches found
No related tags found
No related merge requests found
...@@ -135,14 +135,21 @@ protected: ...@@ -135,14 +135,21 @@ protected:
_material_properties.thermal_dispersivity_transversal(t, pos)[0]; _material_properties.thermal_dispersivity_transversal(t, pos)[0];
double const velocity_magnitude = velocity.norm(); double const velocity_magnitude = velocity.norm();
GlobalDimMatrixType const thermal_dispersivity =
fluid_density * specific_heat_capacity_fluid * if (velocity_magnitude < std::numeric_limits<double>::epsilon())
(thermal_dispersivity_transversal * velocity_magnitude * I + {
(thermal_dispersivity_longitudinal - return thermal_conductivity * I;
thermal_dispersivity_transversal) / }
velocity_magnitude * velocity * velocity.transpose()); else
{
return thermal_conductivity * I + thermal_dispersivity; GlobalDimMatrixType const thermal_dispersivity =
fluid_density * specific_heat_capacity_fluid *
(thermal_dispersivity_transversal * velocity_magnitude * I +
(thermal_dispersivity_longitudinal -
thermal_dispersivity_transversal) /
velocity_magnitude * velocity * velocity.transpose());
return thermal_conductivity * I + thermal_dispersivity;
}
} }
std::vector<double> const& getIntPtDarcyVelocityLocal( std::vector<double> const& getIntPtDarcyVelocityLocal(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment