G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsPoissonPde< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsPoissonPde< T >

A Poisson PDE.

This class describes a Poisson PDE, with an arbitrary right-hand side function.

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

Public Member Functions

gsBoundaryConditions< T > & boundaryConditions ()
 Returns a reference to the Pde boundary conditions.
 
GISMO_DEPRECATED short_t dim () const
 returns the dimension of the domain
 
gsMultiPatch< T > & domain ()
 Returns a reference to the Pde domain.
 
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.
 
 gsPoissonPde (const gsMultiPatch< T > &domain, const gsBoundaryConditions< T > &bc, const gsPiecewiseFunction< T > &rhs, const gsFunction< T > *=NULL)
 Constructor.
 
virtual int numRhs () const
 gives the number of rhs functions of the PDEs
 
virtual std::ostream & print (std::ostream &os) const
 Prints the object as a string.
 
virtual gsPde< T > * restrictToPatch (unsigned np) const
 restrictToPatch creats a new PDE object for a single patch np.
 
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

◆ boundaryConditions()

template<class T >
gsBoundaryConditions< T > & boundaryConditions ( )
inlineinherited

Returns a reference to the Pde boundary conditions.

There is also a const version returning a const reference.

◆ domain()

template<class T >
gsMultiPatch< T > & domain ( )
inlineinherited

Returns a reference to the Pde domain.

There is also a const version returning a const reference.

◆ fieldDim()

template<class T >
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

◆ restrictToPatch()

template<class T >
virtual gsPde< T > * restrictToPatch ( unsigned  ) const
inlinevirtual

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 from gsPde< T >.