47 :
gsPde<T>(domain,bc), m_rhs(rhs)
57 : m_compat_dim(domdim), m_rhs(rhs)
63 gsPoissonPde(
const gsFunction<T> &rhs,
65 : m_compat_dim(domdim), m_rhs(rhs)
73 gsPoissonPde(
void * unused)
75 m_rhs=
new gsConstantFunction<T>(0);
86 return m_rhs.piece(0).targetDim();
91 virtual int numUnknowns()
const {
return 1;}
93 virtual bool isSymmetric ()
const {
gsWarn<<
"Function is gsPde::isSymmetric should not be used!!";
return true;}
96 virtual std::ostream &
print(std::ostream &os)
const
98 os<<
"Poisson's equation -\u0394u = f , with:\n";
99 os<<
"Source function f= "<< m_rhs <<
".\n";
gsMultiPatch< T > & domain()
Returns a reference to the Pde domain.
Definition: gsPde.h:66
gsPoissonPde(const gsMultiPatch< T > &domain, const gsBoundaryConditions< T > &bc, const gsPiecewiseFunction< T > &rhs, const gsFunction< T > *=NULL)
Constructor.
Definition: gsPoissonPde.h:43
virtual std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition: gsPoissonPde.h:96
virtual int numRhs() const
gives the number of rhs functions of the PDEs
Definition: gsPoissonPde.h:84
Abstract class representing a PDE (partial differential equation).
Definition: gsPde.h:43
gsBoundaryConditions< T > m_boundary_conditions
Boundary conditions.
Definition: gsPde.h:167
A function from a n-dimensional domain to an m-dimensional image.
Definition: gsFunction.h:59
Base class of descriptions of a PDE problem.
#define gsWarn
Definition: gsDebug.h:50
virtual gsPde< T > * restrictToPatch(unsigned np) const
restrictToPatch creats a new PDE object for a single patch np.
Definition: gsPoissonPde.h:103
A Poisson PDE.
Definition: gsPoissonPde.h:34
Provides declaration of a gsPiecewiseFunction class.
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition: gsMultiPatch.h:33
Class containing a set of boundary conditions.
Definition: gsBoundaryConditions.h:341
gsMultiPatch< T > m_domain
Computational domain.
Definition: gsPde.h:165
A function depending on an index i, typically referring to a patch/sub-domain. On each patch a differ...
Definition: gsPiecewiseFunction.h:28
gsVector< unsigned > m_unknownDim
Description of the unknown fields: for each one the target dimension.
Definition: gsPde.h:162