www.mooseframework.org
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ExodusTimeSequenceStepper Class Reference

Solves the PDEs at a sequence of time points given as a vector in the input file. More...

#include <ExodusTimeSequenceStepper.h>

Inheritance diagram for ExodusTimeSequenceStepper:
[legend]

Public Member Functions

 ExodusTimeSequenceStepper (const InputParameters &parameters)
 
void setupSequence (const std::vector< Real > &times)
 
virtual void init () override
 Initialize the time stepper. More...
 
virtual void step () override
 Take a time step. More...
 
virtual void preExecute ()
 
virtual void preSolve ()
 
virtual void postSolve ()
 
virtual void postExecute ()
 
virtual void preStep ()
 
virtual void postStep ()
 
void computeStep ()
 Called before a new step is started. More...
 
virtual bool constrainStep (Real &dt)
 Called after computeStep() is called. More...
 
virtual void acceptStep ()
 This gets called when time step is accepted. More...
 
virtual void rejectStep ()
 This gets called when time step is rejected. More...
 
virtual bool converged ()
 If the time step converged. More...
 
Real getCurrentDT ()
 Get the current_dt. More...
 
virtual void forceTimeStep (Real dt)
 
const std::string & name () const
 Get the name of the object. More...
 
const InputParametersparameters () const
 Get the parameters of the object. More...
 
template<typename T >
const T & getParam (const std::string &name) const
 Retrieve a parameter for the object. More...
 
bool isParamValid (const std::string &name) const
 Test if the supplied parameter is valid. More...
 
MooseAppgetMooseApp ()
 Get the MooseApp this object is associated with. More...
 
virtual bool enabled ()
 Return the enabled status of the object. More...
 
template<typename... Args>
void mooseError (Args &&...args) const
 
template<typename... Args>
void mooseWarning (Args &&...args) const
 
template<typename... Args>
void mooseDeprecated (Args &&...args) const
 
template<typename... Args>
void mooseInfo (Args &&...args) const
 
void addSyncTime (Real sync_time)
 Add a sync time. More...
 
void addSyncTime (const std::set< Real > &times)
 

Public Attributes

const ConsoleStream _console
 An instance of helper class to write streams to the Console objects. More...
 

Protected Member Functions

virtual Real computeInitialDT () override
 Called to compute _current_dt for the first timestep. More...
 
virtual Real computeDT () override
 Called to compute _current_dt for a normal step. More...
 
virtual Real computeFailedDT () override
 Called to compute _current_dt after a solve has failed. More...
 
template<typename T >
T & declareRestartableData (std::string data_name)
 Declare a piece of data as "restartable". More...
 
template<typename T >
T & declareRestartableData (std::string data_name, const T &init_value)
 Declare a piece of data as "restartable" and initialize it. More...
 
template<typename T >
T & declareRestartableDataWithContext (std::string data_name, void *context)
 Declare a piece of data as "restartable". More...
 
template<typename T >
T & declareRestartableDataWithContext (std::string data_name, const T &init_value, void *context)
 Declare a piece of data as "restartable" and initialize it. More...
 

Protected Attributes

std::string _mesh_file
 The ExodusII file that is being read. More...
 
unsigned int & _current_step
 the step that the time stepper is currently at More...
 
std::vector< Real > & _time_sequence
 stores the sequence of time points More...
 
FEProblemBase_fe_problem
 
Transient_executioner
 Reference to transient executioner. More...
 
Real & _time
 Values from executioner. More...
 
Real & _time_old
 
int & _t_step
 
Real & _dt
 
Real & _dt_min
 
Real & _dt_max
 
Real & _end_time
 
std::set< Real > & _sync_times
 
Real & _timestep_tolerance
 
bool & _verbose
 should detailed diagnostic output be printed More...
 
bool _converged
 Whether or not the previous solve converged. More...
 
bool _reset_dt
 If true then the next dt will be computed by computeInitialDT() More...
 
bool _has_reset_dt
 True if dt has been reset. More...
 
MooseApp_app
 The MooseApp this object is associated with. More...
 
const InputParameters_pars
 Parameters of this object, references the InputParameters stored in the InputParametersWarehouse. More...
 
const std::string & _name
 The name of this object, reference to value stored in InputParameters. More...
 
const bool & _enabled
 Reference to the "enable" InputParaemters, used by Controls for toggling on/off MooseObjects. More...
 

Detailed Description

Solves the PDEs at a sequence of time points given as a vector in the input file.

Adjusts the time sequence vector according to Transient start_time and end_time.

Definition at line 29 of file ExodusTimeSequenceStepper.h.

Constructor & Destructor Documentation

ExodusTimeSequenceStepper::ExodusTimeSequenceStepper ( const InputParameters parameters)

Definition at line 33 of file ExodusTimeSequenceStepper.C.

34  : TimeSequenceStepperBase(parameters), _mesh_file(getParam<MeshFileName>("mesh"))
35 {
36  // Read the Exodus file on processor 0
37  std::vector<Real> times;
38  if (processor_id() == 0)
39  {
40  // Check that the required file exists
42 
43  // dummy mesh
44  ReplicatedMesh mesh(_communicator);
45 
46  ExodusII_IO exodusII_io(mesh);
47  exodusII_io.read(_mesh_file);
48  times = exodusII_io.get_time_steps();
49  }
50 
51  // distribute timestep list
52  unsigned int num_steps = times.size();
53  _communicator.broadcast(num_steps);
54  times.resize(num_steps);
55  _communicator.broadcast(times);
56 
57  setupSequence(times);
58 }
TimeSequenceStepperBase(const InputParameters &parameters)
void setupSequence(const std::vector< Real > &times)
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true)
Checks to see if a file is readable (exists and permissions)
Definition: MooseUtils.C:121
std::string _mesh_file
The ExodusII file that is being read.

Member Function Documentation

void TimeStepper::acceptStep ( )
virtualinherited

This gets called when time step is accepted.

Reimplemented in IterationAdaptiveDT.

Definition at line 165 of file TimeStepper.C.

Referenced by IterationAdaptiveDT::acceptStep(), and TimeStepper::postStep().

166 {
167  // If there are sync times at or before the current time, delete them
168  while (!_sync_times.empty() && _time + _timestep_tolerance >= *_sync_times.begin())
169  {
170  _sync_times.erase(_sync_times.begin());
171  }
172 }
Real & _timestep_tolerance
Definition: TimeStepper.h:138
std::set< Real > & _sync_times
Definition: TimeStepper.h:136
Real & _time
Values from executioner.
Definition: TimeStepper.h:129
void TimeStepper::addSyncTime ( Real  sync_time)
inherited

Add a sync time.

Referenced by TimeStepper::getCurrentDT().

void TimeStepper::addSyncTime ( const std::set< Real > &  times)
inherited
Real TimeSequenceStepperBase::computeDT ( )
overrideprotectedvirtualinherited

Called to compute _current_dt for a normal step.

Note that this does not return. The TimeStepper's job here is to fill in _current_dt.

Implements TimeStepper.

Definition at line 134 of file TimeSequenceStepperBase.C.

