6 #ifndef COMPUTATIONAL_CELL_HPP 7 #define COMPUTATIONAL_CELL_HPP 1 13 typedef std::vector<double>
tvector;
14 typedef std::vector<bool>
svector;
16 #include "../../tessellation/geometry.hpp" 18 #include "../../misc/serializable.hpp" 84 (
const vector<double>& data);
180 (
const std::vector<std::string>&
tracers,
181 const std::vector<std::string>&
stickers);
193 #endif // COMPUTATIONAL_CELL_HPP ComputationalCell & operator*=(double s)
Self multiplication operator.
std::vector< bool > svector
std::vector< double > tvector
std::vector< std::string > sticker_names
The names of the stickers.
Class for spatial interpolations.
size_t getChunkSize(void) const
Returns the size of array needed to store all data.
tvector tracers
Tracers (can transfer from one cell to another)
Vector3D operator*(double d, Vector3D const &v)
Scalar product.
ComputationalCell xderivative
Slope in the x direction.
vector< double > serialize(void) const
Convert an object to an array of numbers.
ComputationalCell & operator=(ComputationalCell const &other)
Self decrement operator.
Vector3D operator/(Vector3D const &v, double d)
Scalar division.
ComputationalCell & operator+=(ComputationalCell const &other)
Self increment operator.
std::vector< std::string > tracer_names
The names of the tracers.
svector stickers
Stickers (stick to the same cell)
Base class for a serializable object.
Class for keeping the names of the tracers and stickers.
ComputationalCell(void)
Default constructor.
Vector3D operator+(Vector3D const &v1, Vector3D const &v2)
Term by term addition.
void unserialize(const vector< double > &data)
Convert an array of numbers to an object.
ComputationalCell & operator-=(ComputationalCell const &other)
Self reduction operator.
Vector2D velocity
Velocity.
Vector3D operator-(Vector3D const &v1, Vector3D const &v2)
Term by term subtraction.
ComputationalCell yderivative
Slope in the y direction.