SPH
Classes | Functions
IRun.cpp File Reference
#include "run/IRun.h"
#include "io/LogWriter.h"
#include "io/Logger.h"
#include "io/Output.h"
#include "physics/Integrals.h"
#include "quantities/IMaterial.h"
#include "run/Trigger.h"
#include "sph/Diagnostics.h"
#include "sph/boundary/Boundary.h"
#include "system/Factory.h"
#include "system/Statistics.h"
#include "system/Timer.h"
#include "thread/Pool.h"
#include "timestepping/ISolver.h"
#include "timestepping/TimeStepping.h"

Go to the source code of this file.

Classes

struct  EndingCondition
 
class  DiagnosticsTrigger
 
class  NullRunCallbacks
 
class  IOutputTime
 
class  LinearOutputTime
 
class  LogarithmicOutputTime
 
class  CustomOutputTime
 
class  SimpleRun
 

Functions

AutoPtr< IOutputTimegetOutputTimes (const RunSettings &settings)
 
Outcome doRun (Storage &storage, const RunSettings &settings)
 Runs a simulation using provided storage as initial conditions. More...
 

Function Documentation

◆ doRun()

Outcome doRun ( Storage storage,
const RunSettings settings 
)

Runs a simulation using provided storage as initial conditions.

This function is a simple alternative to implementing the IRun interface. By providing the initial conditions and settings that specify the solver, timestepping, end time, etc., functions run the simulation and updates the Storage object with computed values of quantities.

Parameters
storageInput/output storage containing initial conditions
settingsParameters of the simulation
Returns
SUCCESS if computed successfully, otherwise an error message.

Definition at line 348 of file IRun.cpp.

◆ getOutputTimes()

AutoPtr<IOutputTime> getOutputTimes ( const RunSettings settings)

Definition at line 173 of file IRun.cpp.