24 class gsElasticityAssembler;
47 "Wrong size of the displacement vector: " +
util::to_string(displacementVector.rows()) +
56 "Wrong size of the velocity vector: " +
util::to_string(velocityVector.rows()) +
67 const std::vector<gsMatrix<T> > & fixedDoFs);
105 gsMatrix<T> implicitNonlinear();
140 std::vector<gsMatrix<T> > ddofsSaved;
148 #ifndef GISMO_BUILD_LIB
149 #include GISMO_HPP_HEADER(gsElTimeIntegrator.hpp)
bool initialized
initialization flag
Definition: gsElTimeIntegrator.h:121
gsElasticityAssembler< T > & stiffAssembler
assembler object that generates the static system
Definition: gsElTimeIntegrator.h:117
index_t numberIterations() const
number of iterations Newton's method required at the last time step
Definition: gsElTimeIntegrator.h:88
gsOptionList m_options
Options.
Definition: gsAssembler.h:285
std::string to_string(const C &value)
Converts value to string, assuming "operator<<" defined on C.
Definition: gsUtils.h:56
void recoverState()
recover solver state from saved state
Definition: gsElTimeIntegrator.hpp:182
static gsOptionList defaultOptions()
Returns the list of default options for assembly.
Definition: gsElTimeIntegrator.hpp:44
void makeTimeStep(T timeStep)
make a time step according to a chosen scheme
Definition: gsElTimeIntegrator.hpp:65
#define index_t
Definition: gsConfig.h:32
#define GISMO_ENSURE(cond, message)
Definition: gsDebug.h:102
T tStep
time step length
Definition: gsElTimeIntegrator.h:123
const gsMatrix< T > & solutionVector() const
returns complete solution vector (displacement + possibly pressure)
Definition: gsElTimeIntegrator.h:73
Provides several simple utility and naming classes.
Assembles the stiffness matrix and the right-hand side vector for linear and nonlinear elasticity for...
Definition: gsElasticityAssembler.h:31
Assembles the mass matrix and right-hand side vector for linear and nonlinear elasticity for 2D plain...
Definition: gsElTimeIntegrator.h:26
gsMassAssembler< T > & massAssembler
assembler object that generates the mass matrix
Definition: gsElTimeIntegrator.h:119
void setDisplacementVector(const gsMatrix< T > &displacementVector)
set intial conditions
Definition: gsElTimeIntegrator.h:44
Base class for assemblers of gsElasticity.
bool hasSavedState
saved state
Definition: gsElTimeIntegrator.h:136
gsElTimeIntegrator(gsElasticityAssembler< T > &stiffAssembler_, gsMassAssembler< T > &massAssembler_)
Definition: gsElTimeIntegrator.hpp:28
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition: gsMultiPatch.h:33
virtual int numDofs() const
return the number of free degrees of freedom
Definition: gsElTimeIntegrator.h:70
Extends the gsAssembler class by adding functionality necessary for a general nonlinear solver...
Definition: gsALE.h:26
gsSparseSystem< T > m_system
Global sparse linear system.
Definition: gsAssembler.h:290
std::vector< gsMatrix< T > > m_ddof
Definition: gsAssembler.h:295
void saveState()
save solver state
Definition: gsElTimeIntegrator.hpp:170
gsMatrix< T > implicitLinear()
time integraton schemes
Definition: gsElTimeIntegrator.hpp:83
index_t numIters
number of iterations Newton's method took to converge at the last time step
Definition: gsElTimeIntegrator.h:134
void constructSolution(gsMultiPatch< T > &displacement) const
construct displacement using the stiffness assembler
Definition: gsElTimeIntegrator.hpp:156
const gsMatrix< T > & velocityVector() const
returns vector of displacement DoFs
Definition: gsElTimeIntegrator.h:79
gsMatrix< T > solVector
vector of displacement DoFs ( + possibly pressure)
Definition: gsElTimeIntegrator.h:125
gsMatrix< T > accVector
vector of acceleration DoFs
Definition: gsElTimeIntegrator.h:129
Time integation for equations of dynamic elasticity with implicit schemes.
Definition: gsElTimeIntegrator.h:31
Class which holds a list of parameters/options, and provides easy access to them. ...
Definition: gsOptionList.h:32
gsMatrix< T > velVector
vector of velocity DoFs
Definition: gsElTimeIntegrator.h:127
T alpha1()
time integration scheme coefficients
Definition: gsElTimeIntegrator.h:108
virtual void assemble()
Main assemble routine, to be implemented in derived classes.
Definition: gsAssembler.hpp:51
gsMatrix< T > newSolVector
temporary objects for memory efficiency
Definition: gsElTimeIntegrator.h:142
gsBaseAssembler< T > & mAssembler()
assemblers' accessors
Definition: gsElTimeIntegrator.h:97
Real getReal(const std::string &label) const
Reads value for option label from options.
Definition: gsOptionList.cpp:44