Public Member Functions | Public Attributes | List of all members
oomph::SolutionFunctor Class Reference

#include <oomph_utilities.h>

+ Inheritance diagram for oomph::SolutionFunctor:

Public Member Functions

 SolutionFunctor ()
 
 SolutionFunctor (TimeSpaceToDoubleVectFctPt solution_fpt)
 
 SolutionFunctor (TimeSpaceToDoubleVectFctPt solution_fpt, TimeSpaceValueToDoubleVectFctPt derivative_fpt)
 
virtual ~SolutionFunctor ()
 
 SolutionFunctor (const SolutionFunctor &that)
 
void operator= (const SolutionFunctor &that)
 
virtual Vector< double > operator() (const double &t, const Vector< double > &x) const
 Call the function. More...
 
virtual Vector< double > derivative (const double &t, const Vector< double > &x, const Vector< double > &u) const
 Call the derivative function. More...
 
- Public Member Functions inherited from oomph::SolutionFunctorBase
virtual ~SolutionFunctorBase ()
 Virtual destructor. More...
 
virtual void jacobian (const double &t, const Vector< double > &x, const Vector< double > &u, DenseMatrix< double > &jacobian) const
 
virtual bool have_jacobian () const
 Is a jacobian function implemented? More...
 
virtual void initialise_from_problem (const Problem *problem_pt)
 Overload to grab data from the problem. More...
 

Public Attributes

TimeSpaceToDoubleVectFctPt Solution_fpt
 Storage for solution. More...
 
TimeSpaceValueToDoubleVectFctPt Derivative_fpt
 Storage for derivative. More...
 

Additional Inherited Members

- Public Types inherited from oomph::SolutionFunctorBase
typedef double(* TimeSpaceToDoubleFctPt )(const double &t, const Vector< double > &x)
 General function of space and time which returns a double. More...
 
typedef Vector< double >(* TimeSpaceToDoubleVectFctPt )(const double &t, const Vector< double > &x)
 General function of space and time which returns a vector of doubles. More...
 
typedef Vector< double >(* TimeSpaceValueToDoubleVectFctPt )(const double &t, const Vector< double > &x, const Vector< double > &u)
 

Detailed Description

Function class for a simple function with no external parameters (just stores a function pointer, only needed for compatability).

Definition at line 1145 of file oomph_utilities.h.

Constructor & Destructor Documentation

oomph::SolutionFunctor::SolutionFunctor ( )
inline

Definition at line 1155 of file oomph_utilities.h.

oomph::SolutionFunctor::SolutionFunctor ( TimeSpaceToDoubleVectFctPt  solution_fpt)
inline

Definition at line 1161 of file oomph_utilities.h.

oomph::SolutionFunctor::SolutionFunctor ( TimeSpaceToDoubleVectFctPt  solution_fpt,
TimeSpaceValueToDoubleVectFctPt  derivative_fpt 
)
inline

Definition at line 1167 of file oomph_utilities.h.

virtual oomph::SolutionFunctor::~SolutionFunctor ( )
inlinevirtual

Definition at line 1174 of file oomph_utilities.h.

oomph::SolutionFunctor::SolutionFunctor ( const SolutionFunctor that)
inline

Definition at line 1176 of file oomph_utilities.h.

References Derivative_fpt, and Solution_fpt.

Member Function Documentation

virtual Vector<double> oomph::SolutionFunctor::derivative ( const double &  t,
const Vector< double > &  x,
const Vector< double > &  u 
) const
inlinevirtual

Call the derivative function.

Implements oomph::SolutionFunctorBase.

Definition at line 1203 of file oomph_utilities.h.

References oomph::Global_string_for_annotation::string().

virtual Vector<double> oomph::SolutionFunctor::operator() ( const double &  t,
const Vector< double > &  x 
) const
inlinevirtual

Call the function.

Implements oomph::SolutionFunctorBase.

Definition at line 1189 of file oomph_utilities.h.

References oomph::Global_string_for_annotation::string().

void oomph::SolutionFunctor::operator= ( const SolutionFunctor that)
inline

Definition at line 1182 of file oomph_utilities.h.

References Derivative_fpt, and Solution_fpt.

Member Data Documentation

TimeSpaceValueToDoubleVectFctPt oomph::SolutionFunctor::Derivative_fpt

Storage for derivative.

Definition at line 1221 of file oomph_utilities.h.

Referenced by operator=(), and SolutionFunctor().

TimeSpaceToDoubleVectFctPt oomph::SolutionFunctor::Solution_fpt

Storage for solution.

Definition at line 1218 of file oomph_utilities.h.

Referenced by operator=(), and SolutionFunctor().


The documentation for this class was generated from the following file: