G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsStaticOpt< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsStaticOpt< T >

Static solver using the Dynamic Relaxation method.

Template Parameters
Tcoefficient type
+ Inheritance diagram for gsStaticOpt< T >:
+ Collaboration diagram for gsStaticOpt< T >:

Public Member Functions

virtual bool converged () const
 Returns whether the solver converged or not.
 
void defaultOptions () override
 See gsStaticBase.
 
void getOptions () override
 See gsStaticBase.
 
 gsStaticOpt (const Residual_t &Residual)
 Constructor. More...
 
 gsStaticOpt (const Residual_t &Residual, const Jacobian_t &Jacobian)
 Constructor. More...
 
 gsStaticOpt (const ALResidual_t &ALResidual)
 Constructs a new instance. More...
 
 gsStaticOpt (const ALResidual_t &ALResidual, const Jacobian_t &Jacobian)
 Constructs a new instance. More...
 
virtual T indicator (const gsSparseMatrix< T > &jacMat, T shift=-1e-2)
 Returns the stability indicator.
 
void initialize () override
 See gsStaticBase.
 
void initOutput () override
 See gsStaticBase.
 
virtual index_t iterations () const
 Returns the number of iterations.
 
virtual index_t numDofs ()
 Returns the number of DoFs of the system.
 
virtual gsOptionList options () const
 Get options.
 
void reset () override
 See gsStaticBase.
 
residualNorm () const
 Return the residual norm.
 
virtual void setDisplacement (const gsVector< T > &displacement)
 Set the displacement.
 
virtual void setLoad (const T L)
 Set the load.
 
virtual void setOptions (gsOptionList &options)
 Set the options from options.
 
virtual void setSolution (const gsVector< T > &displacement, const T L)
 Set the displacement and the load.
 
virtual gsVector< T > solution () const
 Access the solution.
 
gsStatus solve () override
 gsStaticBase base functions More...
 
virtual gsVector< T > stabilityVec (const gsSparseMatrix< T > &jacMat, T shift=-1e-2)
 Returns the stability vector.
 
virtual gsStatus status () const
 Returns the status.
 
void stepOutput (index_t k) override
 See gsStaticBase.
 
virtual gsVector< T > update () const
 Access the update.
 

Protected Member Functions

virtual bool _computeStability (const gsSparseMatrix< T > &jacMat, T shift)
 Computes the stability of the Jacobian, optionally applying a shift (if provided)
 
virtual bool _computeStabilityDet (const gsSparseMatrix< T > &jacMat)
 Computes the stability vector using the determinant of the Jacobian.
 
virtual bool _computeStabilityEig (const gsSparseMatrix< T > &jacMat, T shift)
 Computes the stability vector using the eigenvalues of the Jacobian, optionally applying a shift.
 
void _init ()
 Initializes the method.
 
void _solve ()
 See solve()
 

Constructor & Destructor Documentation

gsStaticOpt ( const Residual_t &  Residual)
inline

Constructor.

Parameters
[in]ResidualThe residual
gsStaticOpt ( const Residual_t &  Residual,
const Jacobian_t &  Jacobian 
)
inline

Constructor.

Parameters
[in]ResidualThe residual
[in]JacobianThe jacobian
gsStaticOpt ( const ALResidual_t &  ALResidual)
inline

Constructs a new instance.

Parameters
[in]ALResidualThe residual as arc-length object
[in]JacobianThe jacobian
gsStaticOpt ( const ALResidual_t &  ALResidual,
const Jacobian_t &  Jacobian 
)
inline

Constructs a new instance.

Parameters
[in]ALResidualThe residual as arc-length object
[in]JacobianThe jacobian

Member Function Documentation

gsStatus solve ( )
overridevirtual

gsStaticBase base functions

See gsStaticBase

Implements gsStaticBase< T >.