NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZDummyFunction< TVar > Class Template Reference

#include <pzfunction.h>

Inheritance diagram for TPZDummyFunction< TVar >:
[legend]
Collaboration diagram for TPZDummyFunction< TVar >:
[legend]

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)
 
TPZDummyFunctionoperator= (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 TPZSavableCreateInstance (const int &classId)
 

Detailed Description

template<class TVar>
class TPZDummyFunction< TVar >

Definition at line 100 of file pzfunction.h.

Constructor & Destructor Documentation

◆ TPZDummyFunction() [1/5]

template<class TVar>
TPZDummyFunction< TVar >::TPZDummyFunction ( )
inline

Class constructor.

Definition at line 111 of file pzfunction.h.

◆ ~TPZDummyFunction()

template<class TVar>
virtual TPZDummyFunction< TVar >::~TPZDummyFunction ( )
inlinevirtual

Class destructor.

Definition at line 119 of file pzfunction.h.

◆ TPZDummyFunction() [2/5]

template<class TVar>
TPZDummyFunction< TVar >::TPZDummyFunction ( void(*)(const TPZVec< REAL > &x, TPZVec< TVar > &val FuncPtr,
int  polynomialorder 
)
inline

Definition at line 124 of file pzfunction.h.

◆ TPZDummyFunction() [3/5]

template<class TVar>
TPZDummyFunction< TVar >::TPZDummyFunction ( void(*)(const TPZVec< REAL > &x, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf)  FuncPtr,
int  polynomialorder 
)
inline

Definition at line 133 of file pzfunction.h.

◆ TPZDummyFunction() [4/5]

template<class TVar>
TPZDummyFunction< TVar >::TPZDummyFunction ( void(*)(const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &val, TPZFMatrix< TVar > &gradf)  FuncPtr,
int  polynomialorder 
)
inline

Definition at line 142 of file pzfunction.h.

◆ TPZDummyFunction() [5/5]

template<class TVar>
TPZDummyFunction< TVar >::TPZDummyFunction ( const TPZDummyFunction< TVar > &  cp)
inline

Definition at line 150 of file pzfunction.h.

Member Function Documentation

◆ ClassId()

template<class TVar >
int TPZDummyFunction< TVar >::ClassId ( ) const
overridevirtual

Unique identifier for serialization purposes.

Reimplemented from TPZFunction< TVar >.

Definition at line 262 of file pzfunction.h.

References TPZFunction< TVar >::ClassId(), and Hash().

◆ Execute() [1/4]

template<class TVar>
virtual void TPZDummyFunction< TVar >::Execute ( const TPZVec< REAL > &  x,
TPZVec< TVar > &  f,
TPZFMatrix< TVar > &  df 
)
inlineoverridevirtual

Performs function computation.

Parameters
xpoint coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes.
ffunction values
dffunction derivatives

Reimplemented from TPZFunction< TVar >.

Definition at line 171 of file pzfunction.h.

References DebugStop, and TPZFMatrix< TVar >::Zero().

◆ Execute() [2/4]

template<class TVar>
virtual void TPZDummyFunction< TVar >::Execute ( const TPZVec< REAL > &  x,
REAL  ftime,
TPZVec< TVar > &  f,
TPZFMatrix< TVar > &  gradf 
)
inlineoverridevirtual

Performs time dependent function computation.

Parameters
xpoint coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes.
ftimetime to evaluate
ffunction values
gradffunction derivatives

Reimplemented from TPZFunction< TVar >.

Definition at line 192 of file pzfunction.h.

References DebugStop.

◆ Execute() [3/4]

template<class TVar>
virtual void TPZDummyFunction< TVar >::Execute ( const TPZVec< REAL > &  x,
const TPZFMatrix< REAL > &  axes,
TPZVec< TVar > &  f,
TPZFMatrix< TVar > &  df 
)
inlineoverridevirtual

Execute method receiving axes. It is used in shape functions.

Note
NOT IMPLEMENTED

Reimplemented from TPZFunction< TVar >.

Definition at line 204 of file pzfunction.h.

References DebugStop.

◆ Execute() [4/4]

template<class TVar>
virtual void TPZDummyFunction< TVar >::Execute ( const TPZVec< REAL > &  x,
TPZVec< TVar > &  f 
)
inlineoverridevirtual

Simpler version of Execute method which does not compute function derivatives.

Parameters
xpoint coordinate which is suppose to be in real coordinate system but can be in master coordinate system in derived classes.
ffunction values

Reimplemented from TPZFunction< TVar >.

Definition at line 213 of file pzfunction.h.

References DebugStop.

◆ NFunctions()

template<class TVar>
virtual int TPZDummyFunction< TVar >::NFunctions ( ) const
inlineoverridevirtual

Returns number of functions.

Reimplemented from TPZFunction< TVar >.

Definition at line 221 of file pzfunction.h.

◆ operator=()

template<class TVar>
TPZDummyFunction& TPZDummyFunction< TVar >::operator= ( const TPZDummyFunction< TVar > &  cp)
inline

◆ PolynomialOrder()

template<class TVar>
virtual int TPZDummyFunction< TVar >::PolynomialOrder ( ) const
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.

◆ Read()

template<class TVar>
void TPZDummyFunction< TVar >::Read ( TPZStream buf,
void *  context 
)
inlineoverridevirtual

Reads the element data from a stream.

Reimplemented from TPZFunction< TVar >.

Definition at line 255 of file pzfunction.h.

References DebugStop.

◆ SetPolynomialOrder()

template<class TVar>
void TPZDummyFunction< TVar >::SetPolynomialOrder ( int  porder)
inline

◆ Write()

template<class TVar>
void TPZDummyFunction< TVar >::Write ( TPZStream buf,
int  withclassid 
) const
inlineoverridevirtual

Saves the element data to a stream.

Reimplemented from TPZFunction< TVar >.

Definition at line 249 of file pzfunction.h.

References DebugStop.

Member Data Documentation

◆ fFunc

template<class TVar>
void(* TPZDummyFunction< TVar >::fFunc) (const TPZVec< REAL > &x, TPZVec< TVar > &f)
private

Definition at line 103 of file pzfunction.h.

Referenced by TPZDummyFunction< TVar >::operator=().

◆ fFunc2

template<class TVar>
void(* TPZDummyFunction< TVar >::fFunc2) (const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf)
private

Definition at line 104 of file pzfunction.h.

Referenced by TPZDummyFunction< TVar >::operator=().

◆ fFunc3

template<class TVar>
void(* TPZDummyFunction< TVar >::fFunc3) (const TPZVec< REAL > &x, REAL ftime, TPZVec< TVar > &f, TPZFMatrix< TVar > &gradf)
private

Definition at line 105 of file pzfunction.h.

Referenced by TPZDummyFunction< TVar >::operator=().

◆ fPorder

template<class TVar>
int TPZDummyFunction< TVar >::fPorder
private

Definition at line 107 of file pzfunction.h.

Referenced by TPZDummyFunction< TVar >::operator=().


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