Referenced by TimeSequenceStepperBase::computeFailedDT(), TimeSequenceStepperBase::computeInitialDT(), and TimeSequenceStepperBase::init().

135 {
137 }
unsigned int & _current_step
the step that the time stepper is currently at
std::vector< Real > & _time_sequence
stores the sequence of time points
Real TimeSequenceStepperBase::computeFailedDT ( )
overrideprotectedvirtualinherited

Called to compute _current_dt after a solve has failed.

Note that this does not return. The TimeStepper's job here is to fill in _current_dt.

Reimplemented from TimeStepper.

Definition at line 140 of file TimeSequenceStepperBase.C.

Referenced by TimeSequenceStepperBase::init().

141 {
142  if (computeDT() <= _dt_min)
143  mooseError("Solve failed and timestep already at or below dtmin, cannot continue!");
144 
145  // cut the time step in a half if possible
146  Real dt = 0.5 * computeDT();
147  if (dt < _dt_min)
148  dt = _dt_min;
149  _time_sequence.insert(_time_sequence.begin() + _current_step + 1,
151  return computeDT();
152 }
unsigned int & _current_step
the step that the time stepper is currently at
std::vector< Real > & _time_sequence
stores the sequence of time points
virtual Real computeDT() override
Called to compute _current_dt for a normal step.
Real & _dt_min
Definition: TimeStepper.h:133
void mooseError(Args &&...args) const
Definition: MooseObject.h:80
Real TimeSequenceStepperBase::computeInitialDT ( )
overrideprotectedvirtualinherited

Called to compute _current_dt for the first timestep.

Note that this does not return. The TimeStepper's job here is to fill in _current_dt.

Implements TimeStepper.

Definition at line 128 of file TimeSequenceStepperBase.C.

Referenced by TimeSequenceStepperBase::init().

129 {
130  return computeDT();
131 }
virtual Real computeDT() override
Called to compute _current_dt for a normal step.
void TimeStepper::computeStep ( )
inherited

Called before a new step is started.

This is when the actual computation of the current DT will be done. Because of that this MUST be called only once per step!

After calling this function use getCurrentDT() to get the DT that was computed.

Definition at line 73 of file TimeStepper.C.

Referenced by TimeStepper::postStep().

74 {
75  if (_t_step < 2 || (_reset_dt && !_has_reset_dt))
76  {
77  _has_reset_dt = true;
78 
79  if (converged())
81  else
83  }
84  else
85  {
86  if (converged())
88  else
90  }
91 }
virtual Real computeInitialDT()=0
Called to compute _current_dt for the first timestep.
virtual Real computeFailedDT()
Called to compute _current_dt after a solve has failed.
Definition: TimeStepper.C:188
Real & _current_dt
Size of the current time step as computed by the Stepper. Note that the actual dt that was taken migh...
Definition: TimeStepper.h:154
virtual Real computeDT()=0
Called to compute _current_dt for a normal step.
bool _has_reset_dt
True if dt has been reset.
Definition: TimeStepper.h:150
virtual bool converged()
If the time step converged.
Definition: TimeStepper.C:182
int & _t_step
Definition: TimeStepper.h:131
bool _reset_dt
If true then the next dt will be computed by computeInitialDT()
Definition: TimeStepper.h:147
bool TimeStepper::constrainStep ( Real &  dt)
virtualinherited

Called after computeStep() is called.

Returns
true if any type of sync point was hit, false otherwise

Reimplemented in IterationAdaptiveDT.

Definition at line 94 of file TimeStepper.C.

Referenced by IterationAdaptiveDT::constrainStep(), and TimeStepper::postStep().

95 {
96  bool at_sync_point = false;
97 
98  std::ostringstream diag;
99 
100  // Don't let the time step size exceed maximum time step size
101  if (dt > _dt_max)
102  {
103  dt = _dt_max;
104  diag << "Limiting dt to dtmax: " << std::setw(9) << std::setprecision(6) << std::setfill('0')
105  << std::showpoint << std::left << _dt_max << std::endl;
106  }
107 
108  // Don't allow time step size to be smaller than minimum time step size
109  if (dt < _dt_min)
110  {
111  dt = _dt_min;
112  diag << "Increasing dt to dtmin: " << std::setw(9) << std::setprecision(6) << std::setfill('0')
113  << std::showpoint << std::left << _dt_min << std::endl;
114  }
115 
116  // Don't let time go beyond simulation end time (unless we're doing a half transient)
117  if (_time + dt > _end_time && !_app.halfTransient())
118  {
119  dt = _end_time - _time;
120  diag << "Limiting dt for end_time: " << std::setw(9) << std::setprecision(6)
121  << std::setfill('0') << std::showpoint << std::left << _end_time << " dt: " << std::setw(9)
122  << std::setprecision(6) << std::setfill('0') << std::showpoint << std::left << dt
123  << std::endl;
124  }
125 
126  // Adjust to a sync time if supplied
127  if (!_sync_times.empty() && _time + dt + _timestep_tolerance >= (*_sync_times.begin()))
128  {
129  dt = *_sync_times.begin() - _time;
130  diag << "Limiting dt for sync_time: " << std::setw(9) << std::setprecision(6)
131  << std::setfill('0') << std::showpoint << std::left << *_sync_times.begin()
132  << " dt: " << std::setw(9) << std::setprecision(6) << std::setfill('0') << std::showpoint
133  << std::left << dt << std::endl;
134 
135  if (dt <= 0.0)
136  {
137  _console << diag.str();
138  mooseError("Adjusting to sync_time resulted in a non-positive time step. dt: ",
139  dt,
140  " sync_time: ",
141  *_sync_times.begin(),
142  " time: ",
143  _time);
144  }
145 
146  at_sync_point = true;
147  }
148 
149  if (_verbose)
150  {
151  _console << diag.str();
152  }
153 
154  return at_sync_point;
155 }
Real & _timestep_tolerance
Definition: TimeStepper.h:138
bool halfTransient()
Whether or not this simulation should only run half its transient (useful for testing recovery) ...
Definition: MooseApp.h:339
std::set< Real > & _sync_times
Definition: TimeStepper.h:136
Real & _end_time
Definition: TimeStepper.h:135
MooseApp & _app
The MooseApp this object is associated with.
Definition: MooseObject.h:108
Real & _dt_min
Definition: TimeStepper.h:133
void mooseError(Args &&...args) const
Definition: MooseObject.h:80
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
Real & _dt_max
Definition: TimeStepper.h:134
bool & _verbose
should detailed diagnostic output be printed
Definition: TimeStepper.h:141
Real & _time
Values from executioner.
Definition: TimeStepper.h:129
bool TimeStepper::converged ( )
virtualinherited

If the time step converged.

Returns
true if converged, otherwise false

Reimplemented in AB2PredictorCorrector, and DT2.

Definition at line 182 of file TimeStepper.C.

Referenced by TimeStepper::computeStep(), TimeStepper::postStep(), SolutionTimeAdaptiveDT::step(), and TimeSequenceStepperBase::step().

183 {
184  return _converged;
185 }
bool _converged
Whether or not the previous solve converged.
Definition: TimeStepper.h:144
template<typename T >
T & Restartable::declareRestartableData ( std::string  data_name)
protectedinherited

Declare a piece of data as "restartable".

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)

Definition at line 224 of file Restartable.h.

225 {
226  return declareRestartableDataWithContext<T>(data_name, NULL);
227 }
template<typename T >
T & Restartable::declareRestartableData ( std::string  data_name,
const T &  init_value 
)
protectedinherited

Declare a piece of data as "restartable" and initialize it.

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
init_valueThe initial value of the data

Definition at line 231 of file Restartable.h.

232 {
233  return declareRestartableDataWithContext<T>(data_name, init_value, NULL);
234 }
template<typename T >
T & Restartable::declareRestartableDataWithContext ( std::string  data_name,
void *  context 
)
protectedinherited

Declare a piece of data as "restartable".

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
contextContext pointer that will be passed to the load and store functions

Definition at line 238 of file Restartable.h.

239 {
241  mooseError("No valid SubProblem found for ", _restartable_system_name, "/", _restartable_name);
242 
243  std::string full_name = _restartable_system_name + "/" + _restartable_name + "/" + data_name;
244  RestartableData<T> * data_ptr = new RestartableData<T>(full_name, context);
245 
247 
248  return data_ptr->get();
249 }
std::string _restartable_system_name
The system name this object is in.
Definition: Restartable.h:202
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
std::string _restartable_name
The name of the object.
Definition: Restartable.h:196
void registerRestartableDataOnSubProblem(std::string name, RestartableDataValue *data, THREAD_ID tid)
Helper function so we don&#39;t have to include SubProblem in the header.
Definition: Restartable.C:49
Concrete definition of a parameter value for a specified type.
SubProblem * _restartable_subproblem
Pointer to the SubProblem class.
Definition: Restartable.h:208
THREAD_ID _restartable_tid
The thread ID for this object.
Definition: Restartable.h:205
template<typename T >
T & Restartable::declareRestartableDataWithContext ( std::string  data_name,
const T &  init_value,
void *  context 
)
protectedinherited

Declare a piece of data as "restartable" and initialize it.

This means that in the event of a restart this piece of data will be restored back to its previous value.

NOTE: This returns a reference! Make sure you store it in a reference!

Parameters
data_nameThe name of the data (usually just use the same name as the member variable)
init_valueThe initial value of the data
contextContext pointer that will be passed to the load and store functions

Definition at line 253 of file Restartable.h.

256 {
258  mooseError("No valid SubProblem found for ", _restartable_system_name, "/", _restartable_name);
259 
260  std::string full_name = _restartable_system_name + "/" + _restartable_name + "/" + data_name;
261  RestartableData<T> * data_ptr = new RestartableData<T>(full_name, context);
262 
263  data_ptr->set() = init_value;
264 
266 
267  return data_ptr->get();
268 }
std::string _restartable_system_name
The system name this object is in.
Definition: Restartable.h:202
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
std::string _restartable_name
The name of the object.
Definition: Restartable.h:196
void registerRestartableDataOnSubProblem(std::string name, RestartableDataValue *data, THREAD_ID tid)
Helper function so we don&#39;t have to include SubProblem in the header.
Definition: Restartable.C:49
Concrete definition of a parameter value for a specified type.
SubProblem * _restartable_subproblem
Pointer to the SubProblem class.
Definition: Restartable.h:208
THREAD_ID _restartable_tid
The thread ID for this object.
Definition: Restartable.h:205
virtual bool MooseObject::enabled ( )
inlinevirtualinherited

Return the enabled status of the object.

Reimplemented in EigenKernel.

Definition at line 77 of file MooseObject.h.

Referenced by EigenKernel::enabled().

77 { return _enabled; }
const bool & _enabled
Reference to the "enable" InputParaemters, used by Controls for toggling on/off MooseObjects.
Definition: MooseObject.h:117
void TimeStepper::forceTimeStep ( Real  dt)
virtualinherited

Definition at line 201 of file TimeStepper.C.

Referenced by TimeStepper::getCurrentDT().

202 {
203  _current_dt = dt;
204 }
Real & _current_dt
Size of the current time step as computed by the Stepper. Note that the actual dt that was taken migh...
Definition: TimeStepper.h:154
Real TimeStepper::getCurrentDT ( )
inlineinherited

Get the current_dt.

Definition at line 89 of file TimeStepper.h.

Referenced by ConstantDT::computeDT(), LogConstantDT::computeDT(), SolutionTimeAdaptiveDT::computeDT(), DT2::computeDT(), and DT2::step().

89 { return _current_dt; }
Real & _current_dt
Size of the current time step as computed by the Stepper. Note that the actual dt that was taken migh...
Definition: TimeStepper.h:154
MooseApp& MooseObject::getMooseApp ( )
inlineinherited

Get the MooseApp this object is associated with.

Definition at line 72 of file MooseObject.h.

Referenced by RestartableDataIO::createBackup(), RestartableDataIO::deserializeRestartableData(), Resurrector::restartRestartableData(), and RestartableDataIO::restoreBackup().

72 { return _app; }
MooseApp & _app
The MooseApp this object is associated with.
Definition: MooseObject.h:108
template<typename T >
const T & MooseObject::getParam ( const std::string &  name) const
inherited

Retrieve a parameter for the object.

Parameters
nameThe name of the parameter
Returns
The value of the parameter

Definition at line 122 of file MooseObject.h.

Referenced by FEProblemBase::addMaterial(), ConstraintWarehouse::addObject(), BicubicSplineFunction::BicubicSplineFunction(), Piecewise::buildFromXandY(), EigenKernel::EigenKernel(), FieldSplitPreconditioner::FieldSplitPreconditioner(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), GenericConstantRankTwoTensor::GenericConstantRankTwoTensor(), TimeSequenceStepper::init(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), Console::initialSetup(), AdvancedOutput::initialSetup(), SideSetsBetweenSubdomains::modify(), MeshExtruder::modify(), AddExtraNodeset::modify(), SideSetsAroundSubdomain::modify(), RenameBlock::modify(), MooseObject::parameters(), ParsedAddSideset::ParsedAddSideset(), ParsedAux::ParsedAux(), ParsedODEKernel::ParsedODEKernel(), ParsedSubdomainMeshModifier::ParsedSubdomainMeshModifier(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), TimePeriod::TimePeriod(), and VectorOfPostprocessors::VectorOfPostprocessors().

123 {
124  return InputParameters::getParamHelper(name, _pars, static_cast<T *>(0));
125 }
const std::string & name() const
Get the name of the object.
Definition: MooseObject.h:47
static const T & getParamHelper(const std::string &name, const InputParameters &pars, const T *the_type)
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
Definition: MooseObject.h:111
virtual void TimeSequenceStepperBase::init ( )
inlineoverridevirtualinherited

Initialize the time stepper.

Called at the very beginning of Executioner::execute()

Reimplemented from TimeStepper.

Reimplemented in CSVTimeSequenceStepper, and TimeSequenceStepper.

Definition at line 36 of file TimeSequenceStepperBase.h.

36 {}
bool MooseObject::isParamValid ( const std::string &  name) const
inlineinherited

Test if the supplied parameter is valid.

