queso-0.53.0
|
Abstract base class for function objects. More...
#include <FunctionBase.h>
Public Member Functions | |
virtual void | add (double scale, const FunctionBase &rhs)=0 |
Execute this += scale * rhs . More... | |
virtual void | pointwise_mult (const FunctionBase &f1, const FunctionBase &f2)=0 |
Pointwise multiply f1 and f2 and store the result in *this . More... | |
virtual void | scale (double scale)=0 |
Execute this *= scale . More... | |
virtual void | zero ()=0 |
Set this to zero everywhere. More... | |
virtual double | L2_norm () const =0 |
Return the L2-norm of this . More... | |
virtual boost::shared_ptr < FunctionBase > | zero_clone () const =0 |
Create a zero function copy of this and return pointer to it. More... | |
virtual void | save_function (const std::string &filename, double time) const =0 |
Save the current function to an Exodus file called filename . time is the time to attach to the function and is usually the iteration number. More... | |
Constructor/Destructor methods | |
FunctionBase () | |
Constructor. More... | |
virtual | ~FunctionBase () |
Destructor. More... | |
Abstract base class for function objects.
One needs to sublclass this abstract class to implement their own functions using a backend not supported by QUESO. If QUESO is linked against libMesh (and libMesh was compiled with SLEPc), you may use LibMeshFunction.
Definition at line 46 of file FunctionBase.h.
QUESO::FunctionBase::FunctionBase | ( | ) |
|
virtual |
|
pure virtual |
Execute this
+= scale
* rhs
.
|
pure virtual |
Return the L2-norm of this
.
|
pure virtual |
Pointwise multiply f1
and f2
and store the result in *this
.
|
pure virtual |
Save the current function to an Exodus file called filename
. time
is the time to attach to the function and is usually the iteration number.
|
pure virtual |
Execute this
*= scale
.
|
pure virtual |
Set this
to zero everywhere.
|
pure virtual |
Create a zero function copy of this
and return pointer to it.
Create a new instance of FunctionBase representing the function that is identically zero (by copying this
) everywhere and return a boost shared pointer to it