Functions | |
void | bracket (std::function< Real(Real)> const &f, Real &x1, Real &x2) |
Function to bracket a root of a given function. More... | |
Real | root (std::function< Real(Real)> const &f, Real x1, Real x2, Real tol=1.0e-12) |
Finds the root of a function using Brent's method. More... | |
Function to bracket a root of a given function.
Adapted from Numerical Recipes in C
f | reference to function to find bracketing interval | |
[out] | x1 | reference one bound |
[out] | x2 | reference to other bound |
Increment counter
Increment counter
Definition at line 17 of file BrentsMethod.C.
Referenced by IdealRealGasMixtureFluidProperties::p_T_from_v_e(), CaloricallyImperfectGas::rho_from_p_s(), HelmholtzFluidProperties::rho_from_p_T(), CO2FluidProperties::rho_from_p_T(), CaloricallyImperfectGas::setupLookupTables(), GeochemicalModelInterrogator::solveForT(), IdealRealGasMixtureFluidProperties::T_from_p_v(), TEST(), and IdealRealGasMixtureFluidProperties::v_from_p_T().
Real BrentsMethod::root | ( | std::function< Real(Real)> const & | f, |
Real | x1, | ||
Real | x2, | ||
Real | tol = 1.0e-12 |
||
) |
Finds the root of a function using Brent's method.
Adapted from Numerical Recipes in C
f | reference to function to find root of |
x1 | one end of bracketing interval |
x2 | other end of bracketing interval |
tolerance | root finding tolerance (default is 1e-12) |
Definition at line 61 of file BrentsMethod.C.
Referenced by ParameterStudyAction::inferMultiAppMode(), IdealRealGasMixtureFluidProperties::p_T_from_v_e(), PolycrystalHex::precomputeGrainStructure(), CaloricallyImperfectGas::rho_from_p_s(), HelmholtzFluidProperties::rho_from_p_T(), CO2FluidProperties::rho_from_p_T(), CaloricallyImperfectGas::setupLookupTables(), IdealRealGasMixtureFluidProperties::T_from_p_v(), TEST(), testExceptionMessage(), and IdealRealGasMixtureFluidProperties::v_from_p_T().