Go to the documentation of this file.
12 #include "libmesh/serial_mesh.h"
13 #include "libmesh/exodusII_io.h"
25 "The name of the mesh file to extract the time sequence from (must be an exodusII file).");
26 params.
addClassDescription(
"Solves the Transient problem at a sequence of time points taken from "
27 "a specified exodus file.");
35 std::vector<Real> times;
36 if (processor_id() == 0)
42 ReplicatedMesh mesh(_communicator);
44 ExodusII_IO exodusII_io(mesh);
46 times = exodusII_io.get_time_steps();
50 unsigned int num_steps = times.size();
51 _communicator.broadcast(num_steps);
52 times.resize(num_steps);
53 _communicator.broadcast(times);
Solves the PDEs at a sequence of given time points.
defineLegacyParams(ExodusTimeSequenceStepper)
std::string _mesh_file
The ExodusII file that is being read.
static InputParameters validParams()
void setupSequence(const std::vector< Real > ×)
Solves the PDEs at a sequence of time points given as a vector in the input file.
static InputParameters validParams()
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)
ExodusTimeSequenceStepper(const InputParameters ¶meters)
registerMooseObject("MooseApp", ExodusTimeSequenceStepper)