OOFEM 3.0
Loading...
Searching...
No Matches
oofem::IncrementalLinearStatic Class Reference

#include <incrementallinearstatic.h>

Inheritance diagram for oofem::IncrementalLinearStatic:
Collaboration diagram for oofem::IncrementalLinearStatic:

Public Member Functions

 IncrementalLinearStatic (int i, EngngModel *master=nullptr)
virtual ~IncrementalLinearStatic ()
void initializeFrom (InputRecord &ir) override
void solveYourself () override
void solveYourselfAt (TimeStep *tStep) override
double giveUnknownComponent (ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
TimeStepgiveNextStep () override
 Returns next time step (next to current step) of receiver.
double giveDiscreteTime (int iStep)
double giveEndOfTimeOfInterest () override
 Returns end of time interest (time corresponding to end of time integration).
NumericalMethodgiveNumericalMethod (MetaStep *mStep) override
 Returns reference to receiver's numerical method.
fMode giveFormulation () override
const char * giveInputRecordName () const
const char * giveClassName () const override
 Returns class name of the receiver.
int requiresUnknownsDictionaryUpdate () override
bool requiresEquationRenumbering (TimeStep *tStep) override
void updateDofUnknownsDictionary (DofManager *dman, TimeStep *tStep) override
int giveUnknownDictHashIndx (ValueModeType mode, TimeStep *tStep) override
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
EngngModeloperator= (const EngngModel &)=delete
DomaingiveDomain (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 ErrorEstimatorgiveDomainErrorEstimator (int n)
virtual MaterialInterfacegiveMaterialInterface (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 initializeAdaptive (int tStepNumber)
virtual int giveNumberOfDomainEquations (int di, const UnknownNumberingScheme &num)
virtual FieldPtr giveField (FieldType key, TimeStep *)
virtual FieldPtr giveField (InternalStateType key, TimeStep *)
EngngModelgiveMasterEngngModel ()
 Returns the master engnmodel.
virtual double giveLoadLevel ()
 Returns the current load level.
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)
virtual int giveCurrentNumberOfIterations ()
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)
ProblemCommunicatorgiveProblemCommunicator (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.
virtual void updateAttributes (MetaStep *mStep)
void initMetaStepAttributes (MetaStep *mStep)
virtual void updateDomainLinks ()
MetaStepgiveCurrentMetaStep ()
 Returns current meta step.
virtual TimeStepgiveCurrentStep (bool force=false)
virtual void adaptTimeStep (double nIter)
virtual TimeStepgivePreviousStep (bool force=false)
virtual void preInitializeNextStep ()
 Does a pre-initialization of the next time step (implement if necessarry).
virtual TimeStepgiveSolutionStepWhenIcApply (bool force=false)
virtual int giveNumberOfFirstStep (bool force=false)
int giveNumberOfMetaSteps ()
 Return number of meta steps.
MetaStepgiveMetaStep (int i)
 Returns the i-th meta step.
int giveNumberOfSteps (bool force=false)
int giveNumberOfTimeStepWhenIcApply ()
 Returns the time step number, when initial conditions should apply.
ExportModuleManagergiveExportModuleManager ()
 Returns receiver's export module manager.
EngngModelTimergiveTimer ()
 Returns reference to receiver timer (EngngModelTimer).
virtual double giveInitialTime ()
 return time at the begining of analysis
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 updateComponent (TimeStep *tStep, NumericalCmpn cmpn, Domain *d)
virtual void initForNewIteration (Domain *d, TimeStep *tStep, int iterationNumber, const FloatArray &solution)
virtual void updateSolution (FloatArray &solutionVector, TimeStep *tStep, Domain *d)
virtual void updateMatrix (SparseMtrx &mat, TimeStep *tStep, Domain *d)
virtual void initStepIncrements ()
virtual int forceEquationNumbering (int i)
virtual int forceEquationNumbering ()
virtual bool newDofHandling ()
virtual ParallelContextgiveParallelContext (int n)
virtual void initParallelContexts ()
virtual void assemble (SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &s, Domain *domain)
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)
virtual int useNonlocalStiffnessOption ()
 Returns nonzero if nonlocal stiffness option activated.
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.
EngngModelContextgiveContext ()
 Context requesting service.
virtual int giveNumberOfSlaveProblems ()
 Returns number of slave problems.
virtual EngngModelgiveSlaveProblem (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 int estimateMaxPackSize (IntArray &commMap, DataStream &buff, int packUnpackType)
virtual void balanceLoad (TimeStep *tStep)
virtual LoadBalancergiveLoadBalancer ()
virtual LoadBalancerMonitorgiveLoadBalancerMonitor ()
void initParallel ()
 Request domain rank and problem size.
EngngModelgiveEngngModel ()
 Returns reference to itself -> required by communicator.h.
virtual bool isElementActivated (int elemNum)
virtual bool isElementActivated (Element *e)
TimeStepControllergiveTimeStepController ()
 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 Attributes

std ::unique_ptr< SparseMtrxstiffnessMatrix
FloatArray loadVector
FloatArray internalLoadVector
FloatArray incrementOfDisplacementVector
FloatArray discreteTimes
bool fixedSteps
double deltaT
double endOfTimeOfInterest
std ::unique_ptr< SparseLinearSystemNMnMethod
 Numerical method used to solve the problem.
LinSystSolverType solverType
SparseMtrxType sparseMtrxType
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< MetaStepmetaStepList
 List of problem metasteps.
std ::unique_ptr< TimeStepstepWhenIcApply
 Solution step when IC (initial conditions) apply.
std ::unique_ptr< TimeStepcurrentStep
 Current time step.
std ::unique_ptr< TimeSteppreviousStep
 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.
EngngModelmaster
 Master e-model; if defined receiver is in maintained (slave) mode.
EngngModelContextcontext
 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< ErrorEstimatordefaultErrEstimator
 Error estimator. Useful for adaptivity, or simply printing errors output.
std::unique_ptr< TimeStepControllertimeStepController
 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< LoadBalancerlb
 Load Balancer.
std::unique_ptr< LoadBalancerMonitorlbm
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.
CommunicatorBuffcommBuff
 Common Communicator buffer.
ProblemCommunicatorcommunicator
 Communicator.
ProblemCommunicatornonlocCommunicator
 NonLocal Communicator. Necessary when nonlocal constitutive models are used.
std ::vector< ParallelContextparallelContextList
 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...
Protected Member Functions inherited from oofem::StructuralEngngModel
void printReactionForces (TimeStep *tStep, int id, FILE *out)
virtual void computeExternalLoadReactionContribution (FloatArray &reactions, TimeStep *tStep, int di)
void updateInternalState (TimeStep *tStep)
void printOutputAt (FILE *file, TimeStep *tStep) override
virtual void packMigratingData (TimeStep *tStep)
virtual void unpackMigratingData (TimeStep *tStep)

Detailed Description

This class implements Incremental LinearStatic Engineering problem. Problem is solved as series of explicit linear solutions. It will solve any nonlinear problem by writing the expressions explicitly \( K({}^{n-1} r)\cdot \delta r = R({}^{n-1}r) - F \). Explicit solver has requirements on the time step size to obtain a stable solution.

This class can be used for solving linear creep problems.

Supports the changes of static scheme (applying, removing and changing boundary conditions) during the analysis.

Definition at line 66 of file incrementallinearstatic.h.

Constructor & Destructor Documentation

◆ IncrementalLinearStatic()

oofem::IncrementalLinearStatic::IncrementalLinearStatic ( int i,
EngngModel * master = nullptr )

◆ ~IncrementalLinearStatic()

oofem::IncrementalLinearStatic::~IncrementalLinearStatic ( )
virtual

Definition at line 72 of file incrementallinearstatic.C.

Member Function Documentation

◆ giveClassName()

const char * oofem::IncrementalLinearStatic::giveClassName ( ) const
inlineoverridevirtual

Returns class name of the receiver.

Implements oofem::EngngModel.

Definition at line 117 of file incrementallinearstatic.h.

◆ giveDiscreteTime()

double oofem::IncrementalLinearStatic::giveDiscreteTime ( int iStep)

This function returns time valid for iStep time step, used in integration of structure response. This functions, when invoked for the first time, generates table of times. Times in this table are generated according to:

  • if there exists some load time function with abrupt change, then time just before and just at abrupt is included in table.
  • between these steps under constant loads (or when load changes continuously) we use progressively increasing time step. They are best chosen so that time step be kept constant in the log (t-t') scale
    Parameters
    iStepTime step number.

Definition at line 135 of file incrementallinearstatic.C.

References deltaT, discreteTimes, fixedSteps, and OOFEM_ERROR.

Referenced by giveNextStep(), and solveYourself().

◆ giveEndOfTimeOfInterest()

double oofem::IncrementalLinearStatic::giveEndOfTimeOfInterest ( )
inlineoverridevirtual

Returns end of time interest (time corresponding to end of time integration).

Reimplemented from oofem::EngngModel.

Definition at line 110 of file incrementallinearstatic.h.

References endOfTimeOfInterest.

◆ giveFormulation()

fMode oofem::IncrementalLinearStatic::giveFormulation ( )
inlineoverridevirtual

Indicates type of non linear computation (total or updated formulation). This is used for example on Nodal level to update coordinates if updated formulation is done, or on element level, when non linear contributions are computed.

Reimplemented from oofem::EngngModel.

Definition at line 114 of file incrementallinearstatic.h.

References oofem::TL.

◆ giveInputRecordName()

const char * oofem::IncrementalLinearStatic::giveInputRecordName ( ) const
inline

Definition at line 116 of file incrementallinearstatic.h.

References _IFT_IncrementalLinearStatic_Name.

◆ giveNextStep()

TimeStep * oofem::IncrementalLinearStatic::giveNextStep ( )
overridevirtual

Returns next time step (next to current step) of receiver.

Reimplemented from oofem::EngngModel.

Definition at line 149 of file incrementallinearstatic.C.

References oofem::EngngModel::currentStep, giveDiscreteTime(), oofem::EngngModel::giveNumberOfTimeStepWhenIcApply(), and oofem::EngngModel::previousStep.

◆ giveNumericalMethod()

NumericalMethod * oofem::IncrementalLinearStatic::giveNumericalMethod ( MetaStep * mStep)
overridevirtual

Returns reference to receiver's numerical method.

Reimplemented from oofem::EngngModel.

Definition at line 76 of file incrementallinearstatic.C.

References oofem::classFactory, oofem::EngngModel::giveDomain(), nMethod, OOFEM_ERROR, and solverType.

Referenced by solveYourselfAt().

◆ giveUnknownComponent()

double oofem::IncrementalLinearStatic::giveUnknownComponent ( ValueModeType ,
TimeStep * ,
Domain * ,
Dof *  )
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.

See also
Dof::giveUnknown

Reimplemented from oofem::EngngModel.

Definition at line 317 of file incrementallinearstatic.C.

References giveUnknownDictHashIndx(), oofem::Dof::giveUnknowns(), OOFEM_ERROR, and requiresUnknownsDictionaryUpdate().

◆ giveUnknownDictHashIndx()

int oofem::IncrementalLinearStatic::giveUnknownDictHashIndx ( ValueModeType mode,
TimeStep * tStep )
overridevirtual

This method is responsible for computing unique dictionary id (ie hash value) from given valueModeType and time step. This function is used by particular dofs to access unknown identified by given parameters from its dictionary using computed index. Usually the hash algorithm should produce index that depend on time step relatively to actual one to avoid storage of complete history.

Reimplemented from oofem::EngngModel.

Definition at line 334 of file incrementallinearstatic.C.

References oofem::TimeStep::giveNumber().

Referenced by giveUnknownComponent().

◆ initializeFrom()

void oofem::IncrementalLinearStatic::initializeFrom ( InputRecord & ir)
overridevirtual

◆ requiresEquationRenumbering()

bool oofem::IncrementalLinearStatic::requiresEquationRenumbering ( TimeStep * tStep)
inlineoverridevirtual

Returns true if equation renumbering is required for given solution step. This may of course change the number of equation and in general there is no guarantee that for a certain dof the same equation will be assigned. So the use of DOF unknowns dictionaries is generally recommended.

Reimplemented from oofem::EngngModel.

Definition at line 120 of file incrementallinearstatic.h.

◆ requiresUnknownsDictionaryUpdate()

int oofem::IncrementalLinearStatic::requiresUnknownsDictionaryUpdate ( )
inlineoverridevirtual

Indicates if EngngModel requires Dofs dictionaries to be updated. If EngngModel does not support changes of static system, the dof forwards the requests for its unknowns to EngngModel, where unknowns are naturally kept. This is possible, because dof equation number is same during whole solution. But when changes of static system are allowed, several problem arise. For example by solving simple incremental static with allowed static changes, the incremental displacement vector of structure can not be added to total displacement vector of structure, because equation numbers may have changed, and one can not simply add these vector to obtain new total displacement vector, because incompatible displacement will be added. To solve this problem, unknown dictionary at dof level has been assumed. Dof then keeps its unknowns in its own private dictionary. After computing increment of solution, engngModel updates for each dof its unknowns in its dictionary (using updateUnknownsDictionary function). For aforementioned example engngModel updates incremental values but also total value by asking dof for previous total value (dof will use its dictionary, does not asks back EngngModel) adds corresponding increment and updates total value in dictionary.

Reimplemented from oofem::EngngModel.

Definition at line 119 of file incrementallinearstatic.h.

Referenced by giveUnknownComponent().

◆ restoreContext()

void oofem::IncrementalLinearStatic::restoreContext ( DataStream & stream,
ContextMode mode )
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.

Parameters
streamContext file.
modeDetermines amount of info in stream.
Exceptions
ContextIOERRexception if error encountered.

Reimplemented from oofem::EngngModel.

Definition at line 372 of file incrementallinearstatic.C.

◆ saveContext()

void oofem::IncrementalLinearStatic::saveContext ( DataStream & stream,
ContextMode mode )
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.

Parameters
streamContext stream.
modeDetermines amount of info in stream.
Exceptions
ContextIOERRIf error encountered.

Reimplemented from oofem::EngngModel.

Definition at line 366 of file incrementallinearstatic.C.

◆ solveYourself()

void oofem::IncrementalLinearStatic::solveYourself ( )
overridevirtual

Starts solution process. Implementation should invoke for each time step solveYourselfAt function with time step as parameter. Time steps are created using giveNextStep function (this will set current time step to newly created, and updates previous step).

Reimplemented from oofem::EngngModel.

Definition at line 161 of file incrementallinearstatic.C.

References giveDiscreteTime().

◆ solveYourselfAt()

void oofem::IncrementalLinearStatic::solveYourselfAt ( TimeStep * tStep)
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.

Todo
This will eventually not be optional.

Reimplemented from oofem::EngngModel.

Definition at line 167 of file incrementallinearstatic.C.

References oofem::assemble(), oofem::EngngModel::assembleVector(), oofem::IntArray::at(), oofem::classFactory, oofem::TimeStep::convergedReason, oofem::CR_CONVERGED, oofem::EngngModel::forceEquationNumbering(), oofem::Domain::giveBc(), oofem::Domain::giveBcs(), oofem::EngngModel::giveCurrentMetaStep(), oofem::GeneralBoundaryCondition::giveDofIDs(), oofem::Domain::giveDofManager(), oofem::Domain::giveDofManagers(), oofem::DofManager::giveDofWithID(), oofem::EngngModel::giveDomain(), oofem::GeneralBoundaryCondition::giveInternalDofManager(), oofem::Set::giveNodeList(), oofem::TimeStep::giveNumber(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::Domain::giveNumberOfDofManagers(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::GeneralBoundaryCondition::giveNumberOfInternalDofManagers(), giveNumericalMethod(), oofem::TimeStep::givePreviousStep(), oofem::Domain::giveSet(), oofem::GeneralBoundaryCondition::giveSetNumber(), oofem::IntArray::giveSize(), oofem::TimeStep::giveTargetTime(), incrementOfDisplacementVector, internalLoadVector, oofem::GeneralBoundaryCondition::isImposed(), oofem::TimeStep::isTheFirstStep(), loadVector, nMethod, OOFEM_ERROR, OOFEM_LOG_INFO, OOFEM_LOG_RELEVANT, OOFEM_WARNING, oofem::EngngModel::ReactionExchangeTag, oofem::ActiveBoundaryCondition::requiresActiveDofs(), oofem::Dof::setBcId(), sparseMtrxType, stiffnessMatrix, and oofem::EngngModel::updateSharedDofManagers().

◆ updateDofUnknownsDictionary()

void oofem::IncrementalLinearStatic::updateDofUnknownsDictionary ( DofManager * ,
TimeStep *  )
overridevirtual

Updates necessary values in Dofs unknown dictionaries.

See also
EngngModel::requiresUnknownsDictionaryUpdate
Dof::updateUnknownsDictionary

Reimplemented from oofem::EngngModel.

Definition at line 340 of file incrementallinearstatic.C.

References oofem::TimeStep::givePreviousStep(), and incrementOfDisplacementVector.

Member Data Documentation

◆ deltaT

double oofem::IncrementalLinearStatic::deltaT
protected

Definition at line 75 of file incrementallinearstatic.h.

Referenced by giveDiscreteTime(), and initializeFrom().

◆ discreteTimes

FloatArray oofem::IncrementalLinearStatic::discreteTimes
protected

◆ endOfTimeOfInterest

double oofem::IncrementalLinearStatic::endOfTimeOfInterest
protected

◆ fixedSteps

bool oofem::IncrementalLinearStatic::fixedSteps
protected

Definition at line 74 of file incrementallinearstatic.h.

Referenced by giveDiscreteTime(), and initializeFrom().

◆ incrementOfDisplacementVector

FloatArray oofem::IncrementalLinearStatic::incrementOfDisplacementVector
protected

◆ internalLoadVector

FloatArray oofem::IncrementalLinearStatic::internalLoadVector
protected

Definition at line 71 of file incrementallinearstatic.h.

Referenced by IncrementalLinearStatic(), and solveYourselfAt().

◆ loadVector

FloatArray oofem::IncrementalLinearStatic::loadVector
protected

Definition at line 70 of file incrementallinearstatic.h.

Referenced by IncrementalLinearStatic(), and solveYourselfAt().

◆ nMethod

std :: unique_ptr< SparseLinearSystemNM > oofem::IncrementalLinearStatic::nMethod
protected

Numerical method used to solve the problem.

Definition at line 78 of file incrementallinearstatic.h.

Referenced by giveNumericalMethod(), and solveYourselfAt().

◆ solverType

LinSystSolverType oofem::IncrementalLinearStatic::solverType
protected

Definition at line 80 of file incrementallinearstatic.h.

Referenced by giveNumericalMethod(), and initializeFrom().

◆ sparseMtrxType

SparseMtrxType oofem::IncrementalLinearStatic::sparseMtrxType
protected

Definition at line 81 of file incrementallinearstatic.h.

Referenced by initializeFrom(), and solveYourselfAt().

◆ stiffnessMatrix

std :: unique_ptr< SparseMtrx > oofem::IncrementalLinearStatic::stiffnessMatrix
protected

Definition at line 69 of file incrementallinearstatic.h.

Referenced by solveYourselfAt().


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011