Public Member Functions | Public Attributes | List of all members
Conserved Class Reference

Set of conserved variables (extensive) More...

#include <hydrodynamic_variables.hpp>

Collaboration diagram for Conserved:
Collaboration graph
[legend]

Public Member Functions

 Conserved (void)
 Null constructor (sets all members to zero)
 
 Conserved (double mass, Vector2D const &momentum, double energy)
 Class constructor. More...
 
Conservedoperator+= (Conserved const &f)
 Addition of flux. More...
 
Conservedoperator-= (Conserved const &c)
 subtraction of flux More...
 
Conservedoperator= (Conserved const &other)
 Assigmnet operator. More...
 
 Conserved (const Conserved &other)
 Copy constructor. More...
 

Public Attributes

double Mass
 Mass.
 
Vector2D Momentum
 Momentum.
 
double Energy
 Total energy (kinetic + thermal)
 

Detailed Description

Set of conserved variables (extensive)

Definition at line 11 of file hydrodynamic_variables.hpp.

Constructor & Destructor Documentation

◆ Conserved() [1/2]

Conserved::Conserved ( double  mass,
Vector2D const &  momentum,
double  energy 
)

Class constructor.

Parameters
massMass
momentumMomentum
energyEnergy

Definition at line 56 of file hydrodynamic_variables.cpp.

◆ Conserved() [2/2]

Conserved::Conserved ( const Conserved other)

Copy constructor.

Parameters
otherSource from which to copy

Definition at line 51 of file hydrodynamic_variables.cpp.

Member Function Documentation

◆ operator+=()

Conserved & Conserved::operator+= ( Conserved const &  f)

Addition of flux.

Parameters
fFlux
Returns
Sum

Definition at line 245 of file hydrodynamic_variables.cpp.

◆ operator-=()

Conserved & Conserved::operator-= ( Conserved const &  c)

subtraction of flux

Parameters
cConserved variables
Returns
Difference

Definition at line 253 of file hydrodynamic_variables.cpp.

◆ operator=()

Conserved & Conserved::operator= ( Conserved const &  other)

Assigmnet operator.

Parameters
otherThe object to be copied
Returns
The copy

Definition at line 62 of file hydrodynamic_variables.cpp.


The documentation for this class was generated from the following files: