OOFEM  2.1
Public Member Functions | Protected Attributes
oofem::TimeStep Class Reference

Class representing solution step. More...

#include <timestep.h>

+ Collaboration diagram for oofem::TimeStep:

List of all members.

Public Member Functions

 TimeStep (int n, EngngModel *e, int mn, double tt, double dt, StateCounterType counter, TimeDiscretizationType td=TD_Unspecified)
 Creates a new solution step.
 TimeStep (const TimeStep &)
 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.
const char * giveClassName () const
 Returns class name of receiver.
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 ()
 Check if solution step is not the last step.
bool isTheFirstStep ()
 Check if receiver is first step.
bool isTheCurrentTimeStep ()
 Check if receiver is current solution step.
bool isIcApply ()
 Check if receiver is solution step when initial conditions should apply.
StateCounterType giveSolutionStateCounter ()
 Returns current solution state counter.
void incrementStateCounter ()
 Updates solution state counter.
void incrementVersion ()
 Increments receiver's version.
TimeDiscretizationType giveTimeDiscretization ()
 Returns time discretization.
IRResultType initializeFrom (InputRecord *ir)
contextIOResultType saveContext (DataStream *stream, ContextMode mode, void *obj=NULL)
 Stores receiver state to output stream.
contextIOResultType restoreContext (DataStream *stream, ContextMode mode, void *obj=NULL)
 Restores the receiver state previously written in stream.

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
 Receiver's version, used for special applications; default set to 0.
int mstepNumber
 Corresponding meta step number.
TimeDiscretizationType timeDiscretization
 Time discretization.

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 78 of file timestep.h.


Constructor & Destructor Documentation

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 48 of file timestep.C.

Definition at line 67 of file timestep.C.

References deltaT, eModel, intrinsicTime, mstepNumber, number, solutionStateCounter, targetTime, and version.

Definition at line 55 of file timestep.C.

References deltaT, eModel, intrinsicTime, mstepNumber, number, solutionStateCounter, targetTime, and version.


Member Function Documentation

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

Returns class name of receiver.

Returns:
Pointer to s parameter filled with name.

Definition at line 132 of file timestep.h.

int oofem::TimeStep::giveNumber ( ) [inline]

Returns receiver's number.

Definition at line 121 of file timestep.h.

References number.

Referenced by oofem::PrimaryField::advanceSolution(), oofem::AdaptiveNonLinearStatic::assembleInitialLoadVector(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::WallClockLoadBalancerMonitor::decide(), oofem::DIIDynamic::determineConstants(), oofem::NonLinearDynamic::determineConstants(), oofem::LEPlic::doInterfaceRemapping(), oofem::VTKXMLExportModule::doOutput(), oofem::HuertaErrorEstimator::estimateError(), oofem::HuertaRemeshingCriteria::estimateMeshDensities(), oofem::StaggeredProblem::giveDeltaT(), oofem::MacroLSpace::giveInternalForcesVector(), oofem::StationaryTransportProblem::giveNextStep(), oofem::DarcyFlow::giveNextStep(), oofem::DEIDynamic::giveNextStep(), oofem::IncrementalLinearStatic::giveNextStep(), oofem::LinearStatic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::EigenValueDynamic::giveNextStep(), oofem::LinearStability::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StaggeredProblem::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NlDEIDynamic::giveNextStep(), oofem::ExportModule::giveOutputBaseFileName(), oofem::MatlabExportModule::giveOutputStream(), oofem::HydratingConcreteMatStatus::GivePower(), oofem::MasterDof::giveUnknown(), oofem::NLTransientTransportProblem::giveUnknownDictHashIndx(), oofem::SUPG::giveUnknownDictHashIndx(), oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearDynamic::printOutputAt(), oofem::NlDEIDynamic::printOutputAt(), oofem::NonLinearStatic::proceedStep(), oofem::NonLinearDynamic::proceedStep(), oofem::PrimaryField::resolveIndx(), oofem::EngngModel::saveStepContext(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::CylindricalALM::solve(), oofem::HuertaErrorEstimator::solveRefinedElementProblem(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::StaggeredProblem::solveYourself(), oofem::EngngModel::solveYourself(), oofem::DarcyFlow::solveYourselfAt(), oofem::StationaryTransportProblem::solveYourselfAt(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::EigenValueDynamic::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::StokesFlow::solveYourselfAt(), oofem::LinearStability::solveYourselfAt(), oofem::StaggeredProblem::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::ExportModule::testTimeStepOutput(), oofem::OutputManager::testTimeStepOutput(), oofem::NonLinearStatic::updateComponent(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::NonLinearStatic::updateLoadVectors(), and oofem::AdaptiveNonLinearStatic::updateYourself().

Returns pointer to previous solution step.

Definition at line 97 of file timestep.C.

References eModel, oofem::EngngModel::givePreviousStep(), isTheCurrentTimeStep(), and OOFEM_ERROR.

Referenced by oofem::TR1_2D_SUPG_AXI::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAccelerationTerm_MB(), oofem::SUPGElement2::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG2::computeAccelerationTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionDerivativeTerm_MB(), oofem::SUPGElement2::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG2::computeAdvectionDerivativeTerm_MC(), oofem::TR1_2D_SUPG_AXI::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionTerm_MB(), oofem::SUPGElement2::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG2::computeAdvectionTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG2::computeAdvectionTerm_MC(), oofem::TR1_2D_SUPG_AXI::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeBCRhsTerm_MB(), oofem::SUPGElement2::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG::computeBCRhsTerm_MB(), oofem::TR1_2D_SUPG2::computeBCRhsTerm_MB(), oofem::TR1_2D_CBS::computeConvectionTermsI(), oofem::TR1_2D_CBS::computeCorrectionRhs(), oofem::TR1_2D_CBS::computeDensityRhsPressureTerms(), oofem::TR1_2D_CBS::computeDensityRhsVelocityTerms(), oofem::TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MB(), oofem::SUPGElement2::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MB(), oofem::SUPGElement2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG::computeHomogenizedReinforceTerm_MB(), oofem::TR1_2D_SUPG_AXI::computePressureTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computePressureTerm_MB(), oofem::SUPGElement2::computePressureTerm_MB(), oofem::TR1_2D_SUPG::computePressureTerm_MB(), oofem::TR1_2D_SUPG2::computePressureTerm_MB(), oofem::NLTransientTransportProblem::createPreviousSolutionInDofUnknownsDictionary(), oofem::LEPlic::doLagrangianPhase(), oofem::B3Material::giveShrinkageStrainVector(), oofem::B3SolidMaterial::giveShrinkageStrainVector(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::solveYourselfAt(), oofem::SUPG::updateDofUnknownsDictionary_predictor(), oofem::LevelSetPCS::updatePosition(), oofem::Tet1_3D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG::updateStabilizationCoeffs(), and oofem::TR21_2D_SUPG::updateStabilizationCoeffs().

Returns current solution state counter.

Definition at line 175 of file timestep.h.

References solutionStateCounter.

Referenced by oofem::MMAShapeFunctProjection::__init(), oofem::ZZErrorEstimator::estimateError(), oofem::HuertaErrorEstimator::estimateError(), oofem::DirectErrorIndicatorRC::estimateMeshDensities(), oofem::ZZRemeshingCriteria::estimateMeshDensities(), oofem::HuertaRemeshingCriteria::estimateMeshDensities(), oofem::StructuralEngngModel::giveInternalForces(), oofem::StationaryTransportProblem::giveNextStep(), oofem::DarcyFlow::giveNextStep(), oofem::IncrementalLinearStatic::giveNextStep(), oofem::DEIDynamic::giveNextStep(), oofem::LinearStatic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::EigenValueDynamic::giveNextStep(), oofem::LinearStability::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StaggeredProblem::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NlDEIDynamic::giveNextStep(), oofem::HellmichMaterial::initAuxStatus(), oofem::HellmichMaterial::initGpForNewStep(), oofem::HellmichMaterial::printOutputAt(), oofem::NodalAveragingRecoveryModel::recoverValues(), oofem::ZZNodalRecoveryModel::recoverValues(), oofem::SPRNodalRecoveryModel::recoverValues(), oofem::EngngModel::restoreContext(), oofem::HellmichMaterial::restoreIPContext(), oofem::HuertaErrorEstimator::saveContext(), oofem::HellmichMaterial::saveIPContext(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::NonlocalMaterialExtensionInterface::updateDomainBeforeNonlocAverage(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::StructuralEngngModel::updateInternalState(), oofem::NonStationaryTransportProblem::updateInternalState(), oofem::LIBeam3dNL2::updateTempQuaternion(), oofem::LIBeam3dNL::updateTempTriad(), and oofem::LIBeam3d2::updateTempTriad().

double oofem::TimeStep::giveTargetTime ( ) [inline]

Returns target time.

Definition at line 136 of file timestep.h.

References targetTime.

Referenced by oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::B3SolidMaterial::computeFlowTermViscosity(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::CemhydMat::computeInternalSourceVector(), oofem::B3Material::computeShrinkageStrainVector(), oofem::B3SolidMaterial::computeShrinkageStrainVector(), oofem::B3SolidMaterial::computeSolidifiedVolume(), oofem::MPSMaterial::computeSolidifiedVolume(), oofem::MacroLSpace::computeStiffnessMatrix(), oofem::B3Material::computeTotalAverageShrinkageStrainVector(), oofem::B3SolidMaterial::computeTotalAverageShrinkageStrainVector(), oofem::TF1::computeValueAt(), oofem::UserDefinedTemperatureField::computeValueAt(), oofem::DofManExportModule::doOutput(), oofem::GPExportModule::doOutput(), oofem::HOMExportModule::doOutput(), oofem::POIExportModule::doOutput(), oofem::VTKExportModule::doOutput(), oofem::HydratingHeMoMaterial::giveCharacteristicValue(), oofem::HydratingIsoHeatMaterial::giveCharacteristicValue(), oofem::StaggeredProblem::giveDeltaT(), oofem::HellmichMaterial::giveEigenStrainVector(), oofem::KelvinChainMaterial::giveEModulus(), oofem::MaxwellChainMaterial::giveEModulus(), oofem::B3SolidMaterial::giveEModulus(), oofem::MacroLSpace::giveInternalForcesVector(), oofem::DEIDynamic::giveNextStep(), oofem::DIIDynamic::giveNextStep(), oofem::NonStationaryTransportProblem::giveNextStep(), oofem::CBS::giveNextStep(), oofem::StaggeredProblem::giveNextStep(), oofem::StokesFlow::giveNextStep(), oofem::SUPG::giveNextStep(), oofem::NonLinearStatic::giveNextStep(), oofem::NonLinearDynamic::giveNextStep(), oofem::NlDEIDynamic::giveNextStep(), oofem::HydratingConcreteMatStatus::GivePower(), oofem::AbaqusUserMaterial::giveRealStressVector(), oofem::HellmichMaterial::giveTime(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::EigenValueDynamic::giveUnknownComponent(), oofem::LinearStability::giveUnknownComponent(), oofem::NLTransientTransportProblem::giveUnknownDictHashIndx(), oofem::HellmichMaterial::plotStressStrain(), oofem::NonLinearStatic::printOutputAt(), oofem::NonLinearDynamic::printOutputAt(), oofem::NlDEIDynamic::printOutputAt(), oofem::EngngModel::printOutputAt(), oofem::EngngModel::restoreContext(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::HuertaErrorEstimator::setupRefinedProblemEpilog2(), oofem::HuertaErrorEstimator::setupRefinedProblemProlog(), oofem::NRSolver2::solve(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::IncrementalLinearStatic::solveYourselfAt(), oofem::DEIDynamic::solveYourselfAt(), oofem::NonStationaryTransportProblem::solveYourselfAt(), oofem::DIIDynamic::solveYourselfAt(), oofem::StaggeredProblem::solveYourselfAt(), oofem::NonLinearDynamic::solveYourselfAt(), oofem::NlDEIDynamic::solveYourselfAt(), oofem::LinearStability::terminateLinStatic(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::HydrationModelInterface::updateInternalState(), and oofem::MaxwellChainMaterial::updateYourself().

Returns solution step associated time increment.

Definition at line 140 of file timestep.h.

References deltaT.

Referenced by oofem::NRSolver::applyConstraintsToLoadIncrement(), oofem::NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), oofem::KelvinChainSolidMaterial::computeBetaMu(), oofem::MPSMaterial::computeBetaMu(), oofem::TR1_2D_CBS::computeConvectionTermsI(), oofem::TR1_2D_CBS::computeCorrectionRhs(), oofem::TR1_2D_CBS::computeDensityRhsPressureTerms(), oofem::MPSMaterial::computeEquivalentTime(), oofem::B3SolidMaterial::computeFlowTermViscosity(), oofem::MPSMaterial::computeFlowTermViscosity(), oofem::HydratingHeMoMaterial::computeInternalSourceVector(), oofem::HydratingIsoHeatMaterial::computeInternalSourceVector(), oofem::HydrationModel::computeIntSource(), oofem::KelvinChainSolidMaterial::computeLambdaMu(), oofem::MPSMaterial::computeLambdaMu(), oofem::B3SolidMaterial::computeMicroPrestress(), oofem::B3SolidMaterial::computeSolidifiedVolume(), oofem::MPSMaterial::computeSolidifiedVolume(), oofem::Line2SurfaceTension::computeTangent(), oofem::TF1::computeValueAt(), oofem::UserDefinedTemperatureField::computeValueAt(), oofem::DIIDynamic::determineConstants(), oofem::NonLinearDynamic::determineConstants(), oofem::LEPlic::doLagrangianPhase(), oofem::LoadTimeFunction::evaluate(), oofem::TrabBone3D::evaluateCurrentViscousModulus(), oofem::TrabBone3D::evaluateCurrentViscousStress(), oofem::HydratingHeMoMaterial::giveCharacteristicValue(), oofem::HydratingIsoHeatMaterial::giveCharacteristicValue(), oofem::MaxwellChainMaterial::giveEigenStrainVector(), oofem::KelvinChainMaterial::giveEigenStrainVector(), oofem::B3SolidMaterial::giveEigenStrainVector(), oofem::MPSMaterial::giveEigenStrainVector(), oofem::NonStationaryTransportProblem::giveElementCharacteristicMatrix(), oofem::SUPG::giveElementCharacteristicMatrix(), oofem::KelvinChainMaterial::giveEModulus(), oofem::MaxwellChainMaterial::giveEModulus(), oofem::B3SolidMaterial::giveEModulus(), oofem::MPSMaterial::giveEModulus(), oofem::MPSMaterial::giveInitViscosity(), oofem::StokesFlow::giveNextStep(), oofem::AbaqusUserMaterial::giveRealStressVector(), oofem::ConcreteDPM2::giveRealStressVector(), oofem::HellmichMaterial::giveTimeIncrement(), oofem::NLTransientTransportProblem::giveUnknownComponent(), oofem::LevelSetPCS::redistance(), oofem::EngngModel::restoreContext(), oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::NRSolver2::solve(), oofem::NLTransientTransportProblem::solveYourselfAt(), oofem::CBS::solveYourselfAt(), oofem::SUPG::updateDofUnknownsDictionary_corrector(), oofem::SUPG::updateDofUnknownsDictionary_predictor(), oofem::HydratingHeMoMaterial::updateInternalState(), oofem::HydratingIsoHeatMaterial::updateInternalState(), oofem::HydrationModel::updateInternalState(), oofem::HydrationModelInterface::updateInternalState(), oofem::LevelSetPCS::updatePosition(), oofem::SUPG::updateSolutionVectors(), oofem::SUPG::updateSolutionVectors_predictor(), oofem::Tet1_3D_SUPG::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG2::updateStabilizationCoeffs(), oofem::TR1_2D_SUPG::updateStabilizationCoeffs(), oofem::Quad10_2D_SUPG::updateStabilizationCoeffs(), oofem::Concrete2::updateStirrups(), oofem::KelvinChainMaterial::updateYourself(), oofem::MaxwellChainMaterial::updateYourself(), and oofem::Node::updateYourself().

int oofem::TimeStep::giveVersion ( ) [inline]

Returns receiver's version.

Definition at line 125 of file timestep.h.

References version.

Referenced by oofem::NonLinearStatic::proceedStep().

Increments receiver's version.

Definition at line 179 of file timestep.h.

References version.

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

Definition at line 183 of file timestep.h.

References oofem::IRRT_OK.

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

Returns:
True if ic apply, false otherwise.

Definition at line 127 of file timestep.C.

References eModel, oofem::EngngModel::giveNumberOfTimeStepWhenIcApply(), and number.

Check if solution step is not the last step.

Returns:
True if not last step, false otherwise.

Definition at line 110 of file timestep.C.

References eModel, oofem::EngngModel::giveNumberOfSteps(), and number.

Referenced by oofem::EngngModel::balanceLoad().

Check if receiver is current solution step.

Returns:
True if receiver is current step, false otherwise.

Definition at line 138 of file timestep.C.

References eModel, and oofem::EngngModel::giveCurrentStep().

Referenced by givePreviousStep(), oofem::Node::giveUpdatedCoordinate(), and oofem::Node::giveUpdatedCoordinates().

TimeStep & oofem::TimeStep::operator= ( const TimeStep src)

Definition at line 80 of file timestep.C.

References deltaT, eModel, intrinsicTime, mstepNumber, number, solutionStateCounter, targetTime, and version.

contextIOResultType oofem::TimeStep::restoreContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)

Restores the receiver state previously written in stream.

See also:
saveContext member function.

Definition at line 189 of file timestep.C.

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

Referenced by oofem::PrimaryField::restoreContext(), and oofem::EngngModel::restoreContext().

contextIOResultType oofem::TimeStep::saveContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)

Stores receiver state to output stream.

Receiver should write class-id first in order to allow test whether correct data are then restored.

Parameters:
streamOutput stream.
modeDetermines amount of info required in stream (state, definition,...).
objSpecial parameter, used only to send particular integration. point to material class version of this method. Except this case, obj parameter is always NULL pointer.
Exceptions:
ContextIOERRIf error encountered.

Definition at line 146 of file timestep.C.

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

Referenced by oofem::PrimaryField::saveContext().

void oofem::TimeStep::setIntrinsicTime ( double  newt) [inline]
void oofem::TimeStep::setNumber ( int  i) [inline]

Set receiver's number.

Definition at line 123 of file timestep.h.

References number.

Referenced by oofem::FE2FluidMaterialStatus::setTimeStep(), oofem::EigenValueDynamic::terminate(), and oofem::LinearStability::terminate().

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

Sets only target time.

Definition at line 146 of file timestep.h.

References targetTime.

Referenced by oofem::MacroLSpace::computeStiffnessMatrix(), and oofem::MacroLSpace::giveInternalForcesVector().

void oofem::TimeStep::setTime ( double  newt) [inline]

Sets time discretization.

Definition at line 150 of file timestep.h.

References timeDiscretization.

Referenced by oofem::DIIDynamic::determineConstants().

void oofem::TimeStep::setTimeIncrement ( double  newDt) [inline]

Member Data Documentation

double oofem::TimeStep::deltaT [protected]

Current intrinsic time increment.

Definition at line 88 of file timestep.h.

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

Engineering model reference.

Definition at line 82 of file timestep.h.

Referenced by givePreviousStep(), isIcApply(), isNotTheLastStep(), isTheCurrentTimeStep(), isTheFirstStep(), operator=(), and TimeStep().

double oofem::TimeStep::intrinsicTime [protected]

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

Definition at line 86 of file timestep.h.

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

Corresponding meta step number.

Definition at line 100 of file timestep.h.

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

int oofem::TimeStep::number [protected]

Solution state counter.

Definition at line 90 of file timestep.h.

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

double oofem::TimeStep::targetTime [protected]

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

Definition at line 84 of file timestep.h.

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

Time discretization.

Definition at line 102 of file timestep.h.

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

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 98 of file timestep.h.

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


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Sun Mar 10 2013 18:17:01 for OOFEM by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2011