7 #define EXTENSIVE_HPP 1 9 #include "../../tessellation/geometry.hpp" 10 #include "computational_cell_2d.hpp" 12 #include "../../misc/serializable.hpp" 80 (
const vector<double>& data);
116 #endif // EXTENSIVE_HPP
Extensive(void)
Null constructor.
Extensive & operator=(const Extensive &origin)
Assignment operator.
std::vector< double > tvector
Vector2D momentum
momentum, in relativity it is = rho*h*gamma*v
double mass
rest mass times gamma
Extensive & operator-=(const Extensive &diff)
Self difference operator.
double energy
energy, in relativity it is = rho*h*gamma^2-P-rho
Extensive & operator*=(const double scalar)
Self multiplication by scalar.
Extensive operator*(const double s, const Extensive &e)
Scalar product.
Extensive operator-(const Extensive &e1, const Extensive &e2)
Difference.
void unserialize(const vector< double > &data)
Convert an array of numbers to an object.
void ReplaceExtensive(Extensive &toreplace, Extensive const &other)
Replaces the data in the extensive. The tracers should already be allocated.
vector< double > serialize(void) const
Convert an object to an array of numbers.
Base class for a serializable object.
Extensive & operator+=(const Extensive &diff)
Self addition operator.
Extensive operator+(const Extensive &e1, const Extensive &e2)
Addition.
size_t getChunkSize(void) const
Returns the size of array needed to store all data.