33 typedef typename Base::Residual_t Residual_t;
34 typedef typename Base::ALResidual_t ALResidual_t;
47 const Residual_t &Residual
52 m_residualFun(Residual),
53 m_ALresidualFun(nullptr)
68 const ALResidual_t & ALResidual
73 m_ALresidualFun(ALResidual)
78 return m_ALresidualFun(x,m_L,result);
101 void reset()
override;
149 Residual_t m_residualFun;
150 const ALResidual_t m_ALresidualFun;
154 using Base::m_DeltaU;
155 using Base::m_deltaU;
158 using Base::m_DeltaL;
159 using Base::m_deltaL;
162 using Base::m_numIterations;
163 using Base::m_maxIterations;
175 using Base::m_residual;
176 using Base::m_residualIni;
177 using Base::m_residualOld;
180 using Base::m_options;
181 using Base::m_verbose;
187 using Base::m_headstart;
190 using Base::m_status;
197 T m_dt, m_alpha, m_c;
200 T m_Ek, m_Ek_prev, m_Ek0;
201 mutable std::vector<T> m_Eks;
207 #ifndef GISMO_BUILD_LIB
208 #include GISMO_HPP_HEADER(gsStaticDR.hpp)
Base class for static solvers.
void getOptions() override
See gsStaticBase.
Definition: gsStaticDR.hpp:31
T residualNorm() const
Return the residual norm.
Definition: gsStaticDR.h:144
void initialize() override
See gsStaticBase.
Definition: gsStaticDR.hpp:149
gsStatus solve() override
gsStaticBase base functions
Definition: gsStaticDR.hpp:73
#define index_t
Definition: gsConfig.h:32
gsStatus
Definition: gsStructuralAnalysisTypes.h:20
void _reset()
Start over again.
Definition: gsStaticDR.h:138
void _start()
Starts the method.
Definition: gsStaticDR.hpp:217
Creates a mapped object or data pointer to a vector without copying data.
Definition: gsLinearAlgebra.h:129
void reset() override
See gsStaticBase.
Definition: gsStaticDR.hpp:158
T kineticEnergy() const
Returns the kinetic energy.
Definition: gsStaticDR.h:108
Static solver using the Dynamic Relaxation method.
Definition: gsStaticDR.h:27
void _solve()
See solve()
Definition: gsStaticDR.hpp:99
void _iteration()
Performs an iteration.
Definition: gsStaticDR.hpp:187
void _peak()
Identifies a peak.
Definition: gsStaticDR.hpp:205
void _init()
Initializes the method.
Definition: gsStaticDR.hpp:170
gsStaticDR(const gsVector< T > &M, const gsVector< T > &F, const Residual_t &Residual)
Constructor.
Definition: gsStaticDR.h:45
gsStaticDR(const gsVector< T > &M, const gsVector< T > &F, const ALResidual_t &ALResidual)
Constructs a new instance.
Definition: gsStaticDR.h:66
void initOutput() override
See gsStaticBase.
Definition: gsStaticDR.hpp:41
gsVector< T > energies() const
Returns the kinetic energy in all steps.
Definition: gsStaticDR.h:110
gsVector< T > relEnergies() const
Returns the kinetic energy relative to the first iteration.
Definition: gsStaticDR.h:112
gsVector< T > velocities() const
Returns the velocity.
Definition: gsStaticDR.h:114
void stepOutput(index_t k) override
See gsStaticBase.
Definition: gsStaticDR.hpp:57
void defaultOptions() override
See gsStaticBase.
Definition: gsStaticDR.hpp:21
Base class for static solvers.
Definition: gsStaticBase.h:37