#include <sfunctions.h>
Public Member Functions | |
Function1D (unsigned n_components=1) | |
virtual double | operator() (double dd, unsigned cmp=0) const =0 |
virtual bool | isInDomain (double dd, unsigned component=0) const |
virtual double | getMaxNorm (double a, double b) const |
virtual double | operator() (const VecDouble &p, unsigned int component=0) const |
virtual bool | isInDomain (const VecDouble &p, unsigned component=0) const |
virtual void | getMinMaxValues (double a, double b, double &min, double &max) const |
virtual | ~Function1D () |
void | plot (std::ostream &out, double a, double b, unsigned nPoints, unsigned cmp=0) |
void | evaluate (VecDouble &v) |
Definition at line 58 of file sfunctions.h.
Function1D::Function1D | ( | unsigned | n_components = 1 |
) | [inline] |
Definition at line 61 of file sfunctions.h.
00061 :GeneralFunctionInterface(1,n_components) 00062 {}
virtual Function1D::~Function1D | ( | ) | [inline, virtual] |
Definition at line 93 of file sfunctions.h.
void Function1D::evaluate | ( | VecDouble & | v | ) | [inline] |
Definition at line 108 of file sfunctions.h.
00109 { 00110 for (unsigned i=0;i<v.size();i++) 00111 { 00112 v(i)=this->operator()(v(i)); 00113 } 00114 00115 }
virtual double Function1D::getMaxNorm | ( | double | a, | |
double | b | |||
) | const [inline, virtual] |
Reimplemented in DFChaventMobility.
Definition at line 67 of file sfunctions.h.
00068 { 00069 double min,max; 00070 getMinMaxValues(a,b,min,max); 00071 return std::max(fabs(min),fabs(max)); 00072 }
virtual void Function1D::getMinMaxValues | ( | double | a, | |
double | b, | |||
double & | min, | |||
double & | max | |||
) | const [inline, virtual] |
Reimplemented in DFBucleyLeverettGravityMob, DFChaventMobility, DFLinearMobilityProduct, FBucleyLeverettGravityMob, FChaventMobility, FDFractionalLinearMobility, and FLinear.
Definition at line 86 of file sfunctions.h.
virtual bool Function1D::isInDomain | ( | const VecDouble & | p, | |
unsigned | component = 0 | |||
) | const [inline, virtual] |
Reimplemented from GeneralFunctionInterface.
Definition at line 79 of file sfunctions.h.
00080 { 00081 return this->isInDomain(p(0),component); 00082 }
virtual bool Function1D::isInDomain | ( | double | dd, | |
unsigned | component = 0 | |||
) | const [inline, virtual] |
virtual double Function1D::operator() | ( | const VecDouble & | p, | |
unsigned int | component = 0 | |||
) | const [inline, virtual] |
Implements GeneralFunctionInterface.
Definition at line 74 of file sfunctions.h.
virtual double Function1D::operator() | ( | double | dd, | |
unsigned | cmp = 0 | |||
) | const [pure virtual] |
Implemented in DFBucleyLeverettGravityMob, DFChaventMobility, DFLinearMobilityProduct, DFPcFracture, DFPcSquare, BSInverse, FBucleyLeverettGravityMob, FBucleyLeverettTotalMob, FChaventMobility, FDFractionalLinearMobility, FFractionalLinearMobility, FInterpolate, FLinear, FLinearMobilityProduct, FFracFluxFromRelK, FMobTFromRelK, FFracGravFromRelK, DFFracGravFromRelK, DFFracFluxFromRelK, FPcFracture, FPcInvFracture, FPcLinear, FPcSquare, FQuadratic, FSquareMob, FSquareMobT, FKrwPiri, DFKrwPiri, FKrcPiri, DFKrcPiri, and InvCapPress.
void Function1D::plot | ( | std::ostream & | out, | |
double | a, | |||
double | b, | |||
unsigned | nPoints, | |||
unsigned | cmp = 0 | |||
) | [inline] |
Definition at line 98 of file sfunctions.h.