|
simulator.hh
Go to the documentation of this file.
97 // \Note: too small eps can not rule out confusion from the rounding errors, as we use 1.e-9 as a minimum.
165 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:197 #define OPM_BEGIN_PARALLEL_TRY_CATCH() Macro to setup the try of a parallel try-catch. Definition: DeferredLoggingErrorHelpers.hpp:160 Defines a type tags and some fundamental properties all models. Definition: ReservoirCouplingMaster.hpp:38 Definition: ReservoirCouplingSlave.hpp:40 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:87 const Timer & writeTimer() const Returns a reference to the timer object which measures the time needed to write the visualization out... Definition: simulator.hh:392 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:421 Scalar startTime() const Return the time of the start of the simulation. Definition: simulator.hh:294 void setReservoirCouplingMaster(ReservoirCouplingMaster< Scalar > *reservoirCouplingMaster) Definition: simulator.hh:845 int timeStepIndex() const Returns number of time steps which have been executed since the beginning of the simulation. Definition: simulator.hh:428 void serialize() This method writes the complete state of the simulation to the harddisk. Definition: simulator.hh:869 Scalar episodeLength() const Returns the length of the current episode in simulated time . Definition: simulator.hh:538 const Timer & prePostProcessTimer() const Returns a reference to the timer object which measures the time needed for pre- and postprocessing of... Definition: simulator.hh:364 const Timer & solveTimer() const Returns a reference to the timer object which measures the time needed by the solver. Definition: simulator.hh:378 void startNextEpisode(Scalar len=std::numeric_limits< Scalar >::max()) Start the next episode, but don't change the episode identifier. Definition: simulator.hh:496 const Vanguard & vanguard() const Return a reference to the grid manager of simulation. Definition: simulator.hh:248 void serialize(Restarter &restarter) Write the time manager's state to a restart file. Definition: simulator.hh:894 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:385 const Timer & executionTimer() const Returns a reference to the timer object which measures the time needed to run the simulation. Definition: simulator.hh:354 void startNextEpisode(Scalar episodeStartTime, Scalar episodeLength) Change the current episode of the simulation. Definition: simulator.hh:482 void setEndTime(Scalar t) Set the time of simulated seconds at which the simulation runs. Definition: simulator.hh:333 const Timer & linearizeTimer() const Returns a reference to the timer object which measures the time needed for linarizing the solutions. Definition: simulator.hh:371 void setStartTime(Scalar t) Set the time of the start of the simulation. Definition: simulator.hh:288 ReservoirCouplingSlave< Scalar > * reservoirCouplingSlave() const Definition: simulator.hh:841 void deserialize(Restarter &restarter) Read the time manager's state from a restart file. Definition: simulator.hh:915 Simulator(Communication comm, bool verbose=true) Definition: simulator.hh:110 void setTimeStepSize(Scalar value) Set the current time step size to a given value. Definition: simulator.hh:405 bool episodeStarts() const Returns true if the current episode has just been started at the current time. Definition: simulator.hh:545 void run() Runs the simulation using a given problem class. Definition: simulator.hh:600 Vanguard & vanguard() Return a reference to the grid manager of simulation. Definition: simulator.hh:242 int episodeIndex() const Returns the index of the current episode. Definition: simulator.hh:516 void setTimeStepIndex(unsigned value) Set the current time step index to a given value. Definition: simulator.hh:413 void setFinished(bool yesno=true) Specify whether the simulation is finished. Definition: simulator.hh:438 Problem & problem() Return the object which specifies the pysical setup of the simulation. Definition: simulator.hh:273 static void registerParameters() Registers all runtime parameters used by the simulation. Definition: simulator.hh:218 void setTime(Scalar t) Set the current simulated time, don't change the current time step index. Definition: simulator.hh:303 bool willBeFinished() const Returns true if the simulation is finished after the time level is incremented by the current time st... Definition: simulator.hh:457 bool finished() const Returns true if the simulation is finished. Definition: simulator.hh:447 Scalar maxTimeStepSize() const Aligns the time step size to the episode boundary and to the end time of the simulation. Definition: simulator.hh:466 const Model & model() const Return the physical model used in the simulation. Definition: simulator.hh:266 void setTime(Scalar t, unsigned stepIdx) Set the current simulated time and the time step index. Definition: simulator.hh:312 bool episodeIsOver() const Returns true if the current episode is finished at the current time. Definition: simulator.hh:554 Scalar endTime() const Returns the number of (simulated) seconds which the simulation runs. Definition: simulator.hh:340 void setReservoirCouplingSlave(ReservoirCouplingSlave< Scalar > *reservoirCouplingSlave) Definition: simulator.hh:849 Simulator(const Simulator &)=delete ReservoirCouplingMaster< Scalar > * reservoirCouplingMaster() const Definition: simulator.hh:837 bool episodeWillBeOver() const Returns true if the current episode will be finished after the current time step. Definition: simulator.hh:563 const GridView & gridView() const Return the grid view for which the simulation is done. Definition: simulator.hh:254 void setEpisodeIndex(int episodeIdx) Sets the index of the current episode. Definition: simulator.hh:508 Scalar time() const Return the number of seconds of simulated time which have elapsed since the start time. Definition: simulator.hh:325 void setEpisodeLength(Scalar dt) Sets the length in seconds of the current episode. Definition: simulator.hh:531 const Problem & problem() const Return the object which specifies the pysical setup of the simulation. Definition: simulator.hh:280 Model & model() Return the physical model used in the simulation. Definition: simulator.hh:260 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:573 Scalar episodeStartTime() const Returns the absolute time when the current episode started . Definition: simulator.hh:523 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:347 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: blackoilbioeffectsmodules.hh:45 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. |