#include <OdeSystemForCoupledHeatEquation.hpp>
Inherits AbstractOdeSystemForCoupledPdeSystem.
Public Member Functions | |
OdeSystemForCoupledHeatEquation (double a) | |
void | EvaluateYDerivatives (double time, const std::vector< double > &rY, std::vector< double > &rDY) |
Private Attributes | |
double | mA |
An ODE system given by
dv/dt = a*u, v(0) = 1,
that couples with the heat equation
u_t = div (grad u),
which is defined in the separate class HeatEquationForCoupledOdeSystem.
Definition at line 46 of file OdeSystemForCoupledHeatEquation.hpp.
OdeSystemForCoupledHeatEquation::OdeSystemForCoupledHeatEquation | ( | double | a | ) | [inline] |
Constructor.
a | the value of the parameter mA |
Definition at line 60 of file OdeSystemForCoupledHeatEquation.hpp.
References AbstractUntemplatedParameterisedSystem::mpSystemInfo, and AbstractParameterisedSystem< std::vector< double > >::ResetToInitialConditions().
void OdeSystemForCoupledHeatEquation::EvaluateYDerivatives | ( | double | time, | |
const std::vector< double > & | rY, | |||
std::vector< double > & | rDY | |||
) | [inline, virtual] |
Method to evaluate the derivatives of the system.
time | the current time | |
rY | the current values of the state variables | |
rDY | storage for the derivatives of the system; will be filled in on return |
Implements AbstractOdeSystem.
Definition at line 75 of file OdeSystemForCoupledHeatEquation.hpp.
References mA, AbstractOdeSystemForCoupledPdeSystem::mPdeSolution, and AbstractOdeSystemForCoupledPdeSystem::mPdeSolutionSize.
double OdeSystemForCoupledHeatEquation::mA [private] |
A parameter for use in the ODE system.
Definition at line 51 of file OdeSystemForCoupledHeatEquation.hpp.
Referenced by EvaluateYDerivatives().