Skip to content
Snippets Groups Projects
Commit 6c109967 authored by Feliks Kiszkurno's avatar Feliks Kiszkurno
Browse files

Fixes problem with derivatives

Added entry to docs
parent 2346a552
No related branches found
No related tags found
No related merge requests found
\copydoc MaterialPropertyLib::WaterThermalConductivityIAPWS
......@@ -138,7 +138,7 @@ double computedBarLambda_dbarT(const double barT, double bar_rho)
double dlambda0_factor_dbarT = 0.0;
double barT_i = barT * barT;
for (int i = 1; i < 4; i++)
for (int i = 1; i < 5; i++)
{
dlambda0_factor_dbarT -= static_cast<double>(i) * (Li[i] / barT_i);
barT_i *= barT;
......
......@@ -42,7 +42,7 @@ TEST(Material, checkWaterThermalConductivityIAPWS_)
const double expected_lambda[] = {18.4341883e-3, 607.712868e-3, 799.038144e-3, 79.1034659e-3};
const double perturbation = 1.e-9;
const double perturbation = 1.e-8;
for (int i = 0; i < 4; i++)
{
// Test lambda
......@@ -58,7 +58,7 @@ TEST(Material, checkWaterThermalConductivityIAPWS_)
const double dlambda_drho = property.template dValue<double>(
variable_array, MaterialPropertyLib::Variable::density, pos,
t, dt);
/*
// Test dlambda/dT
variable_array.temperature =
T[i] + perturbation;
......@@ -74,6 +74,5 @@ TEST(Material, checkWaterThermalConductivityIAPWS_)
variable_array, pos, t, dt);
ASSERT_NEAR((lambda1 - lambda) / perturbation, dlambda_drho, 8.e-6);
*/
}
}
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