G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsLaplacePde.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <gsPde/gsPde.h>
19 
20 namespace gismo
21 {
22 
33 template<class T>
34 class gsLaplacePde : public gsPde<T>
35 {
36 protected:
37  using gsPde<T>::m_domain;
38 
39 public:
40  gsLaplacePde( ) { }
41 
43  {
44  m_domain = domain;
45  this->m_unknownDim.setOnes(1);
46  }
47 
48  gsLaplacePde(const gsMultiPatch<T> & domain,
49  const gsBoundaryConditions<T> & bc)
50  : gsPde<T>(domain,bc)
51  {
52  this->m_unknownDim.setOnes(1);
53  }
54 
56  std::ostream &print(std::ostream &os) const
57  {
58  os<<"Laplace equation -\u0394u = 0\n";
59  return os;
60  }
61 
62 }; // class gsLaplacePde
63 
64 } // namespace gismo
gsMultiPatch< T > & domain()
Returns a reference to the Pde domain.
Definition: gsPde.h:66
The Laplace equation.
Definition: gsLaplacePde.h:34
Abstract class representing a PDE (partial differential equation).
Definition: gsPde.h:43
Base class of descriptions of a PDE problem.
std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition: gsLaplacePde.h:56
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
gsVector< unsigned > m_unknownDim
Description of the unknown fields: for each one the target dimension.
Definition: gsPde.h:162