temperature out of range in Water97FluidProperties #28019
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hello Do you have a backtrace from gdb? This would help us look at the routines in Water97FP Guillaume |
Beta Was this translation helpful? Give feedback.
-
Sure, I am not very understand the GDB, so i write the steps which I have done clearly. b MPI_Abort
bt and part of output is 0x00007fffef624092 in Water97FluidProperties::inRegion (this=0x555555d0def0, pressure=173845, temperature=-376997.58328186366)
at /home/wang/projects/moose/modules/fluid_properties/src/fluidproperties/Water97FluidProperties.C:1157
#6 0x00007fffef680d22 in Water97FluidProperties::rho_from_p_T_template<MetaPhysicL::DualNumber<double, MetaPhysicL::NumberArray<2ul, double>, false> > (this=0x555555d0def0, pressure=..., temperature=...)
at /home/wang/projects/moose/modules/fluid_properties/build/header_symlinks/Water97FluidProperties.h:2557
#7 0x00007fffef6636af in Water97FluidProperties::rho_from_p_T_template<double>(double const&, double const&, double&, double&, double&) const::{lambda(auto:1 const&, auto:2 const&)#1}::operator()<MetaPhysicL::DualNumber<double, MetaPhysicL::NumberArray<2ul, double>, false>, MetaPhysicL::DualNumber<double, MetaPhysicL::NumberArray<2ul, double>, false> >(MetaPhysicL::DualNumber<double, MetaPhysicL::NumberArray<2ul, double>, false> const&, MetaPhysicL::DualNumber<double, MetaPhysicL::NumberArray<2ul, double>, false> const&) const (this=0x555555d0def0, pressure=..., temperature=...)
at /home/wang/projects/moose/modules/fluid_properties/build/header_symlinks/Water97FluidProperties.h:2003
#15 0x00007ffff105de05 in RhoEAFromPressureTemperatureFunctionVelocityIC::value (this=0x555555f28320, p=...)
at /home/wang/projects/moose/modules/thermal_hydraulics/src/ics/RhoEAFromPressureTemperatureFunctionVelocityIC.C:46 so I set breakpoints in RhoEAFromPressureTemperatureFunctionVelocityI and Water97FluidProperties Thread 1 "pulse-dbg" hit Breakpoint 3, RhoEAFromPressureTemperatureFunctionVelocityIC::value (this=0x555555f28320, p=...)
at /home/wang/projects/moose/modules/thermal_hydraulics/src/ics/RhoEAFromPressureTemperatureFunctionVelocityIC.C:46
46 const Real e = _fp.e_from_p_rho(_p[_qp], rho);
(gdb) info locals
vel = 0.20399999999999999
rho = 994.07047349434276
e = 6.9533462538108351e-310
(gdb) print _T[_qp]
$1 = (const double &) @0x5555562eda50: 308.14999999999992
(gdb) n
Currently Executing
Performing Initial Setup
Projecting Initial Solutions
Thread 1 "pulse-dbg" hit Breakpoint 4, Water97FluidProperties::inRegion (this=0x555555d0def0, pressure=173845, temperature=-376997.58328186366)
at /home/wang/projects/moose/modules/fluid_properties/src/fluidproperties/Water97FluidProperties.C:1157
1157 mooseException("Temperature ", temperature, " is out of range in ", name(), ": inRegion()");
(gdb) info locals
region = 32767
(gdb) print temperature
$2 = -376997.58328186366
(gdb) I don't konw the Water97 how to get the temperature, because I not find such as coupledVariable function in Water97FluidProperties.C. |
Beta Was this translation helpful? Give feedback.
I find a useful method
if i change the
T_initial_guess
, code will continue, so do you have something about how to set it?