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

Detailed Description

template<class T>
class gismo::gsStaticComposite< T >

Static solver using a newton method.

Template Parameters
Tcoefficient type
+ Inheritance diagram for gsStaticComposite< T >:
+ Collaboration diagram for gsStaticComposite< 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.
 
 gsStaticComposite (std::vector< gsStaticBase< T > * > solvers)
 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.
 
virtual void initOutput ()
 Initialize output.
 
virtual index_t iterations () const
 Returns the number of iterations.
 
index_t numDofs () override
 See gsStaticBase.
 
virtual gsOptionList options () const
 Get options.
 
void reset () override
 See gsStaticBase.
 
void setDisplacement (const gsVector< T > &displacement) override
 See gsStaticBase.
 
void setLoad (const T L) override
 See gsStaticBase.
 
void setOptions (gsOptionList &options) override
 See gsStaticBase.
 
void setSolution (const gsVector< T > &displacement, const T L) override
 See gsStaticBase.
 
void setUpdate (const gsVector< T > &update) override
 See gsStaticBase.
 
virtual gsVector< T > solution () const
 Access the solution.
 
gsStatus solve () override
 See gsStaticBase.
 
virtual gsVector< T > stabilityVec (const gsSparseMatrix< T > &jacMat, T shift=-1e-2)
 Returns the stability vector.
 
virtual gsStatus status () const
 Returns the status.
 
virtual void stepOutput (index_t k)
 Stepwise output.
 
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.
 

Constructor & Destructor Documentation

gsStaticComposite ( std::vector< gsStaticBase< T > * >  solvers)
inline

Constructs a new instance.

Parameters
[in]solversThe solvers