49 eModel(e), targetTime(tt), intrinsicTime(tt), deltaT(dt), solutionStateCounter(counter),
50 number(n), version(0), subStepNumber(0), mStepNumber(mn), timeDiscretization(td)
120 OOFEM_ERROR(
"Could not return previous step of noncurrent step");
176 if ( !stream.
write(this->targetTime) ) {
181 if ( !stream.
write(this->intrinsicTime) ) {
186 if ( !stream.
write(this->deltaT) ) {
191 if ( !stream.
write(this->solutionStateCounter) ) {
197 if ( !stream.
write(tDiscretization) ) {
219 if ( !stream.
read(this->targetTime) ) {
224 if ( !stream.
read(this->intrinsicTime) ) {
229 if ( !stream.
read(this->deltaT) ) {
234 if ( !stream.
read(this->solutionStateCounter) ) {
239 int tDiscretization = 0;
240 if ( !stream.
read(tDiscretization) ) {
double intrinsicTime
Current intrinsic time, which may represents imposing time of boundary condition or time entering con...
TimeDiscretizationType timeDiscretization
Time discretization.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
EngngModel * eModel
Engineering model reference.
long StateCounterType
StateCounterType type used to indicate solution state.
int version
Receiver's version, used for special applications; default set to 0.
StateCounterType solutionStateCounter
Solution state counter.
virtual int read(int *data, int count)=0
Reads count integer values into array pointed by data.
bool isTheFirstStep()
Check if receiver is first step.
virtual int write(const int *data, int count)=0
Writes count integer values from array pointed by data.
TimeDiscretizationType
Time discretization used by transient solvers.
contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
int mStepNumber
Corresponding meta step number.
int giveNumberOfSteps(bool force=false)
Returns total number of steps.
TimeStep(int n, EngngModel *e, int mn, double tt, double dt, StateCounterType counter, TimeDiscretizationType td=TD_Unspecified)
Creates a new solution step.
virtual int giveNumberOfFirstStep(bool force=false)
Returns number of first time step used by receiver.
TimeStep * givePreviousStep()
Returns pointer to previous solution step.
bool isTheCurrentTimeStep()
Check if receiver is current solution step.
int giveNumberOfTimeStepWhenIcApply()
Returns the time step number, when initial conditions should apply.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
virtual TimeStep * givePreviousStep(bool force=false)
Returns previous time step.
int number
Receiver's number.
double deltaT
Current intrinsic time increment.
Abstract base class representing the "problem" under consideration.
virtual TimeStep * giveCurrentStep(bool force=false)
Returns current time step.
bool isIcApply()
Check if receiver is solution step when initial conditions should apply.
double targetTime
Current target time, which represents time at the end of a time step.
TimeStep & operator=(const TimeStep &)
the oofem namespace is to define a context or scope in which all oofem names are defined.
bool isNotTheLastStep()
Check if solution step is not the last step.
contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Class representing solution step.
int subStepNumber
Receiver's substep (iteration) number.