60 double const t,
double const dt)
const
65 const double epsilon = 1.e-6;
70 const double rho_plus = std::get<double>(
value(perturbed, pos, t, dt));
74 const double rho_minus = std::get<double>(
value(perturbed, pos, t, dt));
77 return (rho_plus - rho_minus) / (2 * epsilon);
83 const double epsilon = 1.e-3;
88 const double rho_plus = std::get<double>(
value(perturbed, pos, t, dt));
92 const double rho_minus = std::get<double>(
value(perturbed, pos, t, dt));
95 return (rho_plus - rho_minus) / (2 * epsilon);
99 "PengRobinson::dValue is implemented for derivatives with respect to "
100 "gas phase pressure or temperature only.");
PropertyDataType dValue(MaterialPropertyLib::VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType