PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
|
Simple structures to hold flow field solutions. More...
Namespaces | |
namespace | petibm::solution |
Collection of classes and functions regarding solution holders. | |
Classes | |
class | petibm::solution::SolutionBase |
Base (abstract) class for different solution holders. More... | |
class | petibm::solution::SolutionSimple |
Class to hold the velocity vector field and pressure scalar field. More... | |
Typedefs | |
typedef std::shared_ptr< solution::SolutionBase > | petibm::type::Solution |
Type definition of solution object. More... | |
Functions | |
PetscErrorCode | petibm::solution::createSolution (const type::Mesh &mesh, type::Solution &solution) |
Factory function to create a petibm::solution::Solution object. More... | |
Simple structures to hold flow field solutions.
Objects hold the solution of the pressure scalar field and the velocity vector field. These flow fields are stored in distributed PETSc Vec objects. Objects also handles I/O of the flow field solutions.
petibm::solution::SolutionSimple is currently the only adaptation of the abstract class petibm::solution::SolutionBase. API users should use the type definition petibm::solution::Solution to create a solution object through the factory function petibm::solution::createSolution. Flow solvers implemented in PetIBM currently do not need other functionalities than those available in the abstract class and its only adaptation. We use an abstract class for the potential of expanding this category in the future.
typedef std::shared_ptr<solution::SolutionBase> petibm::type::Solution |
Type definition of solution object.
Users should use the function petibm::solution::createSolution to create a petibm::solution::Solution object.
Example usage:
Definition at line 210 of file solution.h.
PetscErrorCode petibm::solution::createSolution | ( | const type::Mesh & | mesh, |
type::Solution & | solution | ||
) |
Factory function to create a petibm::solution::Solution object.
The function create a solution object based on the provided underlying Cartesian mesh.
mesh | [in] Cartesian mesh object. |
solution | [out] Solution object. |
Definition at line 65 of file solution.cpp.