Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/volume/VolumeFactory.hpp>
Public Member Functions | |
VolumeFactory (const std::string &equation, alsfvm::shared_ptr< memory::MemoryFactory > memoryFactory) | |
alsfvm::shared_ptr< Volume > | createConservedVolume (size_t nx, size_t ny, size_t nz, size_t numberOfGhostCells=0) |
alsfvm::shared_ptr< Volume > | createExtraVolume (size_t nx, size_t ny, size_t nz, size_t numberOfGhostCells=0) |
alsfvm::shared_ptr< Volume > | createPrimitiveVolume (size_t nx, size_t ny, size_t nz, size_t numberOfGhostCells=0) |
createPrimitiveVolume creates the primitive volume for the equation, The primitive volume is often handy for stating initial data for instance. More... | |
This factory creates volumes for an equation. Both conserved and extra variables.
Here the idea is that one part of the system creates this factory then passes it along to other parts which needs to create the memory areas.
alsfvm::volume::VolumeFactory::VolumeFactory | ( | const std::string & | equation, |
alsfvm::shared_ptr< memory::MemoryFactory > | memoryFactory | ||
) |
Constructs the factory.
equation | the equation name ("euler1", "euler2", "euler3", "sw", etc.) |
memoryFactory | the memory factory to use |
alsfvm::shared_ptr< Volume > alsfvm::volume::VolumeFactory::createConservedVolume | ( | size_t | nx, |
size_t | ny, | ||
size_t | nz, | ||
size_t | numberOfGhostCells = 0 |
||
) |
Creates a new volume containing the conserved variables.
nx | the number of cells in x direction |
ny | the number of cells in y direction |
nz | the number of cells in z direction |
numberOfGhostCells | the number of ghostcells to use in each direction |
Creates a new volume containing the conserved variables.
nx | the number of cells in x direction |
ny | the number of cells in y direction |
nz | the number of cells in z direction |
alsfvm::shared_ptr< Volume > alsfvm::volume::VolumeFactory::createExtraVolume | ( | size_t | nx, |
size_t | ny, | ||
size_t | nz, | ||
size_t | numberOfGhostCells = 0 |
||
) |
Creates a new volume containing the extra variables.
nx | the number of cells in x direction |
ny | the number of cells in y direction |
nz | the number of cells in z direction |
numberOfGhostCells | the number of ghostcells to use in each direction |
Creates a new volume containing the extra variables.
nx | the number of cells in x direction |
ny | the number of cells in y direction |
nz | the number of cells in z direction |
alsfvm::shared_ptr< Volume > alsfvm::volume::VolumeFactory::createPrimitiveVolume | ( | size_t | nx, |
size_t | ny, | ||
size_t | nz, | ||
size_t | numberOfGhostCells = 0 |
||
) |
createPrimitiveVolume creates the primitive volume for the equation, The primitive volume is often handy for stating initial data for instance.
nx | the number of cells in x direction |
ny | the number of cells in y direction |
nz | the number of cells in z direction |
numberOfGhostCells | the number of ghostcells to use in each direction |