BioCMAMC-ST
|
Structure to store hydrodynamic properties from a compartment mesh. More...
#include <cache_hydro_state.hpp>
Public Member Functions | |
PreCalculatedHydroState () | |
Default constructor. | |
~PreCalculatedHydroState ()=default | |
Default destructor. | |
PreCalculatedHydroState (const FlowMatrixType &_tm) | |
Constructor initializing with a given flow matrix. | |
PreCalculatedHydroState & | operator= (PreCalculatedHydroState &&rhs)=default |
Default move constructor. | |
PreCalculatedHydroState & | operator= (const PreCalculatedHydroState &rhs)=delete |
Deleted copy constructor. | |
PreCalculatedHydroState (PreCalculatedHydroState &&other)=default | |
Default move assigment. | |
PreCalculatedHydroState (const PreCalculatedHydroState &other)=delete | |
Deleted copy assigment. | |
const FlowMatrixType & | get_transition () const |
Get the transition matrix. | |
DiagonalView< ComputeSpace > | get_kernel_diagonal () const |
Get the kernel diagonal view. | |
Public Attributes | |
FlowMatrixType | transition_matrix |
Matrix representing flow transitions. | |
Eigen::Matrix< double, -1, -1, Eigen::RowMajor > | cumulative_probability |
Cumulative probability matrix. | |
std::vector< double > | inverse_volume |
Inverse of compartment volumes. | |
std::vector< double > | volume |
Volumes of compartments. | |
DiagonalView< ComputeSpace > | diagonal_compute |
Diagonal view for compute operations. | |
Friends | |
class | ProxyCalculatedHydroState |
Structure to store hydrodynamic properties from a compartment mesh.
This class is populated during the reading and processing of a Compartment-Mesh case and is later accessed during transient simulations. The primary advantage is that it allows reusing precomputed states, eliminating the need to recalculate them from the mesh. Access and modification are performed via the ProxyCalculatedHydroState class, which ensures controlled interaction with the private members of this class.
CmaUtils::PreCalculatedHydroState::PreCalculatedHydroState | ( | ) |
Default constructor.
|
default |
Default destructor.
|
explicit |
Constructor initializing with a given flow matrix.
_tm | Reference to a FlowMatrixType object. |
|
default |
Default move assigment.
|
delete |
Deleted copy assigment.
|
inlinenodiscard |
Get the kernel diagonal view.
|
nodiscard |
Get the transition matrix.
|
delete |
Deleted copy constructor.
|
default |
Default move constructor.
|
friend |
Eigen::Matrix<double, -1, -1, Eigen::RowMajor> CmaUtils::PreCalculatedHydroState::cumulative_probability |
Cumulative probability matrix.
DiagonalView<ComputeSpace> CmaUtils::PreCalculatedHydroState::diagonal_compute |
Diagonal view for compute operations.
std::vector<double> CmaUtils::PreCalculatedHydroState::inverse_volume |
Inverse of compartment volumes.
FlowMatrixType CmaUtils::PreCalculatedHydroState::transition_matrix |
Matrix representing flow transitions.
std::vector<double> CmaUtils::PreCalculatedHydroState::volume |
Volumes of compartments.