G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsMassAssembler.h
Go to the documentation of this file.
1 
16 #pragma once
17 
19 
20 namespace gismo
21 {
22 
29 template <class T>
30 class gsMassAssembler : public gsBaseAssembler<T>
31 {
32 public:
33  typedef gsBaseAssembler<T> Base;
34 
35  gsMassAssembler(const gsMultiPatch<T> & patches,
36  const gsMultiBasis<T> & basis,
37  const gsBoundaryConditions<T> & bconditions,
38  const gsFunction<T> & body_force);
39 
41  static gsOptionList defaultOptions();
42 
44  virtual void refresh();
45 
47  virtual void assemble(bool saveEliminationMatrix = false);
48 
49  virtual bool assemble(const gsMatrix<T> & solutionVector,
50  const std::vector<gsMatrix<T> > & fixedDDoFs)
51  {assemble(); return true;}
52 
53 protected:
57 
58  using Base::m_pde_ptr;
59  using Base::m_bases;
60  using Base::m_options;
61  using Base::m_system;
62  using Base::m_ddof;
63  using Base::eliminationMatrix;
64 };
65 
66 } // namespace gismo ends
67 
68 #ifndef GISMO_BUILD_LIB
69 #include GISMO_HPP_HEADER(gsElMassAssembler.hpp)
70 #endif
memory::shared_ptr< gsPde< T > > m_pde_ptr
Definition: gsAssembler.h:276
static gsOptionList defaultOptions()
Returns the list of default options for assembly.
Definition: gsMassAssembler.hpp:51
#define short_t
Definition: gsConfig.h:35
gsOptionList m_options
Options.
Definition: gsAssembler.h:285
std::vector< gsMultiBasis< T > > m_bases
Definition: gsAssembler.h:282
virtual bool assemble(const gsMatrix< T > &solutionVector, const std::vector< gsMatrix< T > > &fixedDDoFs)
Definition: gsMassAssembler.h:49
const gsMultiPatch< T > & patches() const
Return the multipatch.
Definition: gsAssembler.h:601
Base class for assemblers of gsElasticity.
virtual void refresh()
Refresh routine to set dof-mappers.
Definition: gsMassAssembler.hpp:59
gsSparseSystem< T > m_system
Global sparse linear system.
Definition: gsAssembler.h:290
std::vector< gsMatrix< T > > m_ddof
Definition: gsAssembler.h:295
short_t m_dim
Definition: gsMassAssembler.h:56
virtual void assemble()
Main assemble routine, to be implemented in derived classes.
Definition: gsAssembler.hpp:51