[Thermo] reformat NasaPoly2::validate warning
This commit is contained in:
parent
1cc87f4372
commit
f5f7227e79
5 changed files with 38 additions and 51 deletions
|
|
@ -34,28 +34,31 @@ void NasaPoly2::validate(const std::string& name)
|
|||
|
||||
double delta = cp_low - cp_high;
|
||||
if (fabs(delta/(fabs(cp_low)+1.0E-4)) > 0.01) {
|
||||
writelog("\n\n**** WARNING ****\nFor species {}, discontinuity"
|
||||
" in cp/R detected at Tmid = {}\n", name, m_midT);
|
||||
writelog("\tValue computed using low-temperature polynomial: {}\n", cp_low);
|
||||
writelog("\tValue computed using high-temperature polynomial: {}\n", cp_high);
|
||||
warn_user("NasaPoly2::validate",
|
||||
"\nFor species {}, discontinuity in cp/R detected at Tmid = {}\n"
|
||||
"\tValue computed using low-temperature polynomial: {}\n"
|
||||
"\tValue computed using high-temperature polynomial: {}\n",
|
||||
name, m_midT, cp_low, cp_high);
|
||||
}
|
||||
|
||||
// enthalpy
|
||||
delta = h_low - h_high;
|
||||
if (fabs(delta/cp_low) > 0.001) {
|
||||
writelog("\n\n**** WARNING ****\nFor species {}, discontinuity"
|
||||
" in h/RT detected at Tmid = {}\n", name, m_midT);
|
||||
writelog("\tValue computed using low-temperature polynomial: {}\n", h_low);
|
||||
writelog("\tValue computed using high-temperature polynomial: {}\n", h_high);
|
||||
warn_user("NasaPoly2::validate",
|
||||
"\nFor species {}, discontinuity in h/RT detected at Tmid = {}\n"
|
||||
"\tValue computed using low-temperature polynomial: {}\n"
|
||||
"\tValue computed using high-temperature polynomial: {}\n",
|
||||
name, m_midT, h_low, h_high);
|
||||
}
|
||||
|
||||
// entropy
|
||||
delta = s_low - s_high;
|
||||
if (fabs(delta/(fabs(s_low)+cp_low)) > 0.001) {
|
||||
writelog("\n\n**** WARNING ****\nFor species {}, discontinuity"
|
||||
" in s/R detected at Tmid = {}\n", name, m_midT);
|
||||
writelog("\tValue computed using low-temperature polynomial: {}\n", s_low);
|
||||
writelog("\tValue computed using high-temperature polynomial: {}\n", s_high);
|
||||
warn_user("NasaPoly2::validate",
|
||||
"\nFor species {}, discontinuity in s/R detected at Tmid = {}\n"
|
||||
"\tValue computed using low-temperature polynomial: {}\n"
|
||||
"\tValue computed using high-temperature polynomial: {}\n",
|
||||
name, m_midT, s_low, s_high);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,40 +1,34 @@
|
|||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 19.8328
|
||||
Value computed using high-temperature polynomial: 19.9055
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 49.5493
|
||||
Value computed using high-temperature polynomial: 49.7214
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 29.3028
|
||||
Value computed using high-temperature polynomial: 29.4297
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 65.9731
|
||||
Value computed using high-temperature polynomial: 66.2781
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 74.0115
|
||||
Value computed using high-temperature polynomial: 74.0387
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 32.8813
|
||||
Value computed using high-temperature polynomial: 32.9489
|
||||
|
||||
|
||||
silane:
|
||||
|
||||
temperature 1500 K
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ int equil_example1(int job)
|
|||
std::cout << "Chemical equilibrium." << std::endl;
|
||||
if (job > 0) {
|
||||
std::cout << "Equilibrium composition and pressure for a "
|
||||
<< "range of temperatures at constant density." << std::endl;
|
||||
<< "range of temperatures at constant density."
|
||||
<< std::endl << std::endl;
|
||||
}
|
||||
if (job <= 1) {
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -40,41 +40,36 @@ Description:
|
|||
Chemical equilibrium.
|
||||
Equilibrium composition and pressure for a range of temperatures at constant density.
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 19.8328
|
||||
Value computed using high-temperature polynomial: 19.9055
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 49.5493
|
||||
Value computed using high-temperature polynomial: 49.7214
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 29.3028
|
||||
Value computed using high-temperature polynomial: 29.4297
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 65.9731
|
||||
Value computed using high-temperature polynomial: 66.2781
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 74.0115
|
||||
Value computed using high-temperature polynomial: 74.0387
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 32.8813
|
||||
Value computed using high-temperature polynomial: 32.9489
|
||||
|
||||
Output files:
|
||||
eq1.csv (Excel CSV file)
|
||||
eq1.dat (Tecplot data file)
|
||||
|
|
|
|||
|
|
@ -1,36 +1,30 @@
|
|||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 19.8328
|
||||
Value computed using high-temperature polynomial: 19.9055
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2H6, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 49.5493
|
||||
Value computed using high-temperature polynomial: 49.7214
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 29.3028
|
||||
Value computed using high-temperature polynomial: 29.4297
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI3H8, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 65.9731
|
||||
Value computed using high-temperature polynomial: 66.2781
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in h/RT detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 74.0115
|
||||
Value computed using high-temperature polynomial: 74.0387
|
||||
|
||||
|
||||
**** WARNING ****
|
||||
UserWarning: 'NasaPoly2::validate':
|
||||
For species SI2, discontinuity in s/R detected at Tmid = 1000
|
||||
Value computed using low-temperature polynomial: 32.8813
|
||||
Value computed using high-temperature polynomial: 32.9489
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue