|
OOFEM 3.0
|
#include <adaptnlinearstatic.h>
Public Member Functions | |
| AdaptiveNonLinearStatic (int i, EngngModel *master=nullptr) | |
| virtual | ~AdaptiveNonLinearStatic () |
| void | solveYourselfAt (TimeStep *tStep) override |
| void | updateYourself (TimeStep *tStep) override |
| void | initializeFrom (InputRecord &ir) override |
| double | giveUnknownComponent (ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override |
| virtual double | giveTimeStepLoadLevel (int istep) |
| int | initializeAdaptive (int tStepNumber) override |
| virtual int | initializeAdaptiveFrom (EngngModel *sourceProblem) |
| virtual int | adaptiveRemap (Domain *dNew) |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| double | giveInitialTime () override |
| return time at the begining of analysis | |
| void | updateDomainLinks () override |
| const char * | giveClassName () const override |
| Returns class name of the receiver. | |
| const char * | giveInputRecordName () const override |
| LoadBalancer * | giveLoadBalancer () override |
| LoadBalancerMonitor * | giveLoadBalancerMonitor () override |
| Public Member Functions inherited from oofem::NonLinearStatic | |
| NonLinearStatic (int i, EngngModel *master=nullptr) | |
| virtual | ~NonLinearStatic () |
| Function * | giveDtFunction () |
| double | giveDeltaT (int n) |
| void | solveYourself () override |
| void | solveYourselfAt (TimeStep *tStep) override |
| void | terminate (TimeStep *tStep) override |
| void | printOutputAt (FILE *file, TimeStep *tStep) override |
| void | updateComponent (TimeStep *tStep, NumericalCmpn, Domain *d) override |
| void | updateSolution (FloatArray &solutionVector, TimeStep *tStep, Domain *d) override |
| void | updateMatrix (SparseMtrx &mat, TimeStep *tStep, Domain *d) override |
| void | updateAttributes (MetaStep *mStep) override |
| double | giveUnknownComponent (ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override |
| void | initializeFrom (InputRecord &ir) override |
| TimeStep * | giveSolutionStepWhenIcApply (bool force=false) override |
| NumericalMethod * | giveNumericalMethod (MetaStep *mStep) override |
| Returns reference to receiver's numerical method. | |
| TimeStep * | giveNextStep () override |
| Returns next time step (next to current step) of receiver. | |
| double | giveLoadLevel () override |
| Returns the current load level. | |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| void | updateDomainLinks () override |
| const char * | giveClassName () const override |
| Returns class name of the receiver. | |
| fMode | giveFormulation () override |
| int | useNonlocalStiffnessOption () override |
| Returns nonzero if nonlocal stiffness option activated. | |
| int | giveUnknownDictHashIndx (ValueModeType mode, TimeStep *tStep) override |
| For load balancing purposes we store all values so hash is computed from mode value only. | |
| int | giveCurrentNumberOfIterations () override |
| void | showSparseMtrxStructure (int type, oofegGraphicContext &gc, TimeStep *tStep) override |
| int | estimateMaxPackSize (IntArray &commMap, DataStream &buff, int packUnpackType) override |
| LoadBalancer * | giveLoadBalancer () override |
| LoadBalancerMonitor * | giveLoadBalancerMonitor () override |
| Public Member Functions inherited from oofem::LinearStatic | |
| LinearStatic (int i, EngngModel *master=nullptr) | |
| virtual | ~LinearStatic () |
| virtual UnknownNumberingScheme & | giveEquationNumbering () |
| Public Member Functions inherited from oofem::StructuralEngngModel | |
| StructuralEngngModel (int i, EngngModel *master=nullptr) | |
| Creates new StructuralEngngModel with number i, associated to domain d. | |
| virtual | ~StructuralEngngModel () |
| Destructor. | |
| void | updateYourself (TimeStep *tStep) override |
| int | checkConsistency () override |
| void | computeReaction (FloatArray &answer, TimeStep *tStep, int di) |
| void | terminate (TimeStep *tStep) override |
| void | buildReactionTable (IntArray &restrDofMans, IntArray &restrDofs, IntArray &eqn, TimeStep *tStep, int di) |
| void | updateInternalRHS (FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override |
| void | showSparseMtrxStructure (int type, oofegGraphicContext &gc, TimeStep *tStep) override |
| EngngModel (int i, EngngModel *_master=NULL) | |
| virtual | ~EngngModel () |
| Destructor. | |
| EngngModel (const EngngModel &)=delete | |
| EngngModel & | operator= (const EngngModel &)=delete |
| Domain * | giveDomain (int n) |
| void | setDomain (int i, Domain *ptr, bool iDeallocateOld=true) |
| int | giveNumberOfDomains () |
| Returns number of domains in problem. | |
| const std::string & | giveDescription () const |
| const time_t & | giveStartTime () |
| bool | giveSuppressOutput () const |
| virtual ErrorEstimator * | giveDomainErrorEstimator (int n) |
| virtual MaterialInterface * | giveMaterialInterface (int n) |
| void | setNumberOfEquations (int id, int neq) |
| FILE * | giveOutputStream () |
| Returns file descriptor of output file. | |
| std::string | giveOutputBaseFileName () |
| std::string | giveReferenceFileName () |
| void | letOutputBaseFileNameBe (const std ::string &src) |
| ContextOutputMode | giveContextOutputMode () const |
| int | giveContextOutputStep () const |
| void | setContextOutputMode (ContextOutputMode contextMode) |
| void | setUDContextOutputMode (int cStep) |
| double | giveDeltaT () |
| Returns time step size from the time step controlelr. | |
| void | setDeltaT (double dT) |
| Returns time step size through the time step controlelr. | |
| void | setProblemMode (problemMode pmode) |
| void | setParallelMode (bool newParallelFlag) |
| problemMode | giveProblemMode () const |
| Returns domain mode. | |
| void | setProblemScale (problemScale pscale) |
| problemScale | giveProblemScale () const |
| Returns scale in multiscale simulation. | |
| virtual void | setRenumberFlag () |
| Sets the renumber flag to true. | |
| virtual void | resetRenumberFlag () |
| Sets the renumber flag to false. | |
| double | giveSolutionStepTime () |
| void | giveAnalysisTime (int &rhrs, int &rmin, int &rsec, int &uhrs, int &umin, int &usec) |
| void | terminateAnalysis () |
| virtual void | restartYourself (TimeStep *tS) |
| virtual void | doStepOutput (TimeStep *tStep) |
| void | saveStepContext (TimeStep *tStep, ContextMode mode) |
| virtual void | initializeYourself (TimeStep *tStep) |
| virtual int | giveNumberOfDomainEquations (int di, const UnknownNumberingScheme &num) |
| virtual FieldPtr | giveField (FieldType key, TimeStep *) |
| virtual FieldPtr | giveField (InternalStateType key, TimeStep *) |
| EngngModel * | giveMasterEngngModel () |
| Returns the master engnmodel. | |
| virtual double | giveEigenValue (int eigNum) |
| Only relevant for eigen value analysis. Otherwise returns zero. | |
| virtual void | setActiveVector (int i) |
| Only relevant for eigen value analysis. Otherwise does noting. | |
| int | updateSharedDofManagers (FloatArray &answer, const UnknownNumberingScheme &s, int ExchangeTag) |
| int | exchangeRemoteElementData (int ExchangeTag) |
| MPI_Comm | giveParallelComm () |
| Returns the communication object of reciever. | |
| int | packRemoteElementData (ProcessCommunicator &processComm) |
| int | unpackRemoteElementData (ProcessCommunicator &processComm) |
| int | packDofManagers (ArrayWithNumbering *src, ProcessCommunicator &processComm) |
| int | unpackDofManagers (ArrayWithNumbering *dest, ProcessCommunicator &processComm) |
| ProblemCommunicator * | giveProblemCommunicator (EngngModelCommType t) |
| void | initializeCommMaps (bool forceInit=false) |
| virtual int | instanciateYourself (DataReader &dr, InputRecord &ir, const char *outFileName, const char *desc) |
| void | Instanciate_init () |
| int | instanciateDomains (DataReader &dr) |
| Instanciate problem domains by calling their instanciateYourself() service. | |
| int | instanciateMetaSteps (DataReader &dr) |
| Instanciate problem meta steps by calling their instanciateYourself() service. | |
| virtual int | instanciateDefaultMetaStep (InputRecord &ir) |
| Instanciate default metastep, if nmsteps is zero. | |
| void | initMetaStepAttributes (MetaStep *mStep) |
| MetaStep * | giveCurrentMetaStep () |
| Returns current meta step. | |
| virtual TimeStep * | giveCurrentStep (bool force=false) |
| virtual void | adaptTimeStep (double nIter) |
| virtual TimeStep * | givePreviousStep (bool force=false) |
| virtual void | preInitializeNextStep () |
| Does a pre-initialization of the next time step (implement if necessarry). | |
| virtual int | giveNumberOfFirstStep (bool force=false) |
| int | giveNumberOfMetaSteps () |
| Return number of meta steps. | |
| MetaStep * | giveMetaStep (int i) |
| Returns the i-th meta step. | |
| int | giveNumberOfSteps (bool force=false) |
| virtual double | giveEndOfTimeOfInterest () |
| Returns end of time interest (time corresponding to end of time integration). | |
| int | giveNumberOfTimeStepWhenIcApply () |
| Returns the time step number, when initial conditions should apply. | |
| ExportModuleManager * | giveExportModuleManager () |
| Returns receiver's export module manager. | |
| EngngModelTimer * | giveTimer () |
| Returns reference to receiver timer (EngngModelTimer). | |
| virtual double | giveFinalTime () |
| virtual int | giveNewEquationNumber (int domain, DofIDItem) |
| virtual int | giveNewPrescribedEquationNumber (int domain, DofIDItem) |
| std::string | giveContextFileName (int tStepNumber, int stepVersion) const |
| std::string | giveDomainFileName (int domainNum, int domainSerNum) const |
| virtual void | initForNewIteration (Domain *d, TimeStep *tStep, int iterationNumber, const FloatArray &solution) |
| virtual void | initStepIncrements () |
| virtual int | forceEquationNumbering (int i) |
| virtual int | forceEquationNumbering () |
| virtual int | requiresUnknownsDictionaryUpdate () |
| virtual bool | requiresEquationRenumbering (TimeStep *tStep) |
| virtual void | updateDofUnknownsDictionary (DofManager *, TimeStep *) |
| virtual bool | newDofHandling () |
| virtual ParallelContext * | giveParallelContext (int n) |
| virtual void | initParallelContexts () |
| virtual void | assemble (SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, Domain *domain) |
| void | assembleVector (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) |
| void | assembleVectorFromDofManagers (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) |
| void | assembleVectorFromElements (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) |
| void | assembleVectorFromBC (FloatArray &answer, TimeStep *tStep, const VectorAssembler &va, ValueModeType mode, const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms=NULL) |
| void | assembleExtrapolatedForces (FloatArray &answer, TimeStep *tStep, CharType type, Domain *domain) |
| void | assemblePrescribedExtrapolatedForces (FloatArray &answer, TimeStep *tStep, CharType type, Domain *domain) |
| virtual int | checkProblemConsistency () |
| virtual void | init () |
| virtual void | postInitialize () |
| virtual void | printOutputAt (FILE *file, TimeStep *tStep, const IntArray &nodeSets, const IntArray &elementSets) |
| void | outputNodes (FILE *file, Domain &domain, TimeStep *tStep, int setNum) |
| void | outputElements (FILE *file, Domain &domain, TimeStep *tStep, int setNum) |
| void | printYourself () |
| Prints state of receiver. Useful for debugging. | |
| virtual void | printDofOutputAt (FILE *stream, Dof *iDof, TimeStep *tStep) |
| bool | isParallel () const |
| Returns true if receiver in parallel mode. | |
| int | giveRank () const |
| Returns domain rank in a group of collaborating processes (0..groupSize-1). | |
| int | giveNumberOfProcesses () const |
| Returns the number of collaborating processes. | |
| EngngModelContext * | giveContext () |
| Context requesting service. | |
| virtual int | giveNumberOfSlaveProblems () |
| Returns number of slave problems. | |
| virtual EngngModel * | giveSlaveProblem (int i) |
| Returns i-th slave problem. | |
| virtual bool | giveEquationScalingFlag () |
| Returns the Equation scaling flag, which is used to indicate that governing equation(s) are scaled, or non-dimensionalized. | |
| virtual double | giveVariableScale (VarScaleType varId) |
| Returns the scale factor for given variable type. | |
| virtual void | balanceLoad (TimeStep *tStep) |
| void | initParallel () |
| Request domain rank and problem size. | |
| EngngModel * | giveEngngModel () |
| Returns reference to itself -> required by communicator.h. | |
| virtual bool | isElementActivated (int elemNum) |
| virtual bool | isElementActivated (Element *e) |
| TimeStepController * | giveTimeStepController () |
| Returns the time step controller. | |
| virtual void | drawYourself (oofegGraphicContext &gc) |
| virtual void | drawElements (oofegGraphicContext &gc) |
| virtual void | drawNodes (oofegGraphicContext &gc) |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Protected Member Functions | |
| void | assembleInitialLoadVector (FloatArray &loadVector, FloatArray &loadVectorOfPrescribed, AdaptiveNonLinearStatic *sourceProblem, int domainIndx, TimeStep *tStep) |
| Protected Member Functions inherited from oofem::NonLinearStatic | |
| void | assemble (SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &, Domain *domain) override |
| void | proceedStep (int di, TimeStep *tStep) |
| virtual void | updateLoadVectors (TimeStep *tStep) |
| void | computeExternalLoadReactionContribution (FloatArray &reactions, TimeStep *tStep, int di) override |
| void | assembleIncrementalReferenceLoadVectors (FloatArray &_incrementalLoadVector, FloatArray &_incrementalLoadVectorOfPrescribed, SparseNonLinearSystemNM ::referenceLoadInputModeType _refMode, Domain *sourceDomain, TimeStep *tStep) |
| void | packMigratingData (TimeStep *tStep) override |
| void | unpackMigratingData (TimeStep *tStep) override |
| double | giveInitialTime () override |
| return time at the begining of analysis | |
| Protected Member Functions inherited from oofem::StructuralEngngModel | |
| void | printReactionForces (TimeStep *tStep, int id, FILE *out) |
| void | updateInternalState (TimeStep *tStep) |
| void | printOutputAt (FILE *file, TimeStep *tStep) override |
Protected Attributes | |
| FloatArray | d2_totalDisplacement |
| FloatArray | d2_incrementOfDisplacement |
| MeshPackageType | meshPackage |
| int | equilibrateMappedConfigurationFlag |
| Flag indication whether to restore equilibrium after adaptive remapping. | |
| bool | preMappingLoadBalancingFlag |
| FloatArray | timeStepLoadLevels |
| Protected Attributes inherited from oofem::NonLinearStatic | |
| double | prevStepLength |
| double | currentStepLength |
| FloatArray | totalDisplacement |
| FloatArray | incrementOfDisplacement |
| FloatArray | internalForces |
| FloatArray | initialLoadVector |
| A load vector already applied, which does not scales. | |
| FloatArray | incrementalLoadVector |
| FloatArray | initialLoadVectorOfPrescribed |
| A load vector which does not scale for prescribed DOFs. | |
| FloatArray | incrementalLoadVectorOfPrescribed |
| Incremental Load Vector for prescribed DOFs. | |
| double | loadLevel |
| double | cumulatedLoadLevel |
| bool | mstepCumulateLoadLevelFlag |
| int | currentIterations |
| NonLinearStatic_stiffnessMode | stiffMode |
| int | loadInitFlag |
| int | nonlocalStiffnessFlag |
| bool | updateElasticStiffnessFlag |
| ConvergedReason | numMetStatus |
| SparseNonLinearSystemNM * | nMethod |
| Numerical method used to solve the problem. | |
| NonLinearStatic_controlType | controlMode |
| Characterizes the type of control used. | |
| double | deltaT |
| Intrinsic time increment. | |
| int | dtFunction |
| Associated time function for time step increment. | |
| SparseNonLinearSystemNM::referenceLoadInputModeType | refLoadInputMode |
| InitialGuess | initialGuessType |
| The initial guess type to use before starting the nonlinear solver. | |
| Protected Attributes inherited from oofem::LinearStatic | |
| std ::unique_ptr< SparseMtrx > | stiffnessMatrix |
| FloatArray | loadVector |
| FloatArray | displacementVector |
| LinSystSolverType | solverType |
| SparseMtrxType | sparseMtrxType |
| std ::unique_ptr< SparseLinearSystemNM > | nMethod |
| Numerical method used to solve the problem. | |
| int | initFlag |
| EModelDefaultEquationNumbering | equationNumbering |
| Protected Attributes inherited from oofem::StructuralEngngModel | |
| StateCounterType | internalVarUpdateStamp |
| FloatArray | internalForcesEBENorm |
| Norm of nodal internal forces evaluated on element by element basis (squared). | |
| Protected Attributes inherited from oofem::EngngModel | |
| int | ndomains |
| Number of receiver domains. | |
| std ::vector< std ::unique_ptr< Domain > > | domainList |
| List of problem domains. | |
| int | numberOfSteps |
| Total number of time steps. | |
| int | numberOfEquations |
| Total number of equation in current time step. | |
| int | numberOfPrescribedEquations |
| Total number or prescribed equations in current time step. | |
| IntArray | domainNeqs |
| Number of equations per domain. | |
| IntArray | domainPrescribedNeqs |
| Number of prescribed equations per domain. | |
| bool | renumberFlag |
| Renumbering flag (renumbers equations after each step, necessary if Dirichlet BCs change). | |
| bool | profileOpt |
| Profile optimized numbering flag (using Sloan's algorithm). | |
| int | equationNumberingCompleted |
| Equation numbering completed flag. | |
| int | nMetaSteps |
| Number of meta steps. | |
| std ::vector< MetaStep > | metaStepList |
| List of problem metasteps. | |
| std ::unique_ptr< TimeStep > | stepWhenIcApply |
| Solution step when IC (initial conditions) apply. | |
| std ::unique_ptr< TimeStep > | currentStep |
| Current time step. | |
| std ::unique_ptr< TimeStep > | previousStep |
| Previous time step. | |
| int | number |
| Receivers id. | |
| std::string | dataOutputFileName |
| Path to output stream. | |
| std::string | coreOutputFileName |
| String with core output file name. | |
| FILE * | outputStream |
| Output stream. | |
| std::string | referenceFileName |
| String with reference file name. | |
| ContextOutputMode | contextOutputMode |
| Domain context output mode. | |
| int | contextOutputStep |
| ExportModuleManager | exportModuleManager |
| Export module manager. | |
| InitModuleManager | initModuleManager |
| Initialization module manager. | |
| MonitorManager | monitorManager |
| Monitor manager. | |
| problemMode | pMode |
| Domain mode. | |
| problemScale | pScale |
| Multiscale mode. | |
| time_t | startTime |
| Solution start time. | |
| EngngModel * | master |
| Master e-model; if defined receiver is in maintained (slave) mode. | |
| EngngModelContext * | context |
| Context. | |
| EngngModelTimer | timer |
| E-model timer. | |
| int | parallelFlag |
| Flag indicating that the receiver runs in parallel. | |
| enum fMode | nonLinFormulation |
| Type of non linear formulation (total or updated formulation). | |
| std::unique_ptr< ErrorEstimator > | defaultErrEstimator |
| Error estimator. Useful for adaptivity, or simply printing errors output. | |
| std::unique_ptr< TimeStepController > | timeStepController |
| Time Step controller is responsible for collecting data from analysis, elements, and materials, and select the appropriate timestep size for the next step, or reduce the step in case of convergence problems. | |
| int | rank |
| Domain rank in a group of collaborating processes (0..groupSize-1). | |
| int | numProcs |
| Total number of collaborating processes. | |
| int | nonlocalExt |
| Flag indicating if nonlocal extension active, which will cause data to be sent between shared elements before computing the internal forces. | |
| char | processor_name [PROCESSOR_NAME_LENGTH] |
| Processor name. | |
| MPI_Comm | comm |
| Communication object for this engineering model. | |
| std::unique_ptr< LoadBalancer > | lb |
| Load Balancer. | |
| std::unique_ptr< LoadBalancerMonitor > | lbm |
| bool | loadBalancingFlag |
| If set to true, load balancing is active. | |
| bool | force_load_rebalance_in_first_step |
| Debug flag forcing load balancing after first step. | |
| CommunicatorBuff * | commBuff |
| Common Communicator buffer. | |
| ProblemCommunicator * | communicator |
| Communicator. | |
| ProblemCommunicator * | nonlocCommunicator |
| NonLocal Communicator. Necessary when nonlocal constitutive models are used. | |
| std ::vector< ParallelContext > | parallelContextList |
| List where parallel contexts are stored. | |
| bool | suppressOutput |
| Flag for suppressing output to file. | |
| std::string | simulationDescription |
Additional Inherited Members | |
| Public Types inherited from oofem::EngngModel | |
| enum | EngngModel_UpdateMode { EngngModel_Unknown_Mode , EngngModel_SUMM_Mode , EngngModel_SET_Mode } |
| enum | EngngModelCommType { PC_default , PC_nonlocal } |
| enum | InitialGuess { IG_None = 0 , IG_Tangent = 1 } |
| Protected Types inherited from oofem::EngngModel | |
| enum | { InternalForcesExchangeTag , MassExchangeTag , LoadExchangeTag , ReactionExchangeTag , RemoteElementExchangeTag } |
| Message tags. More... | |
This class implements Adaptive Non-LinearStatic Engineering problem.
Solution of this problem is performed as a series of increments (loading or displacement). At start of Each increment we assemble new tangent stiffness, and iteratively trying to fulfill balance of external and real internal forces at end of load step (see numerical method ).
The error is estimated at the end of each load increment, and based on reached error, the computation continues, or remeshing happens. The solution is then mapped to new mesh. The solution may be taken from current state or if error is too high then is taken from previous equilibrium state.
Tasks:
Definition at line 74 of file adaptnlinearstatic.h.
| oofem::AdaptiveNonLinearStatic::AdaptiveNonLinearStatic | ( | int | i, |
| EngngModel * | master = nullptr ) |
Definition at line 72 of file adaptnlinearstatic.C.
References d2_incrementOfDisplacement, d2_totalDisplacement, equilibrateMappedConfigurationFlag, meshPackage, oofem::NonLinearStatic::NonLinearStatic(), preMappingLoadBalancingFlag, and timeStepLoadLevels.
Referenced by assembleInitialLoadVector(), and initializeAdaptiveFrom().
|
virtual |
Definition at line 84 of file adaptnlinearstatic.C.
|
virtual |
Remaps the solution state to newly given domain. This includes mapping of source solution, internal variable mapping procedures and optionally restoring new global equilibrium. Given domain becomes new domain of receiver.
Definition at line 440 of file adaptnlinearstatic.C.
References oofem::assemble(), oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), assembleInitialLoadVector(), oofem::classFactory, oofem::NonLinearStatic::currentIterations, d2_incrementOfDisplacement, d2_totalDisplacement, oofem::EngngModel::domainList, oofem::EngngModel::domainNeqs, oofem::EngngModel::domainPrescribedNeqs, oofem::Element_remote, oofem::EngngModel::equationNumberingCompleted, equilibrateMappedConfigurationFlag, oofem::EngngModel::exchangeRemoteElementData(), oofem::EngngModel::forceEquationNumbering(), oofem::EngngModel::giveCurrentMetaStep(), oofem::EngngModel::giveCurrentStep(), oofem::EngngModel::giveDomain(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::EngngModel::giveOutputStream(), oofem::NonLinearStatic::incrementalLoadVector, oofem::NonLinearStatic::incrementalLoadVectorOfPrescribed, oofem::NonLinearStatic::incrementOfDisplacement, oofem::TimeStep::incrementVersion(), oofem::LinearStatic::initFlag, oofem::EngngModel::initializeCommMaps(), oofem::NonLinearStatic::initialLoadVector, oofem::NonLinearStatic::initialLoadVectorOfPrescribed, oofem::EngngModel::initStepIncrements(), oofem::NonLinearStatic::internalForces, oofem::StructuralEngngModel::internalForcesEBENorm, oofem::EngngModel::isParallel(), oofem::NonLinearStatic::loadLevel, oofem::LinearStatic::loadVector, oofem::EIPrimaryUnknownMapper::mapAndUpdate(), oofem::EngngModel::ndomains, oofem::nls_secantStiffness, oofem::NonLinearStatic::nMethod, oofem::NonLinearStatic::nonlocalStiffnessFlag, oofem::EngngModel::numberOfEquations, oofem::EngngModel::numberOfPrescribedEquations, oofem::NonLinearStatic::numMetStatus, OOFEM_ERROR, OOFEM_LOG_DEBUG, OOFEM_LOG_INFO, OOFEM_LOG_RELEVANT, oofem::EngngModel::parallelContextList, oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearStatic::refLoadInputMode, oofem::EngngModel::RemoteElementExchangeTag, oofem::LinearStatic::sparseMtrxType, oofem::NonLinearStatic::stiffMode, oofem::LinearStatic::stiffnessMatrix, oofem::NonLinearStatic::terminate(), oofem::EngngModel::timer, oofem::NonLinearStatic::totalDisplacement, oofem::NonLinearStatic::updateAttributes(), updateDomainLinks(), and updateYourself().
Referenced by initializeAdaptive(), and solveYourselfAt().
|
protected |
Definition at line 758 of file adaptnlinearstatic.C.
References _IFT_AdaptiveNonLinearStatic_controlmode, _IFT_AdaptiveNonLinearStatic_ddm, _IFT_AdaptiveNonLinearStatic_refloadmode, _IFT_NonLinearStatic_donotfixload, AdaptiveNonLinearStatic(), oofem::FloatArray::add(), oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), oofem::NonLinearStatic::deltaT, oofem::EngngModel::giveDomain(), oofem::EngngModel::giveMetaStep(), oofem::TimeStep::giveMetaStepNumber(), oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfDomainEquations(), giveTimeStepLoadLevel(), IR_GIVE_OPTIONAL_FIELD, oofem::LinearStatic::loadVector, oofem::nls_directControl, oofem::nls_indirectControl, OOFEM_ERROR, oofem::FloatArray::resize(), oofem::FloatArray::times(), and oofem::FloatArray::zero().
Referenced by adaptiveRemap(), and initializeAdaptiveFrom().
|
inlineoverridevirtual |
Returns class name of the receiver.
Implements oofem::EngngModel.
Definition at line 136 of file adaptnlinearstatic.h.
|
inlineoverridevirtual |
return time at the begining of analysis
Reimplemented from oofem::EngngModel.
Definition at line 133 of file adaptnlinearstatic.h.
|
inlineoverridevirtual |
Reimplemented from oofem::LinearStatic.
Definition at line 137 of file adaptnlinearstatic.h.
References _IFT_AdaptiveNonLinearStatic_Name.
|
overridevirtual |
Returns reference to receiver's load balancer.
Reimplemented from oofem::EngngModel.
Definition at line 945 of file adaptnlinearstatic.C.
References oofem::classFactory, oofem::EngngModel::giveDomain(), oofem::EngngModel::lb, oofem::EngngModel::loadBalancingFlag, and preMappingLoadBalancingFlag.
|
overridevirtual |
Returns reference to receiver's load balancer monitor.
Reimplemented from oofem::EngngModel.
Definition at line 959 of file adaptnlinearstatic.C.
References oofem::classFactory, oofem::EngngModel::lbm, oofem::EngngModel::loadBalancingFlag, and preMappingLoadBalancingFlag.
|
virtual |
Returns the load level corresponding to given solution step number.
Definition at line 931 of file adaptnlinearstatic.C.
References oofem::EngngModel::giveNumberOfFirstStep(), oofem::EngngModel::giveNumberOfSteps(), OOFEM_ERROR, and timeStepLoadLevels.
Referenced by assembleInitialLoadVector().
|
overridevirtual |
Returns requested unknown. Unknown at give time step is characterized by its type and mode and by its equation number. This function is used by Dofs, when they are requested for their associated unknowns.
Reimplemented from oofem::EngngModel.
Definition at line 192 of file adaptnlinearstatic.C.
References oofem::Dof::__giveEquationNumber(), d2_incrementOfDisplacement, d2_totalDisplacement, oofem::EngngModel::giveCurrentStep(), oofem::Domain::giveNumber(), and OOFEM_ERROR.
|
overridevirtual |
Initializes the newly generated discretization state according to previous solution. This process should typically include restoring old solution, instanciating newly generated domain(s) and by mapping procedure.
Reimplemented from oofem::EngngModel.
Definition at line 414 of file adaptnlinearstatic.C.
References adaptiveRemap(), CM_State, oofem::EngngModel::giveContextFileName(), oofem::EngngModel::giveDomain(), oofem::EngngModel::giveDomainFileName(), oofem::EngngModel::initStepIncrements(), oofem::Domain::instanciateYourself(), OOFEM_ERROR, OOFEM_LOG_INFO, oofem::ContextIOERR::print(), and restoreContext().
|
virtual |
Initializes the receiver state according to state of given source problem. This process should typically include mapping of source solution, internal variable mapping procedures and optionally restoring new global equilibrium.
Definition at line 233 of file adaptnlinearstatic.C.
References AdaptiveNonLinearStatic(), oofem::assemble(), oofem::NonLinearStatic::assembleIncrementalReferenceLoadVectors(), assembleInitialLoadVector(), oofem::classFactory, oofem::NonLinearStatic::currentIterations, oofem::EngngModel::currentStep, equilibrateMappedConfigurationFlag, oofem::EngngModel::giveCurrentMetaStep(), oofem::EngngModel::giveCurrentStep(), oofem::EngngModel::giveDomain(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::EngngModel::giveOutputStream(), oofem::EngngModel::givePreviousStep(), oofem::NonLinearStatic::incrementalLoadVector, oofem::NonLinearStatic::incrementalLoadVectorOfPrescribed, oofem::NonLinearStatic::incrementOfDisplacement, oofem::LinearStatic::initFlag, oofem::NonLinearStatic::initialLoadVector, oofem::NonLinearStatic::initialLoadVectorOfPrescribed, oofem::NonLinearStatic::internalForces, oofem::StructuralEngngModel::internalForcesEBENorm, oofem::NonLinearStatic::loadLevel, oofem::LinearStatic::loadVector, oofem::EIPrimaryUnknownMapper::mapAndUpdate(), oofem::nls_secantStiffness, oofem::NonLinearStatic::nMethod, oofem::NonLinearStatic::nonlocalStiffnessFlag, oofem::NonLinearStatic::numMetStatus, OOFEM_ERROR, OOFEM_LOG_INFO, OOFEM_LOG_RELEVANT, oofem::EngngModel::previousStep, oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearStatic::refLoadInputMode, oofem::LinearStatic::sparseMtrxType, oofem::NonLinearStatic::stiffMode, oofem::LinearStatic::stiffnessMatrix, oofem::NonLinearStatic::terminate(), oofem::EngngModel::timer, oofem::NonLinearStatic::totalDisplacement, oofem::NonLinearStatic::updateAttributes(), oofem::NonLinearStatic::updateLoadVectors(), and updateYourself().
Referenced by oofem::HuertaErrorEstimator::solveRefinedElementProblem(), and oofem::HuertaErrorEstimator::solveRefinedPatchProblem().
|
overridevirtual |
Initializes receiver according to object description in input reader. InitString can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.
Reimplemented from oofem::EngngModel.
Definition at line 89 of file adaptnlinearstatic.C.
References _IFT_AdaptiveNonLinearStatic_equilmc, _IFT_AdaptiveNonLinearStatic_meshpackage, _IFT_AdaptiveNonLinearStatic_preMappingLoadBalancingFlag, oofem::EngngModel::defaultErrEstimator, equilibrateMappedConfigurationFlag, IR_GIVE_OPTIONAL_FIELD, meshPackage, OOFEM_ERROR, and preMappingLoadBalancingFlag.
|
overridevirtual |
Restores the state of model from output stream. Restores not only the receiver state, but also same function is invoked for all DofManagers and Elements in associated domain. Note that by restoring element context also contexts of all associated integration points (and material statuses) are restored. Each context is associated with unique time step. Only one context per time step is allowed. Restore context function will restore such context, which is related (through its step number) to time step number and version given in obj parameter. Restoring context will change current time step in order to correspond to newly restored context.
| stream | Context file. |
| mode | Determines amount of info in stream. |
| ContextIOERR | exception if error encountered. |
Reimplemented from oofem::EngngModel.
Definition at line 738 of file adaptnlinearstatic.C.
References oofem::CIO_OK, THROW_CIOERR, and timeStepLoadLevels.
Referenced by initializeAdaptive().
|
overridevirtual |
Stores the state of model to output stream. Stores not only the receiver state, but also same function is invoked for all DofManagers and Elements in associated domain. Note that by storing element context also contexts of all associated integration points (and material statuses) are stored.
| stream | Context stream. |
| mode | Determines amount of info in stream. |
| ContextIOERR | If error encountered. |
Reimplemented from oofem::EngngModel.
Definition at line 727 of file adaptnlinearstatic.C.
References oofem::CIO_OK, THROW_CIOERR, and timeStepLoadLevels.
|
overridevirtual |
Solves problem for given time step. Should assemble characteristic matrices and vectors if necessary and solve problem using appropriate numerical method. After finishing solution, this->updateYourself function for updating solution state and then this->terminate function (for updating nodal and element values) should be called.
Reimplemented from oofem::EngngModel.
Definition at line 113 of file adaptnlinearstatic.C.
References adaptiveRemap(), oofem::EngngModel::balanceLoad(), oofem::classFactory, oofem::COM_Always, oofem::EngngModel::defaultErrEstimator, oofem::equilibratedEM, oofem::EngngModel::giveCurrentStep(), oofem::EngngModel::giveDomain(), oofem::LinearStatic::initFlag, meshPackage, oofem::NoRemeshing_RS, OOFEM_ERROR, preMappingLoadBalancingFlag, oofem::NonLinearStatic::proceedStep(), oofem::RemeshingFromCurrentState_RS, oofem::RemeshingFromPreviousState_RS, oofem::EngngModel::setContextOutputMode(), oofem::NonLinearStatic::terminate(), oofem::EngngModel::terminateAnalysis(), and updateYourself().
|
overridevirtual |
Updates domain links after the domains of receiver have changed. Used mainly after restoring context - the domains may change and this service is then used to update domain variables in all components belonging to receiver like error estimators, solvers, etc, having domains as attributes.
Reimplemented from oofem::EngngModel.
Definition at line 750 of file adaptnlinearstatic.C.
References oofem::EngngModel::defaultErrEstimator, and oofem::EngngModel::giveDomain().
Referenced by adaptiveRemap().
|
overridevirtual |
Updates internal state after finishing time step. (for example total values may be updated according to previously solved increments). Then element values are also updated (together with related integration points and material statuses).
Reimplemented from oofem::EngngModel.
Definition at line 174 of file adaptnlinearstatic.C.
References oofem::TimeStep::giveNumber(), oofem::EngngModel::giveNumberOfSteps(), oofem::NonLinearStatic::loadLevel, and timeStepLoadLevels.
Referenced by adaptiveRemap(), initializeAdaptiveFrom(), and solveYourselfAt().
|
protected |
Definition at line 77 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), adaptiveRemap(), and giveUnknownComponent().
|
protected |
Definition at line 77 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), adaptiveRemap(), and giveUnknownComponent().
|
protected |
Flag indication whether to restore equilibrium after adaptive remapping.
Definition at line 80 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), adaptiveRemap(), initializeAdaptiveFrom(), and initializeFrom().
|
protected |
Definition at line 78 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), initializeFrom(), and solveYourselfAt().
|
protected |
Flag to trigger load balancing before adaptive remapping. The emodel loadBalancingFlag will trigger load balancing after mapping and optional consistency recovery.
Definition at line 86 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), giveLoadBalancer(), giveLoadBalancerMonitor(), initializeFrom(), and solveYourselfAt().
|
protected |
Array storing the load levels reached in corresponding time steps. It is necessary to keep track of this load level history, because after adaptive restart one has to assemble the initial and total load vectors on new mesh -> and for this it is necessary to know the history of loading. The size of this array is equal to numberOfSolutionSteps and should be stored/restored in every context file.
Definition at line 96 of file adaptnlinearstatic.h.
Referenced by AdaptiveNonLinearStatic(), giveTimeStepLoadLevel(), restoreContext(), saveContext(), and updateYourself().