TransFlow
0.1.0
A transient pipeline flow simulation library
|
6 #include "composition.hpp"
53 const arma::vec& gridPointsIncludingEndPoint,
55 const arma::uword nBatches = 1);
63 const arma::vec& gridPointsIncludingEndPoint,
64 const std::vector<Composition>& composition);
70 std::vector<Composition>
sample()
const;
77 std::vector<Composition>
sample(
const arma::vec& locations)
const;
90 std::vector<arma::vec>
sampleToVec(
const arma::vec& locations)
const;
99 std::vector<arma::vec>
sampleInternal(
const arma::vec& locations)
const;
arma::vec m_concentration
Concentration of the Batch.
Definition: batchtrackingstate.hpp:37
std::vector< Batch > m_batches
Vector containing all batches.
Definition: batchtrackingstate.hpp:108
Batch(const double position, const arma::vec &concentration)
Construct Batch from initial position and concentration.
Definition: batchtrackingstate.hpp:31
static const Composition defaultComposition
Default composition.
Definition: composition.hpp:81
const arma::vec & concentration() const
Get the concentration of the Batch.
Definition: batchtrackingstate.hpp:43
Contains the state which BatchTracking operates on.
Definition: batchtrackingstate.hpp:14
BatchTrackingState(const arma::vec &gridPointsIncludingEndPoint, const arma::vec &concentration=Composition::defaultComposition, const arma::uword nBatches=1)
State constructor from grid points and the same concentration for all batches.
arma::vec m_gridPoints
Grid points of pipeline.
Definition: batchtrackingstate.hpp:109
std::vector< arma::vec > sampleInternal(const arma::vec &locations) const
sampleInternal Samples the composition at arbitrary locations. This is the main function that does th...
A class for calculating the time development of the gas composition from the gas velocity.
Definition: batchtracking.hpp:21
double m_position
Position of the Batch.
Definition: batchtrackingstate.hpp:36
double position() const
Get the position of the Batch.
Definition: batchtrackingstate.hpp:41
const std::vector< Batch > & batches() const
Get a const reference to the batches.
Definition: batchtrackingstate.hpp:105
Contains the information for a single batch.
Definition: batchtrackingstate.hpp:24
std::vector< arma::vec > sampleToVec() const
sampleToVec Samples the composition at locations in m_gridPoints.
std::vector< Composition > sample() const
sample Samples the composition at locations in m_gridPoints.