|
OOFEM 3.0
|
#include <dynamicrelaxationsolver.h>
Public Member Functions | |
| DynamicRelaxationSolver (Domain *d, EngngModel *m) | |
| virtual | ~DynamicRelaxationSolver () |
| ConvergedReason | solve (SparseMtrx &k, FloatArray &R, FloatArray *R0, FloatArray &X, FloatArray &dX, FloatArray &F, const FloatArray &internalForcesEBENorm, double &l, referenceLoadInputModeType rlm, int &nite, TimeStep *) override |
| void | initializeFrom (InputRecord &ir) override |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| Public Member Functions inherited from oofem::NRSolver | |
| NRSolver (Domain *d, EngngModel *m) | |
| virtual | ~NRSolver () |
| ConvergedReason | solve (SparseMtrx &k, FloatArray &R, FloatArray *R0, FloatArray &X, FloatArray &dX, FloatArray &F, const FloatArray &internalForcesEBENorm, double &l, referenceLoadInputModeType rlm, int &nite, TimeStep *) override |
| void | printState (FILE *outputStream) override |
| void | initializeFrom (InputRecord &ir) override |
| const char * | giveClassName () const override |
| void | setDomain (Domain *d) override |
| void | reinitialize () override |
| SparseLinearSystemNM * | giveLinearSolver () override |
| Public Member Functions inherited from oofem::SparseNonLinearSystemNM | |
| SparseNonLinearSystemNM (Domain *d, EngngModel *m) | |
| Constructor. | |
| virtual | ~SparseNonLinearSystemNM () |
| Destructor. | |
| virtual double | giveCurrentStepLength () |
| virtual void | setStepLength (double s) |
| virtual bool | referenceLoad () const |
| void | initializeFrom (InputRecord &ir) override |
| virtual void | convertPertMap () |
| virtual void | applyPerturbation (FloatArray *displacement) |
| std::string | errorInfo (const char *func) const |
| Error printing helper. | |
| Public Member Functions inherited from oofem::NumericalMethod | |
| NumericalMethod (Domain *d, EngngModel *m) | |
| virtual | ~NumericalMethod () |
| Destructor. | |
| EngngModel * | giveEngngModel () |
| virtual void | saveContext (DataStream &stream, ContextMode mode) |
| virtual void | restoreContext (DataStream &stream, ContextMode mode) |
Additional Inherited Members | |
| Public Types inherited from oofem::SparseNonLinearSystemNM | |
| enum | referenceLoadInputModeType { rlm_total =0 , rlm_incremental =1 } |
| Protected Types inherited from oofem::NRSolver | |
| enum | nrsolver_ModeType { nrsolverModifiedNRM , nrsolverFullNRM , nrsolverAccelNRM } |
| Protected Member Functions inherited from oofem::NRSolver | |
| LineSearchNM * | giveLineSearchSolver () |
| Constructs and returns a line search solver. | |
| void | initPrescribedEqs () |
| Initiates prescribed equations. | |
| void | applyConstraintsToStiffness (SparseMtrx &k) |
| void | applyConstraintsToLoadIncrement (int nite, const SparseMtrx &k, FloatArray &R, referenceLoadInputModeType rlm, TimeStep *tStep) |
| bool | checkConvergence (FloatArray &RT, FloatArray &F, FloatArray &rhs, FloatArray &ddX, FloatArray &X, double RRT, const FloatArray &internalForcesEBENorm, int nite, bool &errorOutOfRange) |
| Protected Attributes inherited from oofem::NRSolver | |
| int | nsmax |
| int | minIterations |
| double | minStepLength |
| nrsolver_ModeType | NR_Mode |
| nrsolver_ModeType | NR_OldMode |
| int | NR_ModeTick |
| int | MANRMSteps |
| std ::unique_ptr< SparseLinearSystemNM > | linSolver |
| linear system solver | |
| LinSystSolverType | solverType |
| linear system solver ID | |
| SparseMtrx::SparseMtrxVersionType | smConstraintVersion |
| sparse matrix version, used to control constrains application to stiffness | |
| int | numberOfPrescribedDofs |
| number of prescribed displacement | |
| bool | prescribedDofsFlag |
| IntArray | prescribedDofs |
| Array of pairs identifying prescribed dofs (node, dof). | |
| FloatArray | prescribedDofsValues |
| Array of prescribed values. | |
| int | prescribedDisplacementTF |
| Load Time Function of prescribed values. | |
| IntArray | prescribedEqs |
| Array of prescribed equations. | |
| bool | prescribedEqsInitFlag |
| Flag indicating that prescribedEqs were initialized. | |
| FloatArray | lastReactions |
| Computed reactions. They are stored in order to print them in printState method. | |
| bool | lsFlag |
| Flag indicating whether to use line-search. | |
| std ::unique_ptr< LineSearchNM > | linesearchSolver |
| Line search solver. | |
| bool | mCalcStiffBeforeRes |
| Flag indicating if the stiffness should be evaluated before the residual in the first iteration. | |
| bool | constrainedNRFlag |
| Flag indicating whether to use constrained Newton. | |
| double | constrainedNRalpha |
| Scale factor for dX, dX_new = alpha * dX. | |
| int | constrainedNRminiter |
| Minimum number of iterations before constraint is activated. | |
| FloatArray | rtolf |
| Relative unbalanced force tolerance for each group. | |
| FloatArray | rtold |
| Relative iterative displacement change tolerance for each group. | |
| FloatArray | forceErrVec |
| FloatArray | forceErrVecOld |
| bool | solutionDependentExternalForcesFlag |
| Solution dependent external forces - updating then each NR iteration. | |
| std ::map< int, double > | dg_forceScale |
| Optional user supplied scale of forces used in convergence check. | |
| double | maxIncAllowed |
| Protected Attributes inherited from oofem::SparseNonLinearSystemNM | |
| double | deltaL =0.0 |
| Load level. | |
| double | randPertAmplitude =0.0 |
| Amplitude of a random perturbation applied on the solution before the iteration process. | |
| int | randSeed =0 |
| bool | pert_init_needed |
| IntArray | igp_PertDmanDofSrcArray |
| FloatArray | igp_PertWeightArray |
| IntArray | igp_Map |
| FloatArray | igp_Weight |
| Protected Attributes inherited from oofem::NumericalMethod | |
| Domain * | domain |
| Pointer to domain. | |
| EngngModel * | engngModel |
| Pointer to engineering model. | |
Solves static equilibrium by means of explicit dynamic iterations.
Definition at line 63 of file dynamicrelaxationsolver.h.
| oofem::DynamicRelaxationSolver::DynamicRelaxationSolver | ( | Domain * | d, |
| EngngModel * | m ) |
|
inlinevirtual |
Definition at line 67 of file dynamicrelaxationsolver.h.
|
inlineoverridevirtual |
Reimplemented from oofem::SparseNonLinearSystemNM.
Definition at line 76 of file dynamicrelaxationsolver.h.
|
inlineoverridevirtual |
Reimplemented from oofem::NRSolver.
Definition at line 77 of file dynamicrelaxationsolver.h.
References _IFT_DynamicRelaxationSolver_Name.
|
overridevirtual |
Reimplemented from oofem::NumericalMethod.
Definition at line 60 of file dynamicrelaxationsolver.C.
|
overridevirtual |
Solves the given sparse linear system of equations \( s R + R_0 - F(X) = 0 \). Total load vector is not passed, it is defined as \( s R + R_0 \), where s is scale factor.
| K | Coefficient matrix ( \(\displaystyle K = \frac{\partial F}{\partial X} \); stiffness matrix). |
| R | Reference incremental RHS (incremental load). |
| R0 | Initial RHS (initial load). |
| X | Total solution (total displacement). |
| dX | Increment of solution (incremental displacements). |
| F | InternalRhs (real internal forces). |
| internalForcesEBENorm | Norm of internal nodal forces (evaluated on element by element basis) (split into each DOF id). |
| s | RHS scale factor (load level). |
| rlm | Reference load mode. |
| nite | Number of iterations needed. |
| tStep | Time step to solve for. |
Implements oofem::SparseNonLinearSystemNM.
Definition at line 67 of file dynamicrelaxationsolver.C.
References oofem::FloatArray::add(), oofem::FloatArray::beDifferenceOf(), oofem::NRSolver::checkConvergence(), oofem::CR_CONVERGED, oofem::CR_DIVERGED_ITS, oofem::CR_DIVERGED_TOL, oofem::CR_UNKNOWN, oofem::NumericalMethod::domain, oofem::NumericalMethod::engngModel, oofem::FloatArray::giveSize(), oofem::TimeStep::incrementStateCounter(), oofem::TimeStep::incrementSubStepNumber(), oofem::InternalRhs, oofem::ParallelContext::localNorm(), oofem::macroScale, oofem::NRSolver::minIterations, oofem::NRSolver::nsmax, OOFEM_LOG_DEBUG, OOFEM_LOG_INFO, OOFEM_WARNING, oofem::FloatArray::resize(), oofem::NRSolver::rtold, oofem::NRSolver::rtolf, and oofem::FloatArray::zero().