44 virtual PetscErrorCode
write(
const std::string &filePath)
const;
47 virtual PetscErrorCode
read(
const std::string &filePath);
Base (abstract) class for different solution holders.
type::Mesh mesh
Shared pointer to the underlying Cartesian mesh object.
Class to hold the velocity vector field and pressure scalar field.
virtual PetscErrorCode convert2Flux(const Mat &R)
Convert velocity components to velocity fluxes.
virtual PetscErrorCode write(const std::string &filePath) const
Write flow field solutions to a file.
virtual PetscErrorCode convert2Velocity(const Mat &Rinv)
Convert velocity fluxes to velocity components.
PetscErrorCode createInfoString()
Create a string with information about the solution.
virtual PetscErrorCode setInitialConditions(const YAML::Node &node)
Set initial conditions of the flow fields.
SolutionSimple(const type::Mesh &mesh)
Constructor using a Cartesian mesh.
virtual PetscErrorCode init(const type::Mesh &mesh)
Initialize the flow field solutions.
virtual ~SolutionSimple()
Default destructor.
virtual PetscErrorCode read(const std::string &filePath)
Read the flow field solutions from a file.
std::shared_ptr< mesh::MeshBase > Mesh
Type definition of Mesh.
Prototype of mesh::MeshBase, type::Mesh, and factory function.
A toolbox for building flow solvers.
Definition of the class petibm::solution::SolutionBase, the type definition petibm::type::Solution,...