G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsMassAssembler.h
Go to the documentation of this file.
1
16#pragma once
17
19
20namespace gismo
21{
22
29template <class T>
31{
32public:
34
36 const gsMultiBasis<T> & basis,
37 const gsBoundaryConditions<T> & bconditions,
38 const gsFunction<T> & body_force);
39
42
44 virtual void refresh();
45
48 virtual void assemble(bool saveEliminationMatrix);
49
50 virtual void assemble() { assemble(false); };
51
52 using Base::assemble;
53 virtual bool assemble(const gsMatrix<T> & /* solutionVector */,
54 const std::vector<gsMatrix<T> > & /* fixedDDoFs */)
55 {assemble(); return true;}
57
58protected:
62
63 using Base::m_pde_ptr;
64 using Base::m_bases;
65 using Base::m_options;
66 using Base::m_system;
67 using Base::m_ddof;
68 using Base::eliminationMatrix;
69};
70
71} // namespace gismo ends
72
73#ifndef GISMO_BUILD_LIB
74#include GISMO_HPP_HEADER(gsElMassAssembler.hpp)
75#endif
gsSparseSystem< T > m_system
Global sparse linear system.
Definition gsAssembler.h:290
std::vector< gsMultiBasis< T > > m_bases
Definition gsAssembler.h:282
gsOptionList m_options
Options.
Definition gsAssembler.h:285
memory::shared_ptr< gsPde< T > > m_pde_ptr
Definition gsAssembler.h:276
std::vector< gsMatrix< T > > m_ddof
Definition gsAssembler.h:295
const gsMultiPatch< T > & patches() const
Return the multipatch.
Definition gsAssembler.h:601
Extends the gsAssembler class by adding functionality necessary for a general nonlinear solver....
Definition gsBaseAssembler.h:27
virtual void assemble()
Main assemble routine, to be implemented in derived classes.
Definition gsBaseAssembler.h:40
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
Assembles the mass matrix and right-hand side vector for linear and nonlinear elasticity for 2D plain...
Definition gsMassAssembler.h:31
short_t m_dim
Definition gsMassAssembler.h:61
virtual void assemble()
Main assemble routine, to be implemented in derived classes.
Definition gsMassAssembler.h:50
virtual void refresh()
Refresh routine to set dof-mappers.
Definition gsMassAssembler.hpp:58
virtual bool assemble(const gsMatrix< T > &, const std::vector< gsMatrix< T > > &)
Definition gsMassAssembler.h:53
static gsOptionList defaultOptions()
Returns the list of default options for assembly.
Definition gsMassAssembler.hpp:50
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
Holds a set of patch-wise bases and their topology information.
Definition gsMultiBasis.h:37
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition gsMultiPatch.h:100
Class which holds a list of parameters/options, and provides easy access to them.
Definition gsOptionList.h:33
Base class for assemblers of gsElasticity.
#define short_t
Definition gsConfig.h:35
The G+Smo namespace, containing all definitions for the library.