PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
|
Class to hold the velocity vector field and pressure scalar field. More...
#include <solutionsimple.h>
Public Member Functions | |
SolutionSimple (const type::Mesh &mesh) | |
Constructor using a Cartesian mesh. More... | |
virtual | ~SolutionSimple () |
Default destructor. More... | |
virtual PetscErrorCode | setInitialConditions (const YAML::Node &node) |
Set initial conditions of the flow fields. More... | |
virtual PetscErrorCode | convert2Velocity (const Mat &Rinv) |
Convert velocity fluxes to velocity components. More... | |
virtual PetscErrorCode | convert2Flux (const Mat &R) |
Convert velocity components to velocity fluxes. More... | |
virtual PetscErrorCode | write (const std::string &filePath) const |
Write flow field solutions to a file. More... | |
virtual PetscErrorCode | read (const std::string &filePath) |
Read the flow field solutions from a file. More... | |
virtual PetscErrorCode | destroy () |
Manually destroy data. More... | |
PetscErrorCode | printInfo () const |
Print information about the solution to standard output. More... | |
Public Attributes | |
PetscInt | dim |
Number of dimensions. More... | |
Vec | UGlobal |
Packed PETSc Vec object for the velocity vector field. More... | |
Vec | pGlobal |
PETSc Vec for the pressure scalar field. More... | |
std::string | info |
String containing information about the solution. More... | |
Protected Member Functions | |
virtual PetscErrorCode | init (const type::Mesh &mesh) |
Initialize the flow field solutions. More... | |
PetscErrorCode | createInfoString () |
Create a string with information about the solution. More... | |
Protected Attributes | |
MPI_Comm | comm |
MPI communicator. More... | |
PetscMPIInt | mpiSize |
Size of MPI communicator. More... | |
PetscMPIInt | mpiRank |
Rank of the local process. More... | |
type::Mesh | mesh |
Shared pointer to the underlying Cartesian mesh object. More... | |
Class to hold the velocity vector field and pressure scalar field.
Definition at line 25 of file solutionsimple.h.
petibm::solution::SolutionSimple::SolutionSimple | ( | const type::Mesh & | mesh | ) |
Constructor using a Cartesian mesh.
mesh | [in] Cartesian mesh object. |
Definition at line 24 of file solutionsimple.cpp.
|
virtualdefault |
Default destructor.
|
virtual |
Convert velocity components to velocity fluxes.
It assumes that UGlobal currently contains velocity components and converts (inplace) to velocity fluxes.
R | [in] Operator to convert components to fluxes. |
Implements petibm::solution::SolutionBase.
Definition at line 106 of file solutionsimple.cpp.
|
virtual |
Convert velocity fluxes to velocity components.
It assumes that UGlobal currently contains velocity fluxes and converts (inplace) to velocity components.
Rinv | [in] Operator to convert fluxes to components. |
Implements petibm::solution::SolutionBase.
Definition at line 90 of file solutionsimple.cpp.
|
protected |
Create a string with information about the solution.
Definition at line 60 of file solutionsimple.cpp.
|
virtualinherited |
|
protectedvirtual |
Initialize the flow field solutions.
mesh | [in] Cartesian mesh object. |
Implements petibm::solution::SolutionBase.
Definition at line 30 of file solutionsimple.cpp.
|
inherited |
Print information about the solution to standard output.
Definition at line 53 of file solution.cpp.
|
virtual |
Read the flow field solutions from a file.
Currently only supports HDF5 format.
filePath | [in] Path of the file to read from. |
Implements petibm::solution::SolutionBase.
Definition at line 262 of file solutionsimple.cpp.
|
virtual |
Set initial conditions of the flow fields.
node | [in] YAML node with flow settings. |
Implements petibm::solution::SolutionBase.
Definition at line 122 of file solutionsimple.cpp.
|
virtual |
Write flow field solutions to a file.
Currently only supports HDF5 format.
filePath | [in] Path of the file to write in. |
Implements petibm::solution::SolutionBase.
Definition at line 229 of file solutionsimple.cpp.
|
protectedinherited |
MPI communicator.
Definition at line 167 of file solution.h.
|
inherited |
Number of dimensions.
Definition at line 63 of file solution.h.
|
inherited |
String containing information about the solution.
Definition at line 72 of file solution.h.
|
protectedinherited |
Shared pointer to the underlying Cartesian mesh object.
Definition at line 176 of file solution.h.
|
protectedinherited |
Rank of the local process.
Definition at line 173 of file solution.h.
|
protectedinherited |
Size of MPI communicator.
Definition at line 170 of file solution.h.
|
inherited |
PETSc Vec for the pressure scalar field.
Definition at line 69 of file solution.h.
|
inherited |
Packed PETSc Vec object for the velocity vector field.
Definition at line 66 of file solution.h.