G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsEulerBernoulliBeamPde.h
1 
2 #pragma once
3 
4 #include <gsPde/gsPde.h>
5 
6 namespace gismo
7 {
8 
9 
19 template<class T=real_t>
20 class gsEulerBernoulliBeamPde : public gsPde<T>
21 {
22 private:
26 
27 public:
29  const gsMultiPatch<T> &domain,
30  const gsBoundaryConditions<T> &bc,
31  gsFunction<T> * rhs )
32  : gsPde<T>(domain,bc), m_rhs(rhs)
33  {
34  m_unknownDim.push_back(1);
35  }
36 
38  const gsMultiPatch<T> &domain,
39  const gsBoundaryConditions<T> &bc,
40  const gsFunction<T> & rhs )
41  : gsPde<T>(domain,bc), m_rhs(rhs.clone())
42  {
43  m_unknownDim.push_back(1);
44  }
45  // COMPATIBILITY CONSTRUCTOR, DO NOT USE
47  : m_rhs(rhs)
48  {
49  m_unknownDim.push_back(1);
50  }
51 
52 
53  gsFunction<T> * rhs() const { return m_rhs; }
54 
56  std::ostream &print(std::ostream &os) const
57  {
58  os << "Euler-Bernoulli beam equation\n";
59  return os;
60  }
61 
62 private:
63 
64  gsFunction<T> *m_rhs;
65 
66 }; // class gsEulerBernoulliBeamPde
67 
68 } // namespace gismo
gsMultiPatch< T > & domain()
Returns a reference to the Pde domain.
Definition: gsPde.h:66
Abstract class representing a PDE (partial differential equation).
Definition: gsPde.h:43
A function from a n-dimensional domain to an m-dimensional image.
Definition: gsFunction.h:59
Base class of descriptions of a PDE problem.
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition: gsMultiPatch.h:33
uPtr clone()
Clone methode. Produceds a deep copy inside a uPtr.
std::ostream & print(std::ostream &os) const
Prints the object as a string.
Definition: gsEulerBernoulliBeamPde.h:56
Class containing a set of boundary conditions.
Definition: gsBoundaryConditions.h:341
The differential equation describing the linear Euler-Bernoulli beam.
Definition: gsEulerBernoulliBeamPde.h:20
gsVector< unsigned > m_unknownDim
Description of the unknown fields: for each one the target dimension.
Definition: gsPde.h:162