SPH
Public Member Functions | Protected Member Functions | List of all members
Collision Class Reference
Inheritance diagram for Collision:
IRun IRun Polymorphic Polymorphic

Public Member Functions

 Collision ()
 
virtual void setUp (SharedPtr< Storage > storage) override
 Prepares the run, creates logger, output, ... More...
 
virtual void setUp (SharedPtr< Storage > storage) override
 Prepares the run, creates logger, output, ... More...
 
virtual void tearDown (const Storage &storage, const Statistics &stats) override
 Called after the run. More...
 
- Public Member Functions inherited from IRun
 IRun ()
 
 ~IRun ()
 
Statistics run (Storage &storage)
 Runs the simulation. More...
 
Statistics run (Storage &storage, IRunCallbacks &callbacks)
 Runs the simulation. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Protected Member Functions

virtual void tearDown (const Storage &storage, const Statistics &stats) override
 Called after the run. More...
 
- Protected Member Functions inherited from IRun
void setNullToDefaults (SharedPtr< Storage > storage)
 
void tearDownInternal (const Storage &storage, const Statistics &stats)
 

Additional Inherited Members

- Protected Attributes inherited from IRun
RunSettings settings
 
AutoPtr< IOutputoutput
 Data output. More...
 
SharedPtr< ILoggerlogger
 Logging. More...
 
AutoPtr< ILogWriterlogWriter
 Writes statistics into logger every timestep. More...
 
SharedPtr< ISchedulerscheduler
 Scheduler used for parallelization. More...
 
AutoPtr< ITimeSteppingtimeStepping
 Timestepping. More...
 
AutoPtr< ISolversolver
 Solver. More...
 
List< AutoPtr< ITrigger > > triggers
 Triggers. More...
 
Array< AutoPtr< IDiagnostic > > diagnostics
 Diagnostics. More...
 

Detailed Description

Definition at line 11 of file Collision.cpp.

Constructor & Destructor Documentation

◆ Collision()

Collision::Collision ( )
inline

Definition at line 13 of file Collision.cpp.

Member Function Documentation

◆ setUp() [1/2]

virtual void Collision::setUp ( SharedPtr< Storage storage)
inlineoverridevirtual

Prepares the run, creates logger, output, ...

Todo:
change to logfile

Implements IRun.

Definition at line 47 of file Collision.cpp.

◆ setUp() [2/2]

virtual void Collision::setUp ( SharedPtr< Storage storage)
inlineoverridevirtual

Prepares the run, creates logger, output, ...

Implements IRun.

Definition at line 9 of file SimpleCollision.cpp.

◆ tearDown() [1/2]

virtual void Collision::tearDown ( const Storage storage,
const Statistics stats 
)
inlineoverrideprotectedvirtual

Called after the run.

Used to save the necessary data, log run statistics, etc. Is called at the end of run function.

Parameters
statsRun statistics at the end of the run.

Implements IRun.

Definition at line 86 of file Collision.cpp.

◆ tearDown() [2/2]

virtual void Collision::tearDown ( const Storage storage,
const Statistics stats 
)
inlineoverridevirtual

Called after the run.

Used to save the necessary data, log run statistics, etc. Is called at the end of run function.

Parameters
statsRun statistics at the end of the run.

Implements IRun.

Definition at line 44 of file SimpleCollision.cpp.


The documentation for this class was generated from the following files: