simulator.hh
Go to the documentation of this file.
94 // \Note: too small eps can not rule out confusion from the rounding errors, as we use 1.e-9 as a minimum.
161 OPM_END_PARALLEL_TRY_CATCH("Adding LGRs to the simulation vanguard in serial run failed: ", comm);
#define OPM_END_PARALLEL_TRY_CATCH(prefix, comm) Catch exception and throw in a parallel try-catch clause. Definition: DeferredLoggingErrorHelpers.hpp:192 #define OPM_BEGIN_PARALLEL_TRY_CATCH() Macro to setup the try of a parallel try-catch. Definition: DeferredLoggingErrorHelpers.hpp:158 Defines a type tags and some fundamental properties all models. Definition: ReservoirCouplingMaster.hpp:35 Definition: ReservoirCouplingSlave.hpp:35 void serializeBegin(Simulator &simulator) Write the current state of the model to disk. Definition: restart.hpp:92 const std::string & fileName() const Returns the name of the file which is (de-)serialized. Definition: restart.hpp:85 void deserializeBegin(Simulator &simulator, Scalar t) Start reading a restart file at a certain simulated time. Definition: restart.hpp:147 Manages the initializing and running of time dependent problems. Definition: simulator.hh:84 const Timer & writeTimer() const Returns a reference to the timer object which measures the time needed to write the visualization out... Definition: simulator.hh:384 Scalar timeStepSize() const Returns the time step length so that we don't miss the beginning of the next episode or cross the en... Definition: simulator.hh:413 Scalar startTime() const Return the time of the start of the simulation. Definition: simulator.hh:286 int timeStepIndex() const Returns number of time steps which have been executed since the beginning of the simulation. Definition: simulator.hh:420 void serialize() This method writes the complete state of the simulation to the harddisk. Definition: simulator.hh:861 Scalar episodeLength() const Returns the length of the current episode in simulated time . Definition: simulator.hh:530 const Timer & prePostProcessTimer() const Returns a reference to the timer object which measures the time needed for pre- and postprocessing of... Definition: simulator.hh:356 const Timer & solveTimer() const Returns a reference to the timer object which measures the time needed by the solver. Definition: simulator.hh:370 void startNextEpisode(Scalar len=std::numeric_limits< Scalar >::max()) Start the next episode, but don't change the episode identifier. Definition: simulator.hh:488 void setReservoirCouplingSlave(ReservoirCouplingSlave *reservoirCouplingSlave) Definition: simulator.hh:841 const Vanguard & vanguard() const Return a reference to the grid manager of simulation. Definition: simulator.hh:240 void serialize(Restarter &restarter) Write the time manager's state to a restart file. Definition: simulator.hh:886 const Timer & updateTimer() const Returns a reference to the timer object which measures the time needed to the solutions of the non-li... Definition: simulator.hh:377 const Timer & executionTimer() const Returns a reference to the timer object which measures the time needed to run the simulation. Definition: simulator.hh:346 void startNextEpisode(Scalar episodeStartTime, Scalar episodeLength) Change the current episode of the simulation. Definition: simulator.hh:474 void setEndTime(Scalar t) Set the time of simulated seconds at which the simulation runs. Definition: simulator.hh:325 const Timer & linearizeTimer() const Returns a reference to the timer object which measures the time needed for linarizing the solutions. Definition: simulator.hh:363 void setStartTime(Scalar t) Set the time of the start of the simulation. Definition: simulator.hh:280 void deserialize(Restarter &restarter) Read the time manager's state from a restart file. Definition: simulator.hh:907 Simulator(Communication comm, bool verbose=true) Definition: simulator.hh:107 ReservoirCouplingMaster * reservoirCouplingMaster() const Definition: simulator.hh:829 void setTimeStepSize(Scalar value) Set the current time step size to a given value. Definition: simulator.hh:397 bool episodeStarts() const Returns true if the current episode has just been started at the current time. Definition: simulator.hh:537 void run() Runs the simulation using a given problem class. Definition: simulator.hh:592 Vanguard & vanguard() Return a reference to the grid manager of simulation. Definition: simulator.hh:234 int episodeIndex() const Returns the index of the current episode. Definition: simulator.hh:508 void setTimeStepIndex(unsigned value) Set the current time step index to a given value. Definition: simulator.hh:405 ReservoirCouplingSlave * reservoirCouplingSlave() const Definition: simulator.hh:833 void setFinished(bool yesno=true) Specify whether the simulation is finished. Definition: simulator.hh:430 Problem & problem() Return the object which specifies the pysical setup of the simulation. Definition: simulator.hh:265 static void registerParameters() Registers all runtime parameters used by the simulation. Definition: simulator.hh:214 void setTime(Scalar t) Set the current simulated time, don't change the current time step index. Definition: simulator.hh:295 bool willBeFinished() const Returns true if the simulation is finished after the time level is incremented by the current time st... Definition: simulator.hh:449 bool finished() const Returns true if the simulation is finished. Definition: simulator.hh:439 Scalar maxTimeStepSize() const Aligns the time step size to the episode boundary and to the end time of the simulation. Definition: simulator.hh:458 const Model & model() const Return the physical model used in the simulation. Definition: simulator.hh:258 void setTime(Scalar t, unsigned stepIdx) Set the current simulated time and the time step index. Definition: simulator.hh:304 bool episodeIsOver() const Returns true if the current episode is finished at the current time. Definition: simulator.hh:546 Scalar endTime() const Returns the number of (simulated) seconds which the simulation runs. Definition: simulator.hh:332 Simulator(const Simulator &)=delete bool episodeWillBeOver() const Returns true if the current episode will be finished after the current time step. Definition: simulator.hh:555 const GridView & gridView() const Return the grid view for which the simulation is done. Definition: simulator.hh:246 void setEpisodeIndex(int episodeIdx) Sets the index of the current episode. Definition: simulator.hh:500 Scalar time() const Return the number of seconds of simulated time which have elapsed since the start time. Definition: simulator.hh:317 void setReservoirCouplingMaster(ReservoirCouplingMaster *reservoirCouplingMaster) Definition: simulator.hh:837 void setEpisodeLength(Scalar dt) Sets the length in seconds of the current episode. Definition: simulator.hh:523 const Problem & problem() const Return the object which specifies the pysical setup of the simulation. Definition: simulator.hh:272 Model & model() Return the physical model used in the simulation. Definition: simulator.hh:252 Scalar episodeMaxTimeStepSize() const Aligns the time step size to the episode boundary if the current time step crosses the boundary of th... Definition: simulator.hh:565 Scalar episodeStartTime() const Returns the absolute time when the current episode started . Definition: simulator.hh:515 const Timer & setupTimer() const Returns a reference to the timer object which measures the time needed to set up and initialize the s... Definition: simulator.hh:339 A simple class which makes sure that a timer gets stopped if an exception is thrown. Definition: timerguard.hh:42 double realTimeElapsed() const Return the real time [s] elapsed during the periods the timer was active since the last reset. Declare the properties used by the infrastructure code of the finite volume discretizations. Definition: blackoilboundaryratevector.hh:39 std::string humanReadableTime(double timeInSeconds, bool isAmendment=true) Given a time step size in seconds, return it in a format which is more easily parsable by humans. typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(.... Definition: propertysystem.hh:233 This file provides the infrastructure to retrieve run-time parameters. The Opm property system, traits with inheritance. |