50 typedef memory::shared_ptr<gsPde> Ptr;
51 typedef memory::unique_ptr<gsPde> uPtr;
70 gsMultiPatch<T> & patches() {
return m_domain;}
72 const gsMultiPatch<T> & patches()
const {
return m_domain;}
93 virtual bool isSymmetric()
const {
gsWarn<<
"Function is gsPde::isSymmetric should not be used!!";
return false;}
96 virtual std::ostream &
print(std::ostream &os)
const = 0;
133 GISMO_DEPRECATED
bool solutionGiven(
index_t field_id = 0)
const
136 const std::vector<gsFunction<T>*> &solutions()
const
139 gsFunction<T>* solution(
index_t field_id = 0)
const
173 std::ostream &operator<<(std::ostream &os, const gsPde<T>& pde)
175 return pde.print(os);
gsMultiPatch< T > & domain()
Returns a reference to the Pde domain.
Definition: gsPde.h:66
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...
Definition: gsPde.h:127
#define GISMO_NO_IMPLEMENTATION
Definition: gsDebug.h:129
#define short_t
Definition: gsConfig.h:35
virtual std::ostream & print(std::ostream &os) const =0
Print a short description of the PDE.
Abstract class representing a PDE (partial differential equation).
Definition: gsPde.h:43
gsBoundaryConditions< T > m_boundary_conditions
Boundary conditions.
Definition: gsPde.h:167
#define index_t
Definition: gsConfig.h:32
virtual gsPde< T > * restrictToPatch(unsigned) const
restrictToPatch creats a new PDE object for a single patch np.
Definition: gsPde.h:157
gsBoundaryConditions< T > & boundaryConditions()
Returns a reference to the Pde boundary conditions.
Definition: gsPde.h:79
#define GISMO_ASSERT(cond, message)
Definition: gsDebug.h:89
#define gsWarn
Definition: gsDebug.h:50
Provides declaration of the MultiPatch class.
GISMO_DEPRECATED short_t dim() const
returns the dimension of the domain
Definition: gsPde.h:147
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
virtual int numRhs() const
gives the number of rhs functions of the PDEs
Definition: gsPde.h:117
Class containing a set of boundary conditions.
Definition: gsBoundaryConditions.h:341
#define GISMO_UNUSED(x)
Definition: gsDebug.h:112
Provides gsBoundaryConditions class.
#define GISMO_ERROR(message)
Definition: gsDebug.h:118
gsMultiPatch< T > m_domain
Computational domain.
Definition: gsPde.h:165
gsPde(const gsMultiPatch< T > &domain, const gsBoundaryConditions< T > &bc)
Constructor without given exact solution.
Definition: gsPde.h:54
int numUnknowns() const
Gives the number of unknown fields of the PDEs.
Definition: gsPde.h:109
gsVector< unsigned > m_unknownDim
Description of the unknown fields: for each one the target dimension.
Definition: gsPde.h:162
const gsVector< unsigned > & unknownDim() const
Gives the vector of dimensions of the unknowns.
Definition: gsPde.h:101