Parameters
nameThe name of the parameter to test

Definition at line 67 of file MooseObject.h.

Referenced by BicubicSplineFunction::BicubicSplineFunction(), Piecewise::buildFromFile(), Piecewise::buildFromXandY(), GeneratedMesh::buildMesh(), LibmeshPartitioner::clone(), OversampleOutput::cloneMesh(), CSVReader::CSVReader(), MultiAppNearestNodeTransfer::execute(), FileOutput::FileOutput(), MultiApp::fillPositions(), MultiAppNearestNodeTransfer::getLocalNodes(), MultiAppNearestNodeTransfer::getNearestNode(), IterationAdaptiveDT::init(), EigenExecutionerBase::init(), MooseMesh::init(), AdvancedOutput::initExecutionTypes(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), SolutionAux::initialSetup(), MooseParsedVectorFunction::initialSetup(), Console::initialSetup(), Receiver::initialSetup(), SolutionFunction::initialSetup(), MooseParsedGradFunction::initialSetup(), MooseParsedFunction::initialSetup(), AdvancedOutput::initialSetup(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), IterationAdaptiveDT::IterationAdaptiveDT(), LeastSquaresFit::LeastSquaresFit(), LibmeshPartitioner::LibmeshPartitioner(), BreakBoundaryOnSubdomain::modify(), MeshExtruder::modify(), MeshSideSet::modify(), AssignElementSubdomainID::modify(), ParsedSubdomainMeshModifier::modify(), RenameBlock::modify(), SubdomainBoundingBox::modify(), EigenExecutionerBase::normalizeSolution(), Output::Output(), Exodus::outputSetup(), PetscOutput::PetscOutput(), Piecewise::Piecewise(), SolutionUserObject::readExodusII(), RenameBlock::RenameBlock(), Piecewise::setData(), SolutionUserObject::SolutionUserObject(), and TimePeriod::TimePeriod().

67 { return _pars.isParamValid(name); }
const std::string & name() const
Get the name of the object.
Definition: MooseObject.h:47
bool isParamValid(const std::string &name) const
This method returns parameters that have been initialized in one fashion or another, i.e.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
Definition: MooseObject.h:111
template<typename... Args>
void MooseObject::mooseDeprecated ( Args &&...  args) const
inlineinherited
template<typename... Args>
void MooseObject::mooseError ( Args &&...  args) const
inlineinherited

Definition at line 80 of file MooseObject.h.

