GSI_Toolbox 1.0.0
A toolbox for Gas-Surface Interaction simulations
|
Class representing a Gas with properties such as density, temperature, molar mass, and speed. More...
#include <Gas.h>
Public Member Functions | |
Gas () | |
Default constructor for the Gas class. | |
Gas (T density, T temperature, T molar_mass, T speed) | |
Parameterized constructor for the Gas class. | |
Gas (const Gas< T > &other) | |
Copy constructor for the Gas class. | |
Gas (Gas< T > &&other) | |
Move constructor for the Gas class. | |
~Gas () | |
Destructor for the Gas class. | |
Gas & | operator= (const Gas &other) |
Copy assignment operator for the Gas class. | |
Gas & | operator= (Gas &&other) |
Move assignment operator for the Gas class. | |
Matrix< T > | get_thermal_velocity () |
Computes the thermal velocity of the gas in three dimensions. | |
T | get_temperature () const |
Returns the temperature of the gas. | |
T | get_density () const |
Returns the density of the gas. | |
T | get_molar_mass () const |
Returns the molar mass of the gas. | |
T | get_speed () const |
Returns the speed of the gas. | |
Class representing a Gas with properties such as density, temperature, molar mass, and speed.
This class models the behavior of a gas and provides methods to calculate gas properties such as thermal velocity.
T | The data type used for gas properties (e.g., float, double). |
Default constructor for the Gas class.
Initializes the gas properties to zero.
Parameterized constructor for the Gas class.
Initializes the gas properties with specified values.
density | Initial density of the gas. |
temperature | Initial temperature of the gas. |
molar_mass | Initial molar mass of the gas. |
speed | Initial speed of the gas. |
Copy constructor for the Gas class.
Initializes a new gas object by copying properties from another gas object.
other | The gas object to copy from. |
Move constructor for the Gas class.
Initializes a new gas object by moving properties from another gas object. The source object is reset to zero after the move.
other | The gas object to move from. |
Destructor for the Gas class.
Resets the gas properties to zero.
|
inline |
Returns the density of the gas.
|
inline |
Returns the molar mass of the gas.
|
inline |
Returns the speed of the gas.
|
inline |
Returns the temperature of the gas.
Computes the thermal velocity of the gas in three dimensions.
Computes the thermal velocity of the gas.
This function generates random velocities in the x, y, and z directions based on a normal distribution and the temperature and molar mass of the gas.
This function generates random thermal velocities in the x, y, and z directions using a normal distribution based on the gas temperature and molar mass.