|
VirtualFluids 0.2.0
Parallel CFD LBM Solver
|
#include <Simulation.h>
Public Member Functions | |
| Simulation (std::shared_ptr< Parameter > para, std::shared_ptr< GridBuilder > builder, const BoundaryConditionFactory *bcFactory, GridScalingFactory *scalingFactory=nullptr) | |
| Simulation (std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > memoryManager, std::shared_ptr< GridBuilder > builder, const BoundaryConditionFactory *bcFactory, GridScalingFactory *scalingFactory=nullptr) | |
| Simulation (std::shared_ptr< Parameter > para, std::shared_ptr< GridBuilder > builder, const BoundaryConditionFactory *bcFactory, SPtr< TurbulenceModelFactory > tmFactory, GridScalingFactory *scalingFactory=nullptr) | |
| Simulation (std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > memoryManager, std::shared_ptr< GridBuilder > builder, const BoundaryConditionFactory *bcFactory, SPtr< TurbulenceModelFactory > tmFactory, GridScalingFactory *scalingFactory=nullptr) | |
| Simulation (std::shared_ptr< Parameter > para, std::shared_ptr< CudaMemoryManager > memoryManager, vf::parallel::Communicator &communicator, GridProvider &gridProvider, const BoundaryConditionFactory *bcFactory, GridScalingFactory *scalingFactory=nullptr) | |
| ~Simulation () | |
| void | run () |
| void | setFactories (std::unique_ptr< KernelFactory > &&kernelFactory, std::unique_ptr< PreProcessorFactory > &&preProcessorFactory) |
| void | setDataWriter (std::shared_ptr< DataWriter > dataWriter) |
| void | addKineticEnergyAnalyzer (uint tAnalyse) |
| void | addEnstrophyAnalyzer (uint tAnalyse) |
| void | calculateTimestep (uint timestep) |
| can be used as an alternative to run(), if the simulation needs to be controlled from the outside (e. g. for fluid structure interaction FSI) | |
| void | initTimers () |
| needed to initialize the simulation timers if calculateTimestep is used instead of run() | |
| void | finalize () |
| finalize simulation. Only needs to be called when using calculateTimestep! | |
Definition at line 74 of file Simulation.h.
| Simulation::Simulation | ( | std::shared_ptr< Parameter > | para, |
| std::shared_ptr< GridBuilder > | builder, | ||
| const BoundaryConditionFactory * | bcFactory, | ||
| GridScalingFactory * | scalingFactory = nullptr |
||
| ) |
Definition at line 100 of file Simulation.cpp.
| Simulation::Simulation | ( | std::shared_ptr< Parameter > | para, |
| std::shared_ptr< CudaMemoryManager > | memoryManager, | ||
| std::shared_ptr< GridBuilder > | builder, | ||
| const BoundaryConditionFactory * | bcFactory, | ||
| GridScalingFactory * | scalingFactory = nullptr |
||
| ) |
Definition at line 106 of file Simulation.cpp.
| Simulation::Simulation | ( | std::shared_ptr< Parameter > | para, |
| std::shared_ptr< GridBuilder > | builder, | ||
| const BoundaryConditionFactory * | bcFactory, | ||
| SPtr< TurbulenceModelFactory > | tmFactory, | ||
| GridScalingFactory * | scalingFactory = nullptr |
||
| ) |
Definition at line 112 of file Simulation.cpp.
| Simulation::Simulation | ( | std::shared_ptr< Parameter > | para, |
| std::shared_ptr< CudaMemoryManager > | memoryManager, | ||
| std::shared_ptr< GridBuilder > | builder, | ||
| const BoundaryConditionFactory * | bcFactory, | ||
| SPtr< TurbulenceModelFactory > | tmFactory, | ||
| GridScalingFactory * | scalingFactory = nullptr |
||
| ) |
Definition at line 119 of file Simulation.cpp.
| Simulation::Simulation | ( | std::shared_ptr< Parameter > | para, |
| std::shared_ptr< CudaMemoryManager > | memoryManager, | ||
| vf::parallel::Communicator & | communicator, | ||
| GridProvider & | gridProvider, | ||
| const BoundaryConditionFactory * | bcFactory, | ||
| GridScalingFactory * | scalingFactory = nullptr |
||
| ) |
Definition at line 136 of file Simulation.cpp.
| Simulation::~Simulation | ( | ) |
Definition at line 743 of file Simulation.cpp.
Definition at line 359 of file Simulation.cpp.
Definition at line 354 of file Simulation.cpp.
can be used as an alternative to run(), if the simulation needs to be controlled from the outside (e. g. for fluid structure interaction FSI)
Definition at line 444 of file Simulation.cpp.
| void Simulation::finalize | ( | ) |
finalize simulation. Only needs to be called when using calculateTimestep!
Definition at line 596 of file Simulation.cpp.
| void Simulation::initTimers | ( | ) |
needed to initialize the simulation timers if calculateTimestep is used instead of run()
Definition at line 376 of file Simulation.cpp.
| void Simulation::run | ( | ) |
Definition at line 395 of file Simulation.cpp.
| void Simulation::setDataWriter | ( | std::shared_ptr< DataWriter > | dataWriter | ) |
Definition at line 364 of file Simulation.cpp.
| void Simulation::setFactories | ( | std::unique_ptr< KernelFactory > && | kernelFactory, |
| std::unique_ptr< PreProcessorFactory > && | preProcessorFactory | ||
| ) |
Definition at line 369 of file Simulation.cpp.