MolSim
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SimulationFactory Class Reference

Factory class for choosing the simulation to be performed. More...

#include <SimulationFactory.h>

Static Public Member Functions

static std::unique_ptr< SimulationcreateSimulation (ParticleContainer &pc, Arguments &args, Thermostat &t, FlowSimulationAnalyzer &analyzer)
 Returns a unique pointer to the desired simulation while passing a ParticleContainer as input.
 

Detailed Description

Factory class for choosing the simulation to be performed.

Member Function Documentation

◆ createSimulation()

static std::unique_ptr< Simulation > SimulationFactory::createSimulation ( ParticleContainer pc,
Arguments args,
Thermostat t,
FlowSimulationAnalyzer analyzer 
)
static

Returns a unique pointer to the desired simulation while passing a ParticleContainer as input.

Parameters
pcThe ParticleContainer to be used for the simulation.
argsThe program and simulation arguments to be passed to the Simulation constructor.
tThe Thermostat used in the simulation.
analyzerThe FlowSimulationAnalyzer used in the simulation.
Returns
A std::unique_ptr<Simulation> instance matching the desired simulation type.

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