NeoPZ
|
#include <pzfunction.h>
Public Member Functions | |
TPZDummyFunction () | |
Class constructor. More... | |
virtual | ~TPZDummyFunction () |
Class destructor. More... | |
TPZDummyFunction (void(*FuncPtr)(const TPZVec< REAL > &x, TPZVec< TVar > &val), int polynomialorder) | |
TPZDummyFunction (void(*FuncPtr)(const TPZVec< REAL > &x, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf), int polynomialorder) | |
TPZDummyFunction (void(*FuncPtr)(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf), int polynomialorder) | |
TPZDummyFunction (const TPZDummyFunction &cp) | |
TPZDummyFunction & | operator= (const TPZDummyFunction &cp) |
virtual void | Execute (const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &df) override |
Performs function computation. More... | |
virtual void | Execute (const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf) override |
Performs time dependent function computation. More... | |
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. More... | |
virtual void | Execute (const TPZVec< REAL > &x, TPZVec< TVar > &f) override |
Simpler version of Execute method which does not compute function derivatives. More... | |
virtual int | NFunctions () const override |
Returns number of functions. More... | |
void | SetPolynomialOrder (int porder) |
virtual int | PolynomialOrder () const override |
Polynomial order of this function. More... | |
int | ClassId () const override |
Unique identifier for serialization purposes. More... | |
void | Write (TPZStream &buf, int withclassid) const override |
Saves the element data to a stream. More... | |
void | Read (TPZStream &buf, void *context) override |
Reads the element data from a stream. More... | |
Public Member Functions inherited from TPZFunction< TVar > | |
TPZFunction () | |
Class constructor. More... | |
~TPZFunction () | |
Class destructor. More... | |
virtual void | Print (std::ostream &out) |
Print a brief statement. More... | |
Public Member Functions inherited from TPZSavable | |
TPZSavable () | |
virtual | ~TPZSavable () |
virtual std::list< std::map< std::string, uint64_t > > | VersionHistory () const |
virtual std::pair< std::string, uint64_t > | Version () const |
virtual bool | Compare (TPZSavable *copy, bool override=false) |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
virtual bool | Compare (TPZSavable *copy, bool override=false) const |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
Public Member Functions inherited from TPZRegisterClassId | |
template<typename T > | |
TPZRegisterClassId (int(T::*)() const) | |
TPZRegisterClassId ()=default | |
Private Attributes | |
void(* | fFunc )(const TPZVec< REAL > &x, TPZVec< TVar > &f) |
void(* | fFunc2 )(const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf) |
void(* | fFunc3 )(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf) |
int | fPorder |
Additional Inherited Members | |
Static Public Member Functions inherited from TPZSavable | |
static std::set< TPZRestoreClassBase * > & | RestoreClassSet () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::map< int, TPZRestore_t > & | ClassIdMap () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::pair< std::string, uint64_t > | NeoPZVersion () |
static void | Register (TPZRestoreClassBase *restore) |
static void | RegisterClassId (int classid, TPZRestore_t fun) |
static TPZSavable * | CreateInstance (const int &classId) |
Definition at line 100 of file pzfunction.h.
|
inline |
Class constructor.
Definition at line 111 of file pzfunction.h.
|
inlinevirtual |
Class destructor.
Definition at line 119 of file pzfunction.h.
|
inline |
Definition at line 124 of file pzfunction.h.
|
inline |
Definition at line 133 of file pzfunction.h.
|
inline |
Definition at line 142 of file pzfunction.h.
|
inline |
Definition at line 150 of file pzfunction.h.
|
overridevirtual |
Unique identifier for serialization purposes.
Reimplemented from TPZFunction< TVar >.
Definition at line 262 of file pzfunction.h.
References TPZFunction< TVar >::ClassId(), and Hash().
|
inlineoverridevirtual |
Performs function computation.
x | point coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes. |
f | function values |
df | function derivatives |
Reimplemented from TPZFunction< TVar >.
Definition at line 171 of file pzfunction.h.
References DebugStop, and TPZFMatrix< TVar >::Zero().
|
inlineoverridevirtual |
Performs time dependent function computation.
x | point coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes. |
ftime | time to evaluate |
f | function values |
gradf | function derivatives |
Reimplemented from TPZFunction< TVar >.
Definition at line 192 of file pzfunction.h.
References DebugStop.
|
inlineoverridevirtual |
Execute method receiving axes. It is used in shape functions.
Reimplemented from TPZFunction< TVar >.
Definition at line 204 of file pzfunction.h.
References DebugStop.
|
inlineoverridevirtual |
Simpler version of Execute method which does not compute function derivatives.
x | point coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes. |
f | function values |
Reimplemented from TPZFunction< TVar >.
Definition at line 213 of file pzfunction.h.
References DebugStop.
|
inlineoverridevirtual |
Returns number of functions.
Reimplemented from TPZFunction< TVar >.
Definition at line 221 of file pzfunction.h.
|
inline |
Definition at line 157 of file pzfunction.h.
References TPZDummyFunction< TVar >::fFunc, TPZDummyFunction< TVar >::fFunc2, TPZDummyFunction< TVar >::fFunc3, and TPZDummyFunction< TVar >::fPorder.
|
inlineoverridevirtual |
Polynomial order of this function.
In case of non-polynomial function it can be a reasonable approximation order.
Reimplemented from TPZFunction< TVar >.
Definition at line 233 of file pzfunction.h.
References TPZFunction< TVar >::ClassId(), and DebugStop.
|
inlineoverridevirtual |
Reads the element data from a stream.
Reimplemented from TPZFunction< TVar >.
Definition at line 255 of file pzfunction.h.
References DebugStop.
|
inline |
Definition at line 226 of file pzfunction.h.
References porder.
Referenced by Hdiv2dPaper201504::CMeshH1(), hdivCurvedJCompAppMath::CMeshH1(), Hdiv3dPaper201504::CMeshH1(), Hdiv2dPaper201504::CMeshMixed(), hdivCurvedJCompAppMath::CMeshMixed(), Hdiv3dPaper201504::CMeshMixed(), and TPZMaterial::SetForcingFunction().
|
inlineoverridevirtual |
Saves the element data to a stream.
Reimplemented from TPZFunction< TVar >.
Definition at line 249 of file pzfunction.h.
References DebugStop.
|
private |
Definition at line 103 of file pzfunction.h.
Referenced by TPZDummyFunction< TVar >::operator=().
|
private |
Definition at line 104 of file pzfunction.h.
Referenced by TPZDummyFunction< TVar >::operator=().
|
private |
Definition at line 105 of file pzfunction.h.
Referenced by TPZDummyFunction< TVar >::operator=().
|
private |
Definition at line 107 of file pzfunction.h.
Referenced by TPZDummyFunction< TVar >::operator=().