Referenced by FEProblemBase::addInitialCondition(), DiracKernel::addPointWithValidId(), FEProblemBase::addPostprocessor(), MooseMesh::addQuadratureNode(), FEProblemBase::addVectorPostprocessor(), Output::advancedExecuteOn(), AnnularMesh::AnnularMesh(), MultiApp::appPostprocessorValue(), MultiApp::appProblem(), MultiApp::appProblemBase(), MultiApp::appUserObjectBase(), Function::average(), Axisymmetric2D3DSolutionFunction::Axisymmetric2D3DSolutionFunction(), BicubicSplineFunction::BicubicSplineFunction(), BoundingValueElementDamper::BoundingValueElementDamper(), BoundingValueNodalDamper::BoundingValueNodalDamper(), BoundsAux::BoundsAux(), MooseMesh::buildCoarseningMap(), Piecewise::buildFromFile(), Piecewise::buildFromXandY(), Piecewise::buildFromXY(), TiledMesh::buildMesh(), GeneratedMesh::buildMesh(), ImageMesh::buildMesh3D(), MooseMesh::buildRefinementMap(), EigenExecutionerBase::chebyshev(), FEProblemBase::checkCoordinateSystems(), FEProblemBase::checkDependMaterialsHelper(), FEProblemBase::checkDisplacementOrders(), Material::checkExecutionStage(), Steady::checkIntegrity(), EigenExecutionerBase::checkIntegrity(), SubProblem::checkMatProps(), FEProblemBase::checkProblemIntegrity(), Material::checkStatefulSanity(), FEProblemBase::checkUserObjects(), LibmeshPartitioner::clone(), CompositeFunction::CompositeFunction(), ElementLpNormAux::compute(), ElementH1ErrorFunctionAux::compute(), TimeSequenceStepperBase::computeFailedDT(), IterationAdaptiveDT::computeFailedDT(), TimeStepper::computeFailedDT(), FEProblemBase::computeResidual(), Material::computeSubdomainProperties(), PenetrationAux::computeValue(), TimeStepper::constrainStep(), AuxKernel::coupledDot(), AuxKernel::coupledDotDu(), DebugResidualAux::DebugResidualAux(), BicubicSplineFunction::derivative(), DGKernel::DGKernel(), SolutionUserObject::discontinuousPointValue(), SolutionUserObject::discontinuousPointValueGradient(), FEProblemBase::duplicateVariableCheck(), EigenProblem::EigenProblem(), Eigenvalues::Eigenvalues(), ElementalVariableValue::ElementalVariableValue(), MooseMesh::errorIfDistributedMesh(), SolutionUserObject::evalMeshFunction(), SolutionUserObject::evalMeshFunctionGradient(), SolutionUserObject::evalMultiValuedMeshFunction(), SolutionUserObject::evalMultiValuedMeshFunctionGradient(), PerflogDumper::execute(), NodalValueSampler::execute(), MultiAppPostprocessorTransfer::execute(), DiscreteElementUserObject::execute(), MultiAppPostprocessorInterpolationTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppNearestNodeTransfer::execute(), PointValue::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), FindValueOnLine::execute(), MultiAppInterpolationTransfer::execute(), TimeExtremeValue::execute(), LeastSquaresFit::execute(), FEProblemBase::executeControls(), FileOutput::FileOutput(), MultiApp::fillPositions(), VerifyElementUniqueID::finalize(), VerifyNodalUniqueID::finalize(), DiscreteElementUserObject::finalize(), MemoryUsage::finalize(), PointSamplerBase::finalize(), Transfer::find_sys(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FunctionDT::FunctionDT(), FunctionScalarAux::FunctionScalarAux(), FunctionScalarIC::FunctionScalarIC(), GapValueAux::GapValueAux(), GeneratedMesh::GeneratedMesh(), GenericConstantMaterial::GenericConstantMaterial(), GenericFunctionMaterial::GenericFunctionMaterial(), MooseMesh::getBoundaryID(), MultiApp::getBoundingBox(), MooseMesh::getCoarseningMap(), FEProblemBase::getCoordSystem(), PiecewiseConstant::getDirection(), FEProblemBase::getDistribution(), MultiApp::getExecutioner(), FEProblemBase::getFunction(), SolutionUserObject::getLocalVarIndex(), AuxKernel::getMaterialProperty(), AuxKernel::getMaterialPropertyOld(), AuxKernel::getMaterialPropertyOlder(), GeneratedMesh::getMaxInDimension(), AnnularMesh::getMaxInDimension(), FEProblemBase::getMaxQps(), FEProblemBase::getMaxShapeFunctions(), GeneratedMesh::getMinInDimension(), AnnularMesh::getMinInDimension(), MooseMesh::getMortarInterface(), MooseMesh::getMortarInterfaceByName(), MooseMesh::getNodeBlockIds(), MooseMesh::getNodeList(), FEProblemBase::getNonlinearSystem(), MooseMesh::getPairedBoundaryMapping(), ImageMesh::GetPixelInfo(), MaterialStdVectorAux::getRealValue(), MooseMesh::getRefinementMap(), FEProblemBase::getSampler(), DisplacedProblem::getScalarVariable(), FEProblemBase::getScalarVariable(), MooseMesh::getSubdomainBoundaryIds(), MooseMesh::getSubdomainID(), DisplacedProblem::getSystem(), FEProblemBase::getSystem(), FEProblemBase::getUserObjectBase(), NumVars::getValue(), PerformanceData::getValue(), Residual::getValue(), FindValueOnLine::getValueAtPoint(), DisplacedProblem::getVariable(), FEProblemBase::getVariable(), MultiApp::globalAppToLocal(), MooseParsedVectorFunction::gradient(), AdvancedOutput::hasOutputHelper(), CSVTimeSequenceStepper::init(), IterationAdaptiveDT::init(), EigenExecutionerBase::init(), MooseMesh::init(), FEProblemBase::init(), NumPicardIterations::initialize(), FullSolveMultiApp::initialSetup(), SolutionAux::initialSetup(), Axisymmetric2D3DSolutionFunction::initialSetup(), Exodus::initialSetup(), SolutionFunction::initialSetup(), SolutionUserObject::initialSetup(), FEProblemBase::initialSetup(), AdvancedOutput::initOutputList(), AdvancedOutput::initShowHideLists(), Material::initStatefulProperties(), Function::integral(), IntegratedBC::IntegratedBC(), InterfaceKernel::InterfaceKernel(), EigenExecutionerBase::inversePowerIteration(), InversePowerMethod::InversePowerMethod(), IterationAdaptiveDT::IterationAdaptiveDT(), KernelBase::KernelBase(), LeastSquaresFit::LeastSquaresFit(), LibmeshPartitioner::LibmeshPartitioner(), LinearCombinationFunction::LinearCombinationFunction(), LinearCombinationPostprocessor::LinearCombinationPostprocessor(), LinearNodalConstraint::LinearNodalConstraint(), LineMaterialSamplerBase< T >::LineMaterialSamplerBase(), MaterialRealTensorValueAux::MaterialRealTensorValueAux(), MaterialRealVectorValueAux::MaterialRealVectorValueAux(), MaterialStdVectorRealGradientAux::MaterialStdVectorRealGradientAux(), MaterialVectorPostprocessor::MaterialVectorPostprocessor(), SubProblem::meshChanged(), MeshExtruder::MeshExtruder(), SideSetsFromPoints::modify(), SideSetsFromNormals::modify(), AddExtraNodeset::modify(), MeshExtruder::modify(), AssignElementSubdomainID::modify(), AddAllSideSetsByNormals::modify(), ElementDeleterBase::modify(), ParsedSubdomainMeshModifier::modify(), RenameBlock::modify(), ImageSubdomain::modify(), BoundingBoxNodeSet::modify(), OrientedSubdomainBoundingBox::modify(), AddSideSetsFromBoundingBox::modify(), SubdomainBoundingBox::modify(), MultiAppMeshFunctionTransfer::MultiAppMeshFunctionTransfer(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), NearestNodeDistanceAux::NearestNodeDistanceAux(), NearestNodeValueAux::NearestNodeValueAux(), NodalBC::NodalBC(), NodalConstraint::NodalConstraint(), NodalEqualValueConstraint::NodalEqualValueConstraint(), NodalKernel::NodalKernel(), NodalVariableValue::NodalVariableValue(), NumDOFs::NumDOFs(), NumNonlinearIterations::NumNonlinearIterations(), XDA::output(), VTKOutput::output(), AdvancedOutput::outputElementalVariables(), AdvancedOutput::outputInput(), AdvancedOutput::outputNodalVariables(), AdvancedOutput::outputPostprocessors(), AdvancedOutput::outputScalarVariables(), AdvancedOutput::outputSystemInformation(), Console::outputVectorPostprocessors(), AdvancedOutput::outputVectorPostprocessors(), PiecewiseBilinear::parse(), ParsedAddSideset::ParsedAddSideset(), ParsedAux::ParsedAux(), ParsedODEKernel::ParsedODEKernel(), ParsedSubdomainMeshModifier::ParsedSubdomainMeshModifier(), PatternedMesh::PatternedMesh(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), Piecewise::Piecewise(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), PiecewiseMultilinear::PiecewiseMultilinear(), SolutionUserObject::pointValueGradientWrapper(), SolutionUserObject::pointValueWrapper(), LStableDirk2::postStep(), LStableDirk3::postStep(), ImplicitMidpoint::postStep(), ExplicitTVDRK2::postStep(), AStableDirk4::postStep(), LStableDirk4::postStep(), ExplicitRK2::postStep(), Predictor::Predictor(), SolutionUserObject::readExodusII(), SolutionUserObject::readXda(), RelativeSolutionDifferenceNorm::RelativeSolutionDifferenceNorm(), RenameBlock::RenameBlock(), ScalarComponentIC::ScalarComponentIC(), BicubicSplineFunction::secondDerivative(), FEProblemBase::setCoordSystem(), Piecewise::setData(), EigenProblem::setEigenproblemType(), Sampler::setNumberOfRequiedRandomSeeds(), Split::setup(), TransientMultiApp::setupApp(), TimeSequenceStepperBase::setupSequence(), Transient::setupTimeIntegrator(), SideSetsFromNormals::SideSetsFromNormals(), SideSetsFromPoints::SideSetsFromPoints(), SolutionUserObject::SolutionUserObject(), FullSolveMultiApp::solveStep(), UserObject::spatialValue(), SphericalAverage::SphericalAverage(), StitchedMesh::StitchedMesh(), NodalUserObject::subdomainSetup(), GeneralUserObject::subdomainSetup(), Constraint::subdomainSetup(), Console::systemInfoFlags(), Terminator::Terminator(), TestSetupPostprocessorDataActionFunction::TestSetupPostprocessorDataActionFunction(), DiscreteElementUserObject::threadJoin(), GeneralUserObject::threadJoin(), Function::timeDerivative(), TimeExtremeValue::TimeExtremeValue(), TimePeriod::TimePeriod(), MultiAppCopyTransfer::transfer(), MultiAppMeshFunctionTransfer::transferVariable(), Transient::Transient(), TransientMultiApp::TransientMultiApp(), EqualValueBoundaryConstraint::updateConstrainedNodes(), SolutionUserObject::updateExodusBracketingTimeIndices(), Axisymmetric2D3DSolutionFunction::value(), ValueRangeMarker::ValueRangeMarker(), ValueThresholdMarker::ValueThresholdMarker(), MultiAppTransfer::variableIntegrityCheck(), VariableResidual::VariableResidual(), VariableTimeIntegrationAux::VariableTimeIntegrationAux(), VectorOfPostprocessors::VectorOfPostprocessors(), VectorPostprocessorFunction::VectorPostprocessorFunction(), MooseParsedGradFunction::vectorValue(), MooseParsedFunction::vectorValue(), and VolumeHistogram::VolumeHistogram().

81  {
82  std::ostringstream oss;
83  moose::internal::mooseStreamAll(oss, std::forward<Args>(args)...);
84  std::string msg = oss.str();
85  callMooseErrorRaw(msg, &_app);
86  }
void mooseStreamAll(std::ostringstream &ss)
Definition: MooseError.C:78
void callMooseErrorRaw(std::string &msg, MooseApp *app)
Definition: MooseObject.C:45
MooseApp & _app
The MooseApp this object is associated with.
Definition: MooseObject.h:108
template<typename... Args>
void MooseObject::mooseInfo ( Args &&...  args) const
inlineinherited

Definition at line 101 of file MooseObject.h.

102  {
103  moose::internal::mooseInfoStream(_console, std::forward<Args>(args)...);
104  }
void mooseInfoStream(S &oss, Args &&...args)
Definition: MooseError.h:145
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
template<typename... Args>
void MooseObject::mooseWarning ( Args &&...  args) const
inlineinherited
const std::string& MooseObject::name ( ) const
inlineinherited

Get the name of the object.

Returns
The name of the object

Definition at line 47 of file MooseObject.h.

Referenced by FEProblemBase::addDistribution(), FEProblemBase::addFunction(), FEProblemBase::addIndicator(), FEProblemBase::addInitialCondition(), FEProblemBase::addMarker(), FEProblemBase::addMaterial(), MooseMesh::addMortarInterface(), FEProblemBase::addMultiApp(), FEProblemBase::addPredictor(), FEProblemBase::addSampler(), FEProblemBase::addTransfer(), FEProblemBase::addUserObject(), Output::advancedExecuteOn(), MultiApp::appPostprocessorValue(), MultiApp::appProblem(), MultiApp::appProblemBase(), MultiApp::appUserObjectBase(), AStableDirk4::AStableDirk4(), Function::average(), FEProblemBase::checkDependMaterialsHelper(), Damper::checkMinDamping(), Material::checkStatefulSanity(), CompositeFunction::CompositeFunction(), Material::computeSubdomainProperties(), AuxKernel::coupledCallback(), AuxKernel::coupledDot(), AuxKernel::coupledDotDu(), MultiApp::createApp(), DGKernel::DGKernel(), AB2PredictorCorrector::estimateTimeError(), SolutionUserObject::evalMeshFunction(), SolutionUserObject::evalMeshFunctionGradient(), SolutionUserObject::evalMultiValuedMeshFunction(), SolutionUserObject::evalMultiValuedMeshFunctionGradient(), MultiAppPostprocessorTransfer::execute(), MultiAppPostprocessorInterpolationTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppNearestNodeTransfer::execute(), PointValue::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), MultiAppMeshFunctionTransfer::execute(), MultiAppInterpolationTransfer::execute(), MultiAppUserObjectTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppCopyTransfer::execute(), FileOutput::FileOutput(), MultiApp::fillPositions(), PointSamplerBase::finalize(), GeneralUserObject::GeneralUserObject(), MultiApp::getBoundingBox(), Control::getControllableParameterHelper(), Control::getControllableValue(), AuxKernel::getDependObjects(), MultiApp::getExecutioner(), OutputWarehouse::getFileNumbers(), SolutionUserObject::getLocalVarIndex(), AuxKernel::getMaterialProperty(), SubProblem::getMaterialPropertyBlockNames(), SubProblem::getMaterialPropertyBoundaryNames(), AuxKernel::getMaterialPropertyOld(), AuxKernel::getMaterialPropertyOlder(), OutputWarehouse::getOutput(), Transient::getTimeStepperName(), InitialCondition::getUserObject(), AuxKernel::getUserObject(), InitialCondition::getUserObjectByName(), AuxKernel::getUserObjectByName(), AdvancedOutput::hasOutputHelper(), FEProblemBase::init(), CSVReader::initialize(), MultiAppProjectionTransfer::initialSetup(), InitialCondition::initialSetup(), SolutionUserObject::initialSetup(), AdvancedOutput::initOutputList(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), Material::initStatefulProperties(), Function::integral(), IntegratedBC::IntegratedBC(), InterfaceKernel::InterfaceKernel(), KernelBase::KernelBase(), LinearCombinationFunction::LinearCombinationFunction(), Marker::Marker(), MaterialDerivativeTestKernelBase< T >::MaterialDerivativeTestKernelBase(), MaterialVectorPostprocessor::MaterialVectorPostprocessor(), ElementDeleterBase::modify(), NodalBC::NodalBC(), NodalEqualValueConstraint::NodalEqualValueConstraint(), NodalKernel::NodalKernel(), NodalValueSampler::NodalValueSampler(), NodalVariableValue::NodalVariableValue(), DOFMapOutput::output(), AdvancedOutput::outputElementalVariables(), AdvancedOutput::outputInput(), AdvancedOutput::outputNodalVariables(), ConsoleUtils::outputOutputInformation(), Nemesis::outputPostprocessors(), Exodus::outputPostprocessors(), AdvancedOutput::outputPostprocessors(), AdvancedOutput::outputScalarVariables(), AdvancedOutput::outputSystemInformation(), AdvancedOutput::outputVectorPostprocessors(), MooseObject::parameters(), Executioner::parentOutputPositionChanged(), ParsedAddSideset::ParsedAddSideset(), ParsedAux::ParsedAux(), ParsedODEKernel::ParsedODEKernel(), ParsedSubdomainMeshModifier::ParsedSubdomainMeshModifier(), PointSamplerBase::PointSamplerBase(), SubProblem::registerRecoverableData(), SubProblem::registerRestartableData(), Material::resetQpProperties(), Sampler::Sampler(), ScalarComponentIC::ScalarComponentIC(), MooseMesh::setBoundaryName(), Control::setControllableValue(), OutputWarehouse::setFileNumbers(), MooseMesh::setSubdomainName(), Split::setup(), TransientMultiApp::setupApp(), SideValueSampler::SideValueSampler(), TransientMultiApp::solveStep(), UserObject::spatialValue(), SphericalAverage::SphericalAverage(), StitchedMesh::StitchedMesh(), Function::timeDerivative(), TransientMultiApp::TransientMultiApp(), MultiAppTransfer::variableIntegrityCheck(), VariableResidual::VariableResidual(), and AdvancedOutput::wantOutput().

47 { return _name; }
const std::string & _name
The name of this object, reference to value stored in InputParameters.
Definition: MooseObject.h:114
const InputParameters& MooseObject::parameters ( ) const
inlineinherited
virtual void TimeStepper::postExecute ( )
inlinevirtualinherited

Definition at line 45 of file TimeStepper.h.

45 {}
virtual void TimeStepper::postSolve ( )
inlinevirtualinherited

Definition at line 44 of file TimeStepper.h.

44 {}
virtual void TimeStepper::postStep ( )
inlinevirtualinherited

Reimplemented in FunctionDT.

Definition at line 47 of file TimeStepper.h.

47 {}
void TimeStepper::preExecute ( )
virtualinherited

Reimplemented in AB2PredictorCorrector, DT2, IterationAdaptiveDT, and FunctionDT.

Definition at line 65 of file TimeStepper.C.

Referenced by FunctionDT::preExecute(), IterationAdaptiveDT::preExecute(), DT2::preExecute(), and AB2PredictorCorrector::preExecute().

66 {
67  // Delete all sync times that are at or before the begin time
68  while (!_sync_times.empty() && _time + _timestep_tolerance >= *_sync_times.begin())
69  _sync_times.erase(_sync_times.begin());
70 }
Real & _timestep_tolerance
Definition: TimeStepper.h:138
std::set< Real > & _sync_times
Definition: TimeStepper.h:136
Real & _time
Values from executioner.
Definition: TimeStepper.h:129
virtual void TimeStepper::preSolve ( )
inlinevirtualinherited

Reimplemented in AB2PredictorCorrector, and DT2.

Definition at line 43 of file TimeStepper.h.

43 {}
virtual void TimeStepper::preStep ( )
inlinevirtualinherited

Definition at line 46 of file TimeStepper.h.

46 {}
void TimeStepper::rejectStep ( )
virtualinherited

This gets called when time step is rejected.

Reimplemented in DT2, IterationAdaptiveDT, SolutionTimeAdaptiveDT, and FunctionDT.

Definition at line 175 of file TimeStepper.C.

Referenced by TimeStepper::postStep(), FunctionDT::rejectStep(), SolutionTimeAdaptiveDT::rejectStep(), and IterationAdaptiveDT::rejectStep().

176 {
177  _converged = false;
179 }
FEProblemBase & _fe_problem
Definition: TimeStepper.h:124
virtual void restoreSolutions()
bool _converged
Whether or not the previous solve converged.
Definition: TimeStepper.h:144
void TimeSequenceStepperBase::setupSequence ( const std::vector< Real > &  times)
inherited

Definition at line 35 of file TimeSequenceStepperBase.C.

Referenced by ExodusTimeSequenceStepper(), TimeSequenceStepper::init(), and CSVTimeSequenceStepper::init().

36 {
37  // In case of half transient, transient's end time needs to be reset to
38  // be able to imprint TimeSequenceStepperBase's end time
39  if (_app.halfTransient())
40  _executioner.endTime() *= 2.0;
41 
42  // only set up _time_sequence if the app is _not_ recovering
43  if (!_app.isRecovering())
44  {
45  // also we need to do something different when restarting
46  if (!_app.isRestarting())
47  {
48  // sync _executioner.startTime and endTime with _time_sequence
49  Real start_time = _executioner.getStartTime();
50  Real end_time = _executioner.endTime();
51 
52  // make sure time sequence is in ascending order
53  for (unsigned int j = 0; j < times.size() - 1; ++j)
54  if (times[j + 1] <= times[j])
55  mooseError("time_sequence must be in ascending order.");
56 
57  _time_sequence.push_back(start_time);
58  for (unsigned int j = 0; j < times.size(); ++j)
59  {
60  if (times[j] > start_time && times[j] < end_time)
61  _time_sequence.push_back(times[j]);
62  }
63  _time_sequence.push_back(end_time);
64  }
65  else
66  {
67  // in case of restart it should be allowed to modify _time_sequence if it follows the
68  // following rule:
69  // all times up to _current_step are identical
70  // 1. start time cannot be modified
71  // 2. the entries in _time_sequence and times must be equal up to entry with index
72  // _current_step
73 
75  mooseError("Timesequencestepper does not allow the start time to be modified.");
76 
77  // sync _executioner.endTime with _time_sequence
78  Real end_time = _executioner.endTime();
79 
80  // make sure time sequence is in ascending order
81  for (unsigned int j = 0; j < times.size() - 1; ++j)
82  if (times[j + 1] <= times[j])
83  mooseError("time_sequence must be in ascending order.");
84 
85  // save the restarted time_sequence
86  std::vector<Real> saved_time_sequence = _time_sequence;
87  _time_sequence.clear();
88 
89  // step 1: fill in the entries up to _current_step
90  for (unsigned int j = 0; j <= _current_step; ++j)
91  {
92  if (!MooseUtils::absoluteFuzzyEqual(times[j], saved_time_sequence[j]))
93  mooseError("The timesequence provided in the restart file must be identical to "
94  "the one in the old file up to entry number ",
95  _current_step + 1,
96  " = ",
97  saved_time_sequence[_current_step]);
98 
99  _time_sequence.push_back(saved_time_sequence[j]);
100  }
101 
102  // step 2: fill in the entries up after _current_step
103  for (unsigned int j = _current_step + 1; j < times.size(); ++j)
104  {
105  if (times[j] < end_time)
106  _time_sequence.push_back(times[j]);
107  }
108  _time_sequence.push_back(end_time);
109  }
110  }
111 
112  if (_app.halfTransient())
113  {
114  unsigned int half = (_time_sequence.size() - 1) / 2;
116  }
117 }
bool isRecovering() const
Whether or not this is a "recover" calculation.
Definition: MooseApp.C:608
unsigned int & _current_step
the step that the time stepper is currently at
Transient & _executioner
Reference to transient executioner.
Definition: TimeStepper.h:126
bool halfTransient()
Whether or not this simulation should only run half its transient (useful for testing recovery) ...
Definition: MooseApp.h:339
Real getStartTime()
Return the start time.
Definition: Transient.h:166
std::vector< Real > & _time_sequence
stores the sequence of time points
Real & endTime()
Get the end time.
Definition: Transient.h:172
MooseApp & _app
The MooseApp this object is associated with.
Definition: MooseObject.h:108
bool absoluteFuzzyEqual(const libMesh::Real &var1, const libMesh::Real &var2, const libMesh::Real &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
void mooseError(Args &&...args) const
Definition: MooseObject.h:80
bool isRestarting() const
Whether or not this is a "restart" calculation.
Definition: MooseApp.C:614
void TimeSequenceStepperBase::step ( )
overridevirtualinherited

Take a time step.

Reimplemented from TimeStepper.

Definition at line 120 of file TimeSequenceStepperBase.C.

Referenced by TimeSequenceStepperBase::init().

121 {
123  if (converged())
124  _current_step++;
125 }
unsigned int & _current_step
the step that the time stepper is currently at
virtual void step()
Take a time step.
Definition: TimeStepper.C:158
virtual bool converged()
If the time step converged.
Definition: TimeStepper.C:182

Member Data Documentation

MooseApp& MooseObject::_app
protectedinherited

The MooseApp this object is associated with.

Definition at line 108 of file MooseObject.h.

Referenced by AB2PredictorCorrector::AB2PredictorCorrector(), Executioner::addAttributeReporter(), FEProblemBase::addMaterial(), FEProblemBase::addMultiApp(), FEProblemBase::allowOutput(), AStableDirk4::AStableDirk4(), FileMesh::buildMesh(), FEProblemBase::checkNonlinearConvergence(), OversampleOutput::cloneMesh(), FEProblemBase::computeJacobian(), FEProblemBase::computeResidualType(), Console::Console(), TimeStepper::constrainStep(), MultiApp::createApp(), EigenExecutionerBase::EigenExecutionerBase(), EigenKernel::EigenKernel(), InversePowerMethod::execute(), NonlinearEigen::execute(), Transient::execute(), Steady::execute(), FileOutput::FileOutput(), FEProblemBase::forceOutput(), MooseObject::getMooseApp(), InversePowerMethod::init(), NonlinearEigen::init(), Transient::init(), Steady::init(), MooseMesh::init(), NumPicardIterations::initialize(), TimePeriod::initialSetup(), Console::initialSetup(), MultiApp::initialSetup(), FEProblemBase::initialSetup(), AdvancedOutput::initOutputList(), FEProblemBase::initPetscOutput(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), InversePowerMethod::InversePowerMethod(), MooseObject::mooseError(), MooseMesh::MooseMesh(), NonlinearEigen::NonlinearEigen(), Tecplot::output(), Exodus::output(), Nemesis::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Exodus::outputEmptyTimestep(), Console::outputInput(), Exodus::outputInput(), Exodus::outputNodalVariables(), OversampleOutput::outputStep(), Output::outputStep(), FEProblemBase::outputStep(), Console::outputSystemInformation(), MultiApp::parentOutputPositionChanged(), PerformanceData::PerformanceData(), PetscOutput::petscLinearOutput(), PetscOutput::petscNonlinearOutput(), SubProblem::registerRecoverableData(), SubProblem::registerRestartableData(), FEProblemBase::setRestartFile(), TransientMultiApp::setupApp(), TimeSequenceStepperBase::setupSequence(), Transient::setupTimeIntegrator(), TransientMultiApp::solveStep(), FEProblemBase::subdomainSetup(), TimeExtremeValue::TimeExtremeValue(), TimePeriod::TimePeriod(), FEProblemBase::timestepSetup(), Transient::Transient(), and Console::write().

const ConsoleStream ConsoleStreamInterface::_console
inherited

An instance of helper class to write streams to the Console objects.

Definition at line 37 of file ConsoleStreamInterface.h.

Referenced by IterationAdaptiveDT::acceptStep(), CreateProblemAction::act(), SetupRecoverFileBaseAction::act(), Adaptivity::adaptMesh(), FEProblemBase::adaptMesh(), FEProblemBase::advanceMultiApps(), SimplePredictor::apply(), FEProblemBase::backupMultiApps(), FEProblemBase::checkProblemIntegrity(), IterationAdaptiveDT::computeAdaptiveDT(), Transient::computeConstrainedDT(), NonlinearSystemBase::computeDamping(), IterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeFailedDT(), IterationAdaptiveDT::computeInterpolationDT(), FEProblemBase::computeResidualType(), IterationAdaptiveDT::constrainStep(), TimeStepper::constrainStep(), AB2PredictorCorrector::converged(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), MultiAppPostprocessorTransfer::execute(), MultiAppPostprocessorInterpolationTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), MultiAppUserObjectTransfer::execute(), MultiAppInterpolationTransfer::execute(), MultiAppMeshFunctionTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppCopyTransfer::execute(), Steady::execute(), MultiAppDTKUserObjectTransfer::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), MultiApp::globalAppToLocal(), InversePowerMethod::init(), NonlinearEigen::init(), Steady::init(), FEProblemBase::initialAdaptMesh(), FEProblemBase::initialSetup(), EigenExecutionerBase::inversePowerIteration(), Transient::keepGoing(), IterationAdaptiveDT::limitDTByFunction(), IterationAdaptiveDT::limitDTToPostprocessorValue(), EigenExecutionerBase::makeBXConsistent(), Console::meshChanged(), MooseObject::mooseDeprecated(), MooseObject::mooseInfo(), MooseObject::mooseWarning(), DOFMapOutput::output(), VariableResidualNormsDebugOutput::output(), Console::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Console::outputInput(), Console::outputPostprocessors(), Console::outputScalarVariables(), Console::outputSystemInformation(), FEProblemBase::possiblyRebuildGeomSearchPatches(), EigenExecutionerBase::postExecute(), ActionWarehouse::printActionDependencySets(), EigenExecutionerBase::printEigenvalue(), MaterialPropertyDebugOutput::printMaterialMap(), SolutionTimeAdaptiveDT::rejectStep(), DT2::rejectStep(), FEProblemBase::restoreMultiApps(), SimplePredictor::shouldApply(), NonlinearSystem::solve(), LStableDirk2::solve(), LStableDirk3::solve(), ImplicitMidpoint::solve(), ExplicitTVDRK2::solve(), AStableDirk4::solve(), LStableDirk4::solve(), ExplicitRK2::solve(), TransientMultiApp::solveStep(), Transient::solveStep(), DT2::step(), AB2PredictorCorrector::step(), NonlinearEigen::takeStep(), FEProblemBase::useFECache(), Console::writeTimestepInformation(), Console::writeVariableNorms(), and FEProblemBase::~FEProblemBase().

bool TimeStepper::_converged
protectedinherited
unsigned int& TimeSequenceStepperBase::_current_step
protectedinherited
Real& TimeStepper::_dt
protectedinherited
Real& TimeStepper::_dt_max
protectedinherited

Definition at line 134 of file TimeStepper.h.

Referenced by SolutionTimeAdaptiveDT::computeDT(), and TimeStepper::constrainStep().

Real& TimeStepper::_dt_min
protectedinherited
const bool& MooseObject::_enabled
protectedinherited

Reference to the "enable" InputParaemters, used by Controls for toggling on/off MooseObjects.

Definition at line 117 of file MooseObject.h.

Referenced by MooseObject::enabled().

Real& TimeStepper::_end_time
protectedinherited

Definition at line 135 of file TimeStepper.h.

Referenced by TimeStepper::constrainStep().

Transient& TimeStepper::_executioner
protectedinherited

Reference to transient executioner.

Definition at line 126 of file TimeStepper.h.

Referenced by IterationAdaptiveDT::acceptStep(), and TimeSequenceStepperBase::setupSequence().

FEProblemBase& TimeStepper::_fe_problem
protectedinherited
bool TimeStepper::_has_reset_dt
protectedinherited

True if dt has been reset.

Definition at line 150 of file TimeStepper.h.

Referenced by TimeStepper::computeStep().

std::string ExodusTimeSequenceStepper::_mesh_file
protected

The ExodusII file that is being read.

Definition at line 36 of file ExodusTimeSequenceStepper.h.

Referenced by ExodusTimeSequenceStepper().

const std::string& MooseObject::_name
protectedinherited
const InputParameters& MooseObject::_pars
protectedinherited
bool TimeStepper::_reset_dt
protectedinherited

If true then the next dt will be computed by computeInitialDT()

Definition at line 147 of file TimeStepper.h.

Referenced by TimeStepper::computeStep().

std::set<Real>& TimeStepper::_sync_times
protectedinherited
int& TimeStepper::_t_step
protectedinherited
Real& TimeStepper::_time
protectedinherited
Real& TimeStepper::_time_old
protectedinherited
std::vector<Real>& TimeSequenceStepperBase::_time_sequence
protectedinherited
Real& TimeStepper::_timestep_tolerance
protectedinherited
bool& TimeStepper::_verbose
protectedinherited

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