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";
Class containing a set of boundary conditions.
Definition gsBoundaryConditions.h:342
A function from a n-dimensional domain to an m-dimensional image.
Definition gsFunction.h:60
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition gsMultiPatch.h:100
Abstract class representing a PDE (partial differential equation).
Definition gsPde.h:44
gsMultiPatch< T > & domain()
Returns a reference to the Pde domain.
Definition gsPde.h:66
gsVector< unsigned > m_unknownDim
Description of the unknown fields: for each one the target dimension.
Definition gsPde.h:162
gsMultiPatch< T > m_domain
Computational domain.
Definition gsPde.h:165
gsBoundaryConditions< T > m_boundary_conditions
Boundary conditions.
Definition gsPde.h:167
A function depending on an index i, typically referring to a patch/sub-domain. On each patch a differ...
Definition gsPiecewiseFunction.h:29
A Poisson PDE.
Definition gsPoissonPde.h:35
gsPoissonPde(const gsMultiPatch< T > &domain, const gsBoundaryConditions< T > &bc, const gsPiecewiseFunction< T > &rhs, const gsFunction< T > *=NULL)
Constructor.
Definition gsPoissonPde.h:43
virtual gsPde< T > * restrictToPatch(unsigned np) const
restrictToPatch creats a new PDE object for a single patch np.
Definition gsPoissonPde.h:103
virtual int numRhs() const
gives the number of rhs functions of the PDEs
Definition gsPoissonPde.h:84
virtual std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition gsPoissonPde.h:96
#define gsWarn
Definition gsDebug.h:50
Base class of descriptions of a PDE problem.
Provides declaration of a gsPiecewiseFunction class.
The G+Smo namespace, containing all definitions for the library.