fvbaseproblem.hh
Go to the documentation of this file.
332 << " Linearization time: "<< Simulator::humanReadableTime(linearizeTime_, /*isAmendment=*/false)
338 << " Pre/postprocess time: " << Simulator::humanReadableTime(prePostProcessTime, /*isAmendment=*/false)
340 << " Output write time: " << Simulator::humanReadableTime(totalWriteTime, /*isAmendment=*/false)
342 << "First process' simulation CPU time: " << Simulator::humanReadableTime(localCpuTime, /*isAmendment=*/false) << "\n"
345 << "Total CPU time: " << Simulator::humanReadableTime(globalCpuTime, /*isAmendment=*/false) << "\n"
349 << (simulationTime - (linearizeTime_+solveTime_+updateTime_+prePostProcessTime+totalWriteTime))/simulationTime*100
Load or save a state of a problem to/from the harddisk. FvBaseProblem(Simulator &simulator) Definition: fvbaseproblem.hh:98 void initial(PrimaryVariables &values, const Context &context, int spaceIdx, int timeIdx) const Evaluate the initial value for a control volume. Definition: fvbaseproblem.hh:229 const Model & model() const Returns numerical model used for the problem. Definition: fvbaseproblem.hh:522 void endEpisode() Called when the end of an simulation episode is reached. Definition: fvbaseproblem.hh:302 bool shouldWriteRestartFile() const Returns true if a restart file should be written to disk. Definition: fvbaseproblem.hh:434 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:296 bool shouldWriteOutput() const Returns true if the current solution should be written to disk (i.e. as a VTK file) ... Definition: fvbaseproblem.hh:448 void deserialize(Restarter &res) This method restores the complete state of the problem from disk. Definition: fvbaseproblem.hh:569 void endTimeStep() Called by the simulator after each time integration. Definition: fvbaseproblem.hh:294 void initialSolutionApplied() Callback used by the model to indicate that the initial solution has been determined for all degrees ... Definition: fvbaseproblem.hh:261 const Ewoms::Timer & timer() const Returns the current wall time required by actually running the simulation. Definition: simulator.hh:262 Scalar solveTime() const Returns the wall time spend so far for solving the linear systems for all iterations of the current t... Definition: newtonmethod.hh:472 Declare the properties used by the infrastructure code of the finite volume discretizations. Scalar nextTimeStepSize() Called by Ewoms::Simulator whenever a solution for a time step has been computed and the simulation t... Definition: fvbaseproblem.hh:412 void beginEpisode() Called at the beginning of an simulation episode. Definition: fvbaseproblem.hh:267 #define GET_PROP_VALUE(TypeTag, PropTagName) Access the value attribute of a property for a type tag. Definition: propertysystem.hh:468 VtkMultiWriter & defaultVtkWriter() const Method to retrieve the VTK writer which should be used to write the default ouput after each time ste... Definition: fvbaseproblem.hh:605 void serialize(Restarter &res) Write the multi-writer's state to a restart file. Definition: vtkmultiwriter.hh:377 void writeOutput(bool verbose=true) Write the relevant secondary variables of the current solution into an VTK output file... Definition: fvbaseproblem.hh:581 Simulator & simulator() Returns Simulator object used by the simulation. Definition: fvbaseproblem.hh:504 Scalar extrusionFactor() const Definition: fvbaseproblem.hh:254 void serialize(Restarter &res) This method writes the complete state of the problem to the harddisk. Definition: fvbaseproblem.hh:552 void source(RateVector &rate, const Context &context, int spaceIdx, int timeIdx) const Evaluate the source term for all phases within a given sub-control-volume. Definition: fvbaseproblem.hh:213 void beginIteration() Called by the simulator before each Newton-Raphson iteration. Definition: fvbaseproblem.hh:279 const GridView & gridView() const The GridView which used by the problem. Definition: fvbaseproblem.hh:472 Scalar solveTime() const Returns the total wall time spend on solving the system [s]. Definition: fvbaseproblem.hh:159 Base class for all problems which use a finite volume spatial discretization. Definition: fvbaseproblem.hh:52 STL namespace. const VertexMapper & vertexMapper() const Returns the mapper for vertices to indices. Definition: fvbaseproblem.hh:492 int timeStepIndex() const Returns number of time steps which have been executed since the beginning of the simulation. Definition: simulator.hh:309 Scalar extrusionFactor(const Context &context, int spaceIdx, int timeIdx) const Return how much the domain is extruded at a given sub-control volume. Definition: fvbaseproblem.hh:250 void setTimeStepSize(Scalar timeStepSize) Set the current time step size to a given value. Definition: simulator.hh:288 void advanceTimeLevel() Called by the simulator after everything which can be done about the current time step is finished an... Definition: fvbaseproblem.hh:456 Scalar totalWriteTime() const Returns total wall clock time required to write the visualization and restart files over the course o... Definition: simulator.hh:269 Simplifies writing multi-file VTK datasets. Manages the initializing and running of time dependent problems. Definition: simulator.hh:73 const Simulator & simulator() const Returns Simulator object used by the simulation. Definition: fvbaseproblem.hh:510 Definition: baseauxiliarymodule.hh:35 Model & model() Returns numerical model used for the problem. Definition: fvbaseproblem.hh:516 Scalar maxTimeStepSize() const Aligns the time step size to the episode boundary and to the end time of the simulation. Definition: simulator.hh:351 void boundary(BoundaryRateVector &values, const Context &context, int spaceIdx, int timeIdx) const Evaluate the boundary conditions for a boundary segment. Definition: fvbaseproblem.hh:179 static int maxThreads() Return the maximum number of threads of the current process. Definition: threadmanager.hh:117 const GlobalPosition & boundingBoxMin() const The coordinate of the corner of the GridView's bounding box with the smallest values. Definition: fvbaseproblem.hh:479 #define EWOMS_REGISTER_PARAM(TypeTag, ParamType, ParamName, Description) Register a run-time parameter. Definition: parametersystem.hh:64 std::string name() const The problem name. Definition: fvbaseproblem.hh:466 void beginWrite(double t) Called whenever a new time step must be written. Definition: vtkmultiwriter.hh:128 void timeIntegration() Called by Ewoms::Simulator in order to do a time integration on the model. Definition: fvbaseproblem.hh:363 Model & model() Return the physical model used in the simulation. Definition: simulator.hh:176 static std::string humanReadableTime(Scalar timeInSeconds, bool isAmendment=true) Given a time step size in seconds, return it in a format which is more easily parsable by humans... Definition: simulator.hh:632 void endIteration() Called by the simulator after each Newton-Raphson update. Definition: fvbaseproblem.hh:285 Scalar time() const Return the number of seconds of simulated time which have elapsed since the start time... Definition: simulator.hh:241 void finishInit() Called by the Ewoms::Simulator in order to initialize the problem. Definition: fvbaseproblem.hh:148 Scalar updateTime() const Returns the wall time spend so far for updating the iterative solutions of the non-linear system for ... Definition: newtonmethod.hh:480 NewtonMethod & newtonMethod() Returns object which implements the Newton method. Definition: fvbaseproblem.hh:528 const NewtonMethod & newtonMethod() const Returns object which implements the Newton method. Definition: fvbaseproblem.hh:534 void finalize() Called after the simulation has been run sucessfully. Definition: fvbaseproblem.hh:312 void constraints(Constraints &constraints, const Context &context, int spaceIdx, int timeIdx) const Evaluate the constraints for a control volume. Definition: fvbaseproblem.hh:195 void beginTimeStep() Called by the simulator before each time integration. Definition: fvbaseproblem.hh:273 const GlobalPosition & boundingBoxMax() const The coordinate of the corner of the GridView's bounding box with the largest values. Definition: fvbaseproblem.hh:486 Scalar updateTime() const Returns the total wall time spend on updating the iterative solutions [s]. Definition: fvbaseproblem.hh:166 double realTimeElapsed() const Return the real time [s] elapsed. Definition: timer.hh:100 void deserialize(Restarter &res) Read the multi-writer's state from a restart file. Definition: vtkmultiwriter.hh:411 static void registerParameters() Registers all available parameters for the problem and the model. Definition: fvbaseproblem.hh:131 int episodeIndex() const Returns the index of the current episode. Definition: simulator.hh:400 double setupTime() const Returns the wall time required by setting up and initializing the simulation. Definition: simulator.hh:275 const ElementMapper & elementMapper() const Returns the mapper for elements to indices. Definition: fvbaseproblem.hh:498 void endWrite(bool onlyDiscard=false) Finalizes the current writer. Definition: vtkmultiwriter.hh:339 Scalar linearizeTime() const Returns the wall time spend so far for linearizing the non-linear system for all iterations of the cu... Definition: newtonmethod.hh:464 #define EWOMS_GET_PARAM(TypeTag, ParamType, ParamName) Retrieve a runtime parameter. Definition: parametersystem.hh:95 |