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

#include <timestep.h>

Collaboration diagram for oofem::TimeStep:

Protected Attributes

EngngModeleModel
 Engineering model reference.
double targetTime
 Current target time, which represents time at the end of a time step.
double intrinsicTime
 Current intrinsic time, which may represents imposing time of boundary condition or time entering constitutive laws.
double deltaT
 Current intrinsic time increment.
StateCounterType solutionStateCounter
 Solution state counter.
int number
 Receiver's number.
int version
int subStepNumber
int mStepNumber
 Corresponding meta step number.
TimeDiscretizationType timeDiscretization
 Time discretization.

Generic attributes to track solution status

int numberOfIterations
 Number of itarations needed to achieve convergence.
int numberOfAttempts
 Number of attempts (reduction ot time incerement, etc) needed to reach convergence.
ConvergedReason convergedReason
 Status of solution step (Converged,.
double solutionTime
 time step solution time in seconds
 TimeStep (int n, EngngModel *e, int mn, double tt, double dt, StateCounterType counter, TimeDiscretizationType td=TD_Unspecified)
 TimeStep (const TimeStep &)
 TimeStep (const TimeStep &previous, double dt)
 Convenience ctor for constructing the next timestep based on the previous one.
 TimeStep (EngngModel *e)
TimeStepoperator= (const TimeStep &)
int giveNumber ()
 Returns receiver's number.
void setNumber (int i)
 Set receiver's number.
int giveVersion ()
 Returns receiver's version.
int giveMetaStepNumber ()
 Returns receiver's meta step number.
void setMetaStepNumber (int msn)
 Set meta step number.
int giveSubStepNumber ()
 Returns receiver's substep number.
const char * giveClassName () const
TimeStepgivePreviousStep ()
 Returns pointer to previous solution step.
double giveTargetTime ()
 Returns target time.
double giveIntrinsicTime ()
 Returns intrinsic time, e.g. time in which constitutive model is evaluated.
double giveTimeIncrement ()
 Returns solution step associated time increment.
void setTimeIncrement (double newDt)
 Sets solution step time increment.
void setTime (double newt)
 Sets target and intrinsic time to be equal.
void setTargetTime (double newt)
 Sets only target time.
void setIntrinsicTime (double newt)
 Sets only intrinsic time.
void setTimeDiscretization (TimeDiscretizationType td)
 Sets time discretization.
bool isNotTheLastStep ()
bool isTheFirstStep ()
bool isTheCurrentTimeStep ()
void setTimeStepReductionFactor (double tsrf)
bool isIcApply ()
StateCounterType giveSolutionStateCounter ()
void incrementStateCounter ()
 Updates solution state counter.
void incrementVersion ()
 Increments receiver's version.
void incrementSubStepNumber ()
 Increments receiver's substep number.
TimeDiscretizationType giveTimeDiscretization ()
 Returns time discretization.
void initializeFrom (InputRecord &ir)
void saveContext (DataStream &stream)
void restoreContext (DataStream &stream)
std::string errorInfo (const char *func)

Detailed Description

Class representing solution step. The timeStep instance may represent either time step, load increment, or load case depending on used Engineering model. See corresponding EngngModel reference for details. TimeStep maintains a reference to corresponding Engineering model class instance.

The class hold target time, which may represent the end of time interval. In addition, there is intrinsic time, which is normally set the same as target time. Intrinsic (assembly) time is used especially in constitutive laws, where the material law is not meant to be evaluated at target time. Also, imposing boundary conditions occurs at intrinsic time by default. This reflects changes of static system and proper equation numbering during each timeStep.

Some components (typically integration points real stresses or integration points nonlocal values) are computationally very demanding. Because in typical code, there are number of requests for same value during the computation process, it may be efficient to store these values and compute them only once. The principal problem is to recognize, when is necessary to re-compute these stored values to reflect newly reached state. This cannot be determined form solution step "time", because solution step may represent for example load increment, inside which typically many iterations are needed to reach convergence. For this purpose, a concept of solution state counters is provided. Whenever the solution state changes, the engineering model updates the solution state counter. The solution state counter is guaranteed to grow up smoothly (it newer decreases) during solution process. Other components of program (integration points) can then store their computationally expensive values but have to store also corresponding solution state counter value valid when these were computed. Then, easy check is done for finding differences between frozen solution state counter and their value with current solution state requested from solution step and recompute the values if necessary.

Definition at line 81 of file timestep.h.

Constructor & Destructor Documentation

◆ TimeStep() [1/4]

oofem::TimeStep::TimeStep ( int n,
EngngModel * e,
int mn,
double tt,
double dt,
StateCounterType counter,
TimeDiscretizationType td = TD_Unspecified )

Creates a new solution step.

Parameters
nSolution step number.
eReference to corresponding engng model.
mnMeta step number.
ttIntrinsic time.
dtIntrinsic time increment.
counterSolution state counter.
tdTime discretization.

Definition at line 49 of file timestep.C.

References convergedReason, oofem::CR_UNKNOWN, deltaT, eModel, intrinsicTime, mStepNumber, number, numberOfAttempts, numberOfIterations, solutionStateCounter, solutionTime, subStepNumber, targetTime, timeDiscretization, and version.

Referenced by givePreviousStep(), operator=(), TimeStep(), and TimeStep().

◆ TimeStep() [2/4]

◆ TimeStep() [3/4]

oofem::TimeStep::TimeStep ( const TimeStep & previous,
double dt )

Convenience ctor for constructing the next timestep based on the previous one.

Definition at line 93 of file timestep.C.

References convergedReason, oofem::CR_UNKNOWN, deltaT, eModel, intrinsicTime, mStepNumber, number, numberOfAttempts, numberOfIterations, solutionStateCounter, solutionTime, subStepNumber, targetTime, timeDiscretization, TimeStep(), and version.

◆ TimeStep() [4/4]

Member Function Documentation

◆ errorInfo()

std::string oofem::TimeStep::errorInfo ( const char * func)
inline

Definition at line 234 of file timestep.h.

◆ giveClassName()

const char * oofem::TimeStep::giveClassName ( ) const
inline

Returns class name of receiver.

Returns
Pointer to s parameter filled with name.

Definition at line 160 of file timestep.h.

◆ giveIntrinsicTime()

double oofem::TimeStep::giveIntrinsicTime ( )
inline

Returns intrinsic time, e.g. time in which constitutive model is evaluated.

Definition at line 166 of file timestep.h.

References intrinsicTime.

Referenced by oofem::LinearConstraintBC::assemble(), oofem::LinearConstraintBC::assembleVector(), oofem::MPSMaterial::computePsiE(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::StructuralMaterial::computeStressIndependentStrainVector(), oofem::StructuralMaterial::computeStressIndependentStrainVector_3d(), oofem::UsrDefBoundaryLoad::computeValueAt(), oofem::FluidMaterialEvaluator::doStepOutput(), oofem::StructuralMaterialEvaluator::doStepOutput(), oofem::Function::evaluate(), oofem::ExpressionField::evaluateAt(), oofem::VoxelVOFField::evaluateAt(), oofem::VoxelVOFField::evaluateAt(), oofem::BoundaryCondition::give(), oofem::IsotropicLinearElasticMaterial::give1dStressStiffMtrx(), oofem::LinearElasticMaterial::give3dMaterialStiffnessMatrix(), oofem::OrthotropicLinearElasticMaterial::give3dMaterialStiffnessMatrix(), oofem::SimpleVitrificationMaterial::give3dMaterialStiffnessMatrix(), oofem::MacroLSpace::giveInternalForcesVector(), oofem::IsotropicLinearElasticMaterial::givePlaneStrainStiffMtrx(), oofem::IsotropicLinearElasticMaterial::givePlaneStressStiffMtrx(), oofem::HydratingConcreteMat::GivePower(), oofem::IsotropicHeatTransferMaterial::giveProperty(), oofem::SimpleVitrificationMaterial::giveRealStressVector_3d(), oofem::LinearElasticMaterial::giveRealStressVector_Warping(), oofem::MisesMat::giveS(), oofem::SimpleVitrificationMaterial::giveThermalDilatationVector(), oofem::Element::isActivated(), oofem::Element::isCast(), oofem::HydratingConcreteMatStatus::printOutputAt(), oofem::NonLinearStatic::proceedStep(), oofem::FluidMaterialEvaluator::solveYourself(), oofem::StructuralMaterialEvaluator::solveYourself(), oofem::StaticStructural::solveYourselfAt(), oofem::HydratingConcreteMatStatus::updateYourself(), and oofem::NLTransientTransportProblem::updateYourself().

◆ giveMetaStepNumber()

◆ giveNumber()

int oofem::TimeStep::giveNumber ( )
inline

Returns receiver's number.

Definition at line 144 of file timestep.h.

References number.

Referenced by oofem::PrimaryField::advanceSolution(), oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), oofem::BeamElementErrorCheckingRule::check(), oofem::EigenValueErrorCheckingRule::check(), oofem::ElementErrorCheckingRule::check(), oofem::InternalElementDofManErrorCheckingRule::check(), oofem::LoadLevelErrorCheckingRule::check(), oofem::NodeErrorCheckingRule::check(), oofem::ReactionErrorCheckingRule::check(), oofem::WeakPeriodicBoundaryCondition::computeElementTangent(), oofem::LatticeNeumannCouplingNode::computeLoadCouplingContribution(), oofem::tet21ghostsolid::computeStiffnessMatrix(), oofem::LatticeDirichletCouplingNode::computeUnknownCouplingContribution(), oofem::WallClockLoadBalancerMonitor::decide(), oofem::LEPlic::doInterfaceRemapping(), oofem::OutputExportModule::doOutput(), oofem::SolutionStatusExportModule::doOutput(), oofem::VTKXMLExportModule::doOutput(), oofem::VTKXMLXFemExportModule::doOutput(), oofem::HuertaErrorEstimator::estimateError(), oofem::HuertaRemeshingCriteria::estimateMeshDensities(), oofem::frictionShouldBeConsidered(), oofem::ExportModule::giveOutputBaseFileName(), oofem::MatlabExportModule::giveOutputStream(), oofem::HydratingConcreteMat::GivePower(), oofem::MasterDof::giveUnknown(), oofem::MasterDof::giveUnknown(), oofem::CBS::giveUnknownDictHashIndx(), oofem::DGProblem::giveUnknownDictHashIndx(), oofem::EigenValueDynamic::giveUnknownDictHashIndx(), oofem::IncrementalLinearStatic::giveUnknownDictHashIndx(), oofem::LinearStability::giveUnknownDictHashIndx(), oofem::MPMProblem::giveUnknownDictHashIndx(), oofem::NLTransientTransportProblem::giveUnknownDictHashIndx(), oofem::PFEM::giveUnknownDictHashIndx(), oofem::StaticStructural::giveUnknownDictHashIndx(), oofem::SUPG::giveUnknownDictHashIndx(), oofem::TransientTransportProblem::giveUnknownDictHashIndx(), oofem::NlDEIDynamic::printOutputAt(), oofem::NonLinearDynamic::printOutputAt(), oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearStatic::proceedStep(), oofem::PrimaryField::resolveIndx(), oofem::EngngModel::saveStepContext(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::RVEStokesFlowMaterialStatus::setTimeStep(), oofem::StructuralFE2MaterialStatus::setTimeStep(), oofem::StructuralSlipFE2MaterialStatus::setTimeStep(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::CylindricalALM::solve(), oofem::IntElLine1PF::solveForLocalDamage(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::HuertaErrorEstimator::solveRefinedWholeProblem(), oofem::AdditiveManufacturingProblem::solveYourself(), oofem::StaggeredProblem::solveYourself(), oofem::AdditiveManufacturingProblem::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::DGProblem::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::FluidStructureProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::MPMProblem::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::PFEM::solveYourselfAt(), oofem::StaggeredProblem::solveYourselfAt(), oofem::StaticStructural::solveYourselfAt(), oofem::StationaryMPMSProblem::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::TransientTransportProblem::solveYourselfAt(), oofem::LinearStability::terminateLinStatic(), oofem::ExportModule::testTimeStepOutput(), oofem::OutputManager::testTimeStepOutput(), oofem::NonLinearStatic::updateComponent(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::NonLinearStatic::updateMatrix(), oofem::AdaptiveNonLinearStatic::updateYourself(), oofem::ErrorCheckingExportModule::writeCheck(), and oofem::GeometryBasedEI::writeVtkDebug().

◆ givePreviousStep()

TimeStep * oofem::TimeStep::givePreviousStep ( )

Returns pointer to previous solution step.

Definition at line 132 of file timestep.C.

References eModel, isTheCurrentTimeStep(), OOFEM_ERROR, and TimeStep().

Referenced by oofem::DGProblem::assembleDirichletBcRhsVector(), oofem::ContactBoundaryCondition::assembleExtrapolatedForces(), oofem::EngngModel::assembleExtrapolatedForces(), oofem::SUPGElement2::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG2::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAccelerationTerm_MB(), oofem::SUPGElement2::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG_AXI::computeAdvectionDerivativeTerm_MC(), oofem::SUPGElement2::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG_AXI::computeAdvectionTerm_MC(), oofem::MPSMaterial::computeAutogenousShrinkageDefinedByTF(), oofem::MPSMaterial::computeB4AutogenousShrinkageStrainVector(), oofem::SUPGElement2::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG2::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeBCRhsTerm_MB(), oofem::TR1_2D_CBS::computeConvectionTermsI(), oofem::TR1_2D_CBS::computeCorrectionRhs(), oofem::TR1_2D_CBS::computeDensityRhsPressureTerms(), oofem::SUPGElement2::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MB(), oofem::SUPGElement2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MB(), oofem::Eurocode2CreepMaterial::computeEquivalentMaturity(), oofem::MPSMaterial::computeEquivalentTime(), oofem::MPSMaterial::computeFibAutogenousShrinkageStrainVector(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::TR1_2D_SUPG::computeHomogenizedReinforceTerm_MB(), oofem::LatticeNeumannCouplingNode::computeLoadCouplingContribution(), oofem::SUPGElement2::computeLoadVector(), oofem::TR1_2D_SUPG::computeLoadVector(), oofem::TR1_2D_SUPG_AXI::computeLoadVector(), oofem::SUPGElement2::computePressureTerm_MB(), oofem::TR1_2D_SUPG2::computePressureTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computePressureTerm_MB(), oofem::TR1_2D_SUPG::computePressureTerm_MB(), oofem::TR1_2D_SUPG_AXI::computePressureTerm_MB(), oofem::tet21ghostsolid::computeStiffnessMatrix(), oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary(), oofem::LEPlic::doLagrangianPhase(), oofem::MPSMaterial::giveEModulus(), oofem::MPSMaterial::giveHumidityNano(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolution(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolutionDebug(), oofem::B3Material::giveShrinkageStrainVector(), oofem::B3SolidMaterial::giveShrinkageStrainVector(), oofem::tet21ghostsolid::giveUnknownData(), oofem::PrimaryField::readDofManager(), oofem::DGProblem::requiresEquationRenumbering(), oofem::MPMProblem::requiresEquationRenumbering(), oofem::StaticStructural::requiresEquationRenumbering(), oofem::TransientTransportProblem::requiresEquationRenumbering(), oofem::CBS::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::PFEM::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::PrimaryField::storeDofManager(), oofem::TransientTransportProblem::updateComponent(), oofem::IncrementalLinearStatic::updateDofUnknownsDictionary(), oofem::SUPG::updateDofUnknownsDictionary_predictor(), oofem::TransientTransportProblem::updateInternalRHS(), oofem::LevelSetPCS::updatePosition(), oofem::Tet1_3D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), oofem::TR21_2D_SUPG::updateStabilizationCoeffs(), and oofem::ScalarAdvectionRhsAssembler::vectorFromElement().

◆ giveSolutionStateCounter()

◆ giveSubStepNumber()

int oofem::TimeStep::giveSubStepNumber ( )
inline

Returns receiver's substep number.

Definition at line 155 of file timestep.h.

References subStepNumber.

Referenced by oofem::VTKXMLExportModule::doOutput(), oofem::ExportModule::giveOutputBaseFileName(), and oofem::MatlabExportModule::giveOutputStream().

◆ giveTargetTime()

double oofem::TimeStep::giveTargetTime ( )
inline

Returns target time.

Definition at line 164 of file timestep.h.

References targetTime.

Referenced by oofem::PrimaryField::applyBoundaryCondition(), oofem::PrimaryField::applyBoundaryCondition(), oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::PrescribedGradientBCNeumann::assembleVector(), oofem::TransportGradientNeumann::assembleVector(), oofem::PrescribedDispSlipBCNeumannRC::assembleVectorBStress(), oofem::PrescribedDispSlipBCNeumannRC::assembleVectorRStress(), oofem::PrescribedDispSlipBCNeumannRC::assembleVectorStress(), oofem::StructuralPythonMaterial::callStressFunction(), oofem::StructuralPythonMaterial::callTangentFunction(), oofem::PrescribedGradientBCWeak::computeExtForceElContrib(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::CemhydMat::computeInternalSourceVector(), oofem::NlIsoMoistureMaterial::computeInternalSourceVector(), oofem::B3Material::computeShrinkageStrainVector(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::B3Material::computeTotalAverageShrinkageStrainVector(), oofem::B3SolidMaterial::computeTotalAverageShrinkageStrainVector(), oofem::TF1::computeValueAt(), oofem::UserDefinedTemperatureField::computeValueAt(), oofem::UsrDefBoundaryLoad::computeValueAt(), oofem::TransportElement::computeVof(), oofem::DofManExportModule::doOutput(), oofem::GnuplotExportModule::doOutput(), oofem::GPExportModule::doOutput(), oofem::HOMExportModule::doOutput(), oofem::MatlabExportModule::doOutput(), oofem::OutputExportModule::doOutput(), oofem::POIExportModule::doOutput(), oofem::SolutionStatusExportModule::doOutput(), oofem::VTKExportModule::doOutput(), oofem::VTKHDF5ExportModule::doOutput(), oofem::VTKPFEMXMLExportModule::doOutput(), oofem::VTKXMLExportModule::doOutput(), oofem::VTKXMLXFemExportModule::doOutput(), oofem::VTKXMLLatticeExportModule::doOutputCross(), oofem::VTKXMLLatticeExportModule::doOutputNormal(), oofem::PulseFunction::evaluate(), oofem::TimeCheckingRule::getValue(), oofem::BoundaryCondition::give(), oofem::PrescribedGradientBCPeriodic::giveBcValue(), oofem::TransportGradientPeriodic::giveBcValue(), oofem::HydratingHeMoMaterial::giveCharacteristicValue(), oofem::HydratingIsoHeatMaterial::giveCharacteristicValue(), oofem::B3SolidMaterial::giveEModulus(), oofem::Eurocode2CreepMaterial::giveEModulus(), oofem::KelvinChainMaterial::giveEModulus(), oofem::MaxwellChainMaterial::giveEModulus(), oofem::MPSMaterial::giveEModulus(), oofem::RheoChainMaterial::giveEquivalentTime(), oofem::AbaqusUserMaterial::giveFirstPKStressVector_3d(), oofem::AbaqusUserElement::giveInternalForcesVector(), oofem::MacroLSpace::giveInternalForcesVector(), oofem::HydratingConcreteMat::GivePower(), oofem::AbaqusUserMaterial::giveRealStressVector_3d(), oofem::Eurocode2CreepMaterial::giveShrinkageStrainVector(), oofem::NlIsoMoistureMaterial::giveTemperature(), oofem::PrescribedGradientBCPeriodic::giveUnknown(), oofem::PrescribedGradientBCPeriodic::giveUnknown(), oofem::TransportGradientPeriodic::giveUnknown(), oofem::TransportGradientPeriodic::giveUnknown(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::NLTransientTransportProblem::giveUnknownDictHashIndx(), oofem::Material::isActivated(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputGradient(), oofem::GnuplotExportModule::outputInterfaceEl(), oofem::GnuplotExportModule::outputMesh(), oofem::GnuplotExportModule::outputReactionForces(), oofem::GnuplotExportModule::outputXFEM(), oofem::GnuplotExportModule::outputXFEMGeometry(), oofem::EngngModel::printOutputAt(), oofem::NlDEIDynamic::printOutputAt(), oofem::NonLinearDynamic::printOutputAt(), oofem::NonLinearStatic::printOutputAt(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::RVEStokesFlowMaterialStatus::setTimeStep(), oofem::StructuralFE2MaterialStatus::setTimeStep(), oofem::StructuralSlipFE2MaterialStatus::setTimeStep(), oofem::PatchIntegrationRule::SetUpPointsOnTriangle(), oofem::PatchIntegrationRule::SetUpPointsOnWedge(), oofem::HuertaErrorEstimator::setupRefinedProblemEpilog2(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::AdditiveManufacturingProblem::solveYourself(), oofem::StaggeredProblem::solveYourself(), oofem::AdditiveManufacturingProblem::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::DGProblem::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::FluidStructureProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::MPMProblem::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::StaggeredProblem::solveYourselfAt(), oofem::TransientTransportProblem::solveYourselfAt(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::HydrationModelInterface::updateInternalState(), oofem::NonLinearStatic::updateLoadVectors(), oofem::NLTransientTransportProblem::updateYourself(), and oofem::XfemStructuralElementInterface::XfemElementInterface_updateIntegrationRule().

◆ giveTimeDiscretization()

TimeDiscretizationType oofem::TimeStep::giveTimeDiscretization ( )
inline

◆ giveTimeIncrement()

double oofem::TimeStep::giveTimeIncrement ( )
inline

Returns solution step associated time increment.

Definition at line 168 of file timestep.h.

References deltaT.

Referenced by oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::PrimaryField::applyInitialCondition(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::NonStationaryTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::NonStationaryTransportProblem::assembleDirichletBcRhsVector(), oofem::MPSMaterial::computeAutogenousShrinkageDefinedByTF(), oofem::MPSMaterial::computeB4AutogenousShrinkageStrainVector(), oofem::KelvinChainSolidMaterial::computeBetaMu(), oofem::MPSMaterial::computeBetaMu(), oofem::TR1_2D_CBS::computeConvectionTermsI(), oofem::TR1_2D_CBS::computeCorrectionRhs(), oofem::TR1_2D_CBS::computeDensityRhsPressureTerms(), oofem::Eurocode2CreepMaterial::computeEquivalentMaturity(), oofem::MPSMaterial::computeEquivalentTime(), oofem::MPSMaterial::computeFibAutogenousShrinkageStrainVector(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::KelvinChainMaterial::computeHiddenVars(), oofem::MaxwellChainMaterial::computeHiddenVars(), oofem::SteelRelaxMat::computeIncrOfPrestressLossAtVarStrain(), oofem::NlIsoMoistureMaterial::computeInternalSourceVector(), oofem::KelvinChainSolidMaterial::computeLambdaMu(), oofem::MPSMaterial::computeLambdaMu(), oofem::B3SolidMaterial::computeMicroPrestress(), oofem::PhaseFieldElement::computeNStress_d(), oofem::IntElLine1PF::computeStiffnessMatrix_dd(), oofem::PhaseFieldElement::computeStiffnessMatrix_dd(), oofem::SteelRelaxMat::computeStressRelaxationStrainVector(), oofem::DepositedHeatSource::computeValueAt(), oofem::TF1::computeValueAt(), oofem::UserDefinedTemperatureField::computeValueAt(), oofem::UsrDefBoundaryLoad::computeValueAt(), oofem::DIIDynamic::determineConstants(), oofem::NonLinearDynamic::determineConstants(), oofem::LEPlic::doLagrangianPhase(), oofem::SolutionStatusExportModule::doOutput(), oofem::Function::evaluate(), oofem::PulseFunction::evaluate(), oofem::TrabBone3D::evaluateCurrentViscousModulus(), oofem::TrabBone3D::evaluateCurrentViscousStress(), oofem::BoundaryCondition::give(), oofem::HydratingHeMoMaterial::giveCharacteristicValue(), oofem::HydratingIsoHeatMaterial::giveCharacteristicValue(), oofem::B3SolidMaterial::giveEModulus(), oofem::Eurocode2CreepMaterial::giveEModulus(), oofem::KelvinChainMaterial::giveEModulus(), oofem::MaxwellChainMaterial::giveEModulus(), oofem::MPSMaterial::giveEModulus(), oofem::RheoChainMaterial::giveEquivalentTime(), oofem::AbaqusUserMaterial::giveFirstPKStressVector_3d(), oofem::IntMatBilinearCZFagerstromRate::giveFirstPKTraction_3d(), oofem::MPSMaterial::giveHumidityNano(), oofem::MPSMaterial::giveInitViscosity(), oofem::AbaqusUserElement::giveInternalForcesVector(), oofem::IntElLine1PF::giveInternalForcesVectorUD(), oofem::AbaqusUserMaterial::giveRealStressVector_3d(), oofem::ConcreteDPM2::giveRealStressVector_3d(), oofem::MFrontUserMaterial::giveRealStressVector_3d(), oofem::Eurocode2CreepMaterial::giveShrinkageStrainVector(), oofem::NonLinearStatic::giveUnknownComponent(), oofem::Node::giveUpdatedCoordinate(), oofem::MidpointLhsAssembler::matrixFromElement(), oofem::SUPGTangentAssembler::matrixFromElement(), oofem::TMLhsAssembler::matrixFromElement(), oofem::LevelSetPCS::redistance(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::RVEStokesFlowMaterialStatus::setTimeStep(), oofem::StructuralFE2MaterialStatus::setTimeStep(), oofem::StructuralSlipFE2MaterialStatus::setTimeStep(), oofem::IntElLine1PF::solveForLocalDamage(), oofem::CBS::solveYourselfAt(), oofem::DGProblem::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::PFEM::solveYourselfAt(), oofem::StaticStructural::solveYourselfAt(), oofem::MPMProblem::updateComponent(), oofem::TransientTransportProblem::updateComponent(), oofem::SUPG::updateDofUnknownsDictionary_corrector(), oofem::SUPG::updateDofUnknownsDictionary_predictor(), oofem::MPMProblem::updateInternalRHS(), oofem::TransientTransportProblem::updateInternalRHS(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::HydrationModel::updateInternalState(), oofem::HydrationModelInterface::updateInternalState(), oofem::MPMProblem::updateMatrix(), oofem::TransientTransportProblem::updateMatrix(), oofem::LevelSetPCS::updatePosition(), oofem::SUPG::updateSolutionVectors(), oofem::SUPG::updateSolutionVectors_predictor(), oofem::Quad10_2D_SUPG::updateStabilizationCoeffs(), oofem::Tet1_3D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), oofem::HydratingConcreteMatStatus::updateYourself(), oofem::NLTransientTransportProblem::updateYourself(), and oofem::Node::updateYourself().

◆ giveVersion()

◆ incrementStateCounter()

◆ incrementSubStepNumber()

void oofem::TimeStep::incrementSubStepNumber ( )
inline

Increments receiver's substep number.

Definition at line 217 of file timestep.h.

References subStepNumber.

Referenced by oofem::CylindricalALM::solve(), oofem::DynamicRelaxationSolver::solve(), oofem::NRSolver::solve(), and oofem::StaggeredSolver::solve().

◆ incrementVersion()

void oofem::TimeStep::incrementVersion ( )
inline

Increments receiver's version.

Definition at line 215 of file timestep.h.

References version.

Referenced by oofem::AdaptiveNonLinearStatic::adaptiveRemap().

◆ initializeFrom()

void oofem::TimeStep::initializeFrom ( InputRecord & ir)
inline

Definition at line 221 of file timestep.h.

◆ isIcApply()

bool oofem::TimeStep::isIcApply ( )

Check if receiver is solution step when initial conditions should apply.

Returns
True if ic apply, false otherwise.

Definition at line 154 of file timestep.C.

References eModel, and number.

Referenced by oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::TransportElement::updateInternalState(), oofem::CemhydMatStatus::updateYourself(), and oofem::HydratingConcreteMatStatus::updateYourself().

◆ isNotTheLastStep()

bool oofem::TimeStep::isNotTheLastStep ( )

Check if solution step is not the last step.

Returns
True if not last step, false otherwise.

Definition at line 142 of file timestep.C.

References eModel, and number.

Referenced by oofem::EngngModel::balanceLoad(), oofem::ErrorCheckingExportModule::doOutput(), and oofem::ErrorCheckingExportModule::writeCheck().

◆ isTheCurrentTimeStep()

bool oofem::TimeStep::isTheCurrentTimeStep ( )

◆ isTheFirstStep()

bool oofem::TimeStep::isTheFirstStep ( )

Check if receiver is first step.

Returns
True if receiver is the first step, false otherwise.

Definition at line 148 of file timestep.C.

References eModel, and number.

Referenced by oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::ContactBoundaryCondition::assembleExtrapolatedForces(), oofem::EngngModel::assembleExtrapolatedForces(), oofem::EngngModel::balanceLoad(), oofem::MPSMaterial::computeAutogenousShrinkageDefinedByTF(), oofem::MPSMaterial::computeB4AutogenousShrinkageStrainVector(), oofem::LatticeTransportMaterial::computeConductivity(), oofem::ConcreteDPM2::computeDamage(), oofem::Eurocode2CreepMaterial::computeEquivalentMaturity(), oofem::MPSMaterial::computeEquivalentTime(), oofem::MPSMaterial::computeFibAutogenousShrinkageStrainVector(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::LatticeNeumannCouplingNode::computeLoadCouplingContribution(), oofem::B3SolidMaterial::computeMicroPrestress(), oofem::tet21ghostsolid::computeStiffnessMatrix(), oofem::TF1::computeValueAt(), oofem::UserDefinedTemperatureField::computeValueAt(), oofem::NonLinearDynamic::determineConstants(), oofem::FluidMaterialEvaluator::doStepOutput(), oofem::StructuralMaterialEvaluator::doStepOutput(), oofem::Dof::giveBcValue(), oofem::MPSMaterial::giveEModulus(), oofem::MPSMaterial::giveHumidityNano(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolution(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolutionDebug(), oofem::B3Material::giveShrinkageStrainVector(), oofem::B3SolidMaterial::giveShrinkageStrainVector(), oofem::tet21ghostsolid::giveUnknownData(), oofem::DIIDynamic::initializeYourself(), oofem::NonLinearDynamic::initializeYourself(), oofem::DGProblem::requiresEquationRenumbering(), oofem::MPMProblem::requiresEquationRenumbering(), oofem::StaticStructural::requiresEquationRenumbering(), oofem::TransientTransportProblem::requiresEquationRenumbering(), oofem::CBS::solveYourselfAt(), oofem::DGProblem::solveYourselfAt(), oofem::FluidStructureProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::MPMProblem::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::PFEM::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::TransientTransportProblem::solveYourselfAt(), oofem::NonLinearDynamic::updateInternalRHS(), and oofem::ErrorCheckingExportModule::writeCheck().

◆ operator=()

◆ restoreContext()

void oofem::TimeStep::restoreContext ( DataStream & stream)

Restores the receiver state previously written in stream.

See also
saveContext member function.

Definition at line 211 of file timestep.C.

References oofem::CIO_IOERR, mStepNumber, number, oofem::DataStream::read(), THROW_CIOERR, and timeDiscretization.

◆ saveContext()

void oofem::TimeStep::saveContext ( DataStream & stream)

Stores receiver state to output stream.

Parameters
streamOutput stream.
Exceptions
ContextIOERRIf error encountered.

Definition at line 177 of file timestep.C.

References oofem::CIO_IOERR, mStepNumber, number, THROW_CIOERR, timeDiscretization, and oofem::DataStream::write().

◆ setIntrinsicTime()

void oofem::TimeStep::setIntrinsicTime ( double newt)
inline

Sets only intrinsic time.

Definition at line 179 of file timestep.h.

References intrinsicTime.

Referenced by oofem::NLTransientTransportProblem::updateYourself().

◆ setMetaStepNumber()

void oofem::TimeStep::setMetaStepNumber ( int msn)
inline

Set meta step number.

Definition at line 152 of file timestep.h.

References mStepNumber.

◆ setNumber()

◆ setTargetTime()

void oofem::TimeStep::setTargetTime ( double newt)
inline

Sets only target time.

Definition at line 177 of file timestep.h.

References targetTime.

◆ setTime()

◆ setTimeDiscretization()

void oofem::TimeStep::setTimeDiscretization ( TimeDiscretizationType td)
inline

Sets time discretization.

Definition at line 181 of file timestep.h.

References timeDiscretization.

◆ setTimeIncrement()

◆ setTimeStepReductionFactor()

void oofem::TimeStep::setTimeStepReductionFactor ( double tsrf)

Set the time step reduction factor.

Definition at line 169 of file timestep.C.

References eModel.

Member Data Documentation

◆ convergedReason

◆ deltaT

double oofem::TimeStep::deltaT
protected

Current intrinsic time increment.

Definition at line 91 of file timestep.h.

Referenced by giveTimeIncrement(), operator=(), setTimeIncrement(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ eModel

EngngModel* oofem::TimeStep::eModel
protected

◆ intrinsicTime

double oofem::TimeStep::intrinsicTime
protected

Current intrinsic time, which may represents imposing time of boundary condition or time entering constitutive laws.

Definition at line 89 of file timestep.h.

Referenced by giveIntrinsicTime(), operator=(), setIntrinsicTime(), setTime(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ mStepNumber

int oofem::TimeStep::mStepNumber
protected

Corresponding meta step number.

Definition at line 107 of file timestep.h.

Referenced by giveMetaStepNumber(), operator=(), restoreContext(), saveContext(), setMetaStepNumber(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ number

int oofem::TimeStep::number
protected

◆ numberOfAttempts

int oofem::TimeStep::numberOfAttempts

Number of attempts (reduction ot time incerement, etc) needed to reach convergence.

Definition at line 118 of file timestep.h.

Referenced by oofem::SolutionStatusExportModule::doOutput(), operator=(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ numberOfIterations

◆ solutionStateCounter

StateCounterType oofem::TimeStep::solutionStateCounter
protected

Solution state counter.

Definition at line 93 of file timestep.h.

Referenced by giveSolutionStateCounter(), incrementStateCounter(), operator=(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ solutionTime

double oofem::TimeStep::solutionTime

time step solution time in seconds

Definition at line 122 of file timestep.h.

Referenced by oofem::SolutionStatusExportModule::doOutput(), oofem::StaggeredProblem::solveYourself(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ subStepNumber

int oofem::TimeStep::subStepNumber
protected

Receiver's substep (iteration) number.

Definition at line 105 of file timestep.h.

Referenced by giveSubStepNumber(), incrementSubStepNumber(), operator=(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ targetTime

double oofem::TimeStep::targetTime
protected

Current target time, which represents time at the end of a time step.

Definition at line 87 of file timestep.h.

Referenced by giveTargetTime(), operator=(), setTargetTime(), setTime(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ timeDiscretization

TimeDiscretizationType oofem::TimeStep::timeDiscretization
protected

Time discretization.

Definition at line 109 of file timestep.h.

Referenced by giveTimeDiscretization(), restoreContext(), saveContext(), setTimeDiscretization(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().

◆ version

int oofem::TimeStep::version
protected

Receiver's version, used for special applications; default set to 0. Typically, new version of same step is generated after adaptive restart, when the restarted step is equilibrated on new domain.

Definition at line 101 of file timestep.h.

Referenced by giveVersion(), incrementVersion(), operator=(), TimeStep(), TimeStep(), TimeStep(), and TimeStep().


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