Skip to content

Commit

Permalink
Merge pull request #17048 from aprilnovak/do-once-negative-temp
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud authored Sep 18, 2024
2 parents e494f1c + 7ef4ae3 commit 32a5a5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions modules/heat_transfer/src/materials/HeatConductionMaterial.C
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@ HeatConductionMaterialTempl<is_ad>::computeQpProperties()
{
if (_temperature[_qp] < *_min_T)
{
mooseWarning("Temperature (",
_temperature[_qp],
") is below min_T (",
*_min_T,
") at ",
_q_point[_qp],
". \nUsing min_T instead of temperature.");
flagSolutionWarning("Temperature below specified minimum (" + std::to_string(*_min_T) +
"). min_T will be used instead.");
qp_temperature = *_min_T;
}
}
Expand Down
4 changes: 2 additions & 2 deletions modules/heat_transfer/test/tests/transient_heat/tests
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
design = 'HeatConductionTimeDerivative.md'
[]
[transient_heat_t_limit]
type = 'RunException'
type = 'RunApp'
input = 'transient_heat_derivatives.i'
expect_err = 'is below min_T'
expect_out = '(is below min_T|specified minimum)'
cli_args = 'Materials/constant/min_T=10'
requirement = 'The system shall use a lower temperature limit to compute the specific heat'
issues = '#26647'
Expand Down

0 comments on commit 32a5a5b

Please sign in to comment.