77 virtual void Print(std::ostream &out)
79 out << __PRETTY_FUNCTION__ << std::endl;
96 return Hash(
"TPZFunction") ^ ClassIdOrHash<TVar>()<<1;
130 fPorder = polynomialorder;
139 fPorder = polynomialorder;
147 fPorder = polynomialorder;
151 fFunc(cp.fFunc), fFunc2(cp.fFunc2), fFunc3(cp.fFunc3), fPorder(cp.fPorder)
197 fFunc3(x, ftime, f, gradf);
virtual void Execute(const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &df)
Performs function computation.
void(* fFunc)(const TPZVec< REAL > &x, TPZVec< TVar > &f)
Contains declaration of the TPZSavable class which defines the interface to save and restore objects ...
void(* fFunc2)(const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf)
virtual void Print(std::ostream &out)
Print a brief statement.
virtual void Execute(const TPZVec< REAL > &x, const TPZFMatrix< REAL > &axes, TPZVec< TVar > &f, TPZFMatrix< TVar > &df) override
Execute method receiving axes. It is used in shape functions.
TPZFunction()
Class constructor.
int ClassId() const override
Unique identifier for serialization purposes.
Templated vector implementation.
TPZDummyFunction & operator=(const TPZDummyFunction &cp)
TPZDummyFunction(void(*FuncPtr)(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf), int polynomialorder)
virtual void Execute(const TPZVec< REAL > &x, const TPZFMatrix< REAL > &axes, TPZVec< TVar > &f, TPZFMatrix< TVar > &df)
Execute method receiving axes. It is used in shape functions.
REAL val(STATE &number)
Returns value of the variable.
virtual int PolynomialOrder() const override
Polynomial order of this function.
Implements a function. Utility.
int Zero() override
Makes Zero all the elements.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
TPZDummyFunction(void(*FuncPtr)(const TPZVec< REAL > &x, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf), int polynomialorder)
TPZDummyFunction(void(*FuncPtr)(const TPZVec< REAL > &x, TPZVec< TVar > &val), int polynomialorder)
void Read(TPZStream &buf, void *context) override
read objects from the stream
Contains TPZMatrixclass which implements full matrix (using column major representation).
virtual ~TPZDummyFunction()
Class destructor.
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual void Execute(const TPZVec< REAL > &x, REAL time, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf)
Performs time dependent function computation.
TPZDummyFunction()
Class constructor.
~TPZFunction()
Class destructor.
virtual int NFunctions() const
number of values returned by this function
virtual void Execute(const TPZVec< REAL > &x, TPZVec< TVar > &f)
Simpler version of Execute method which does not compute function derivatives.
Full matrix class. Matrix.
int32_t Hash(std::string str)
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual void Execute(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf) override
Performs time dependent function computation.
void SetPolynomialOrder(int porder)
void(* fFunc3)(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf)
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
int ClassId() const override
Define the class id associated with the class.
Defines the interface for saving and reading data. Persistency.
clarg::argInt porder("-porder", "polinomial order", 1)
virtual void Execute(const TPZVec< REAL > &x, TPZVec< TVar > &f) override
Simpler version of Execute method which does not compute function derivatives.
TPZDummyFunction(const TPZDummyFunction &cp)
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
virtual int PolynomialOrder() const
Polynomial order of this function. In case of non-polynomial function it can be a reasonable approxim...
virtual void Execute(const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &df) override
Performs function computation.
virtual int NFunctions() const override
Returns number of functions.