G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsConvDiffRePde< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsConvDiffRePde< T >

A convection-diffusion-reaction PDE, including source term on the right-hand side.

Any of the coefficients may be a NULL pointer, meaning that it is zero.

+ Inheritance diagram for gsConvDiffRePde< T >:
+ Collaboration diagram for gsConvDiffRePde< T >:

Public Member Functions

gsBoundaryConditions< T > & boundaryConditions ()
 Returns a reference to the Pde boundary conditions. More...
 
GISMO_DEPRECATED short_t dim () const
 returns the dimension of the domain
 
gsMultiPatch< T > & domain ()
 Returns a reference to the Pde domain. More...
 
GISMO_DEPRECATED int fieldDim (index_t field_id=0)
 gives the dimension of the i-th field it returns 1 for scalar fields, 2 for 2d vectors field etc. More...
 
virtual bool isSymmetric () const
 
virtual int numRhs () const
 gives the number of rhs functions of the PDEs
 
int numUnknowns () const
 Gives the number of unknown fields of the PDEs.
 
std::ostream & print (std::ostream &os) const
 Print a short description of the PDE.
 
virtual gsPde< T > * restrictToPatch (unsigned) const
 restrictToPatch creats a new PDE object for a single patch np. More...
 
const gsVector< unsigned > & unknownDim () const
 Gives the vector of dimensions of the unknowns.
 

Protected Attributes

gsBoundaryConditions< T > m_boundary_conditions
 Boundary conditions.
 
gsMultiPatch< T > m_domain
 Computational domain.
 
gsVector< unsigned > m_unknownDim
 Description of the unknown fields: for each one the target dimension.
 

Member Function Documentation

gsBoundaryConditions<T>& boundaryConditions ( )
inlineinherited

Returns a reference to the Pde boundary conditions.

There is also a const version returning a const reference.

gsMultiPatch<T>& domain ( )
inlineinherited

Returns a reference to the Pde domain.

There is also a const version returning a const reference.

GISMO_DEPRECATED int fieldDim ( index_t  field_id = 0)
inlineinherited

gives the dimension of the i-th field it returns 1 for scalar fields, 2 for 2d vectors field etc.

Parameters
field_idthe field index
virtual bool isSymmetric ( ) const
inlinevirtual

(m_conv==NULL);

Reimplemented from gsPde< T >.

virtual gsPde<T>* restrictToPatch ( unsigned  ) const
inlinevirtualinherited

restrictToPatch creats a new PDE object for a single patch np.

Parameters
npthe patch index
Returns
a pointer to an allocated gsPDE<T> object.

Reimplemented in gsPoissonPde< T >.