Provides functions for calculating the outputs.
More...
#include <vector>
#include "ODE.hpp"
#include "Populate.hpp"
Go to the source code of this file.
|
double | func_V_W (double V_tank) |
| Calculates volume of water: the amount of space occupied by a given quantity of water (m^3) More...
|
|
double | func_m_W (double rho_W, double V_W) |
| Calculates mass of water: the quantity of matter within the water (kg) More...
|
|
double | func_tau_W (double C_W, double h_C, double A_C, double m_W) |
| Calculates ODE parameter for water related to decay time: derived parameter based on rate of change of temperature of water (s) More...
|
|
vector< double > | func_T_W (double T_C, double T_init, double t_final, double A_tol, double R_tol, double t_step, double tau_W) |
| Calculates temperature of the water: the average kinetic energy of the particles within the water (degreeC) More...
|
|
Provides functions for calculating the outputs.
- Author
- Thulasi Jegatheesan
- Note
- Generated by Drasil v0.1-alpha
◆ func_m_W()
double func_m_W |
( |
double |
rho_W, |
|
|
double |
V_W |
|
) |
| |
Calculates mass of water: the quantity of matter within the water (kg)
- Parameters
-
rho_W | density of water: mass per unit volume of water (kg/m^3) |
V_W | volume of water: the amount of space occupied by a given quantity of water (m^3) |
- Returns
- mass of water: the quantity of matter within the water (kg)
◆ func_T_W()
vector<double> func_T_W |
( |
double |
T_C, |
|
|
double |
T_init, |
|
|
double |
t_final, |
|
|
double |
A_tol, |
|
|
double |
R_tol, |
|
|
double |
t_step, |
|
|
double |
tau_W |
|
) |
| |
Calculates temperature of the water: the average kinetic energy of the particles within the water (degreeC)
- Parameters
-
T_C | temperature of the heating coil: the average kinetic energy of the particles within the coil (degreeC) |
T_init | initial temperature: the temperature at the beginning of the simulation (degreeC) |
t_final | final time: the amount of time elapsed from the beginning of the simulation to its conclusion (s) |
A_tol | absolute tolerance |
R_tol | relative tolerance |
t_step | time step for simulation: the finite discretization of time used in the numerical method for solving the computational model (s) |
tau_W | ODE parameter for water related to decay time: derived parameter based on rate of change of temperature of water (s) |
- Returns
- temperature of the water: the average kinetic energy of the particles within the water (degreeC)
◆ func_tau_W()
double func_tau_W |
( |
double |
C_W, |
|
|
double |
h_C, |
|
|
double |
A_C, |
|
|
double |
m_W |
|
) |
| |
Calculates ODE parameter for water related to decay time: derived parameter based on rate of change of temperature of water (s)
- Parameters
-
C_W | specific heat capacity of water: the amount of energy required to raise the temperature of a given unit mass of water by a given amount (J/(kg degreeC)) |
h_C | convective heat transfer coefficient between coil and water: the convective heat transfer coefficient that models the thermal flux from the coil to the surrounding water (W/(m^2 degreeC)) |
A_C | heating coil surface area: area covered by the outermost layer of the coil (m^2) |
m_W | mass of water: the quantity of matter within the water (kg) |
- Returns
- ODE parameter for water related to decay time: derived parameter based on rate of change of temperature of water (s)
◆ func_V_W()
double func_V_W |
( |
double |
V_tank | ) |
|
Calculates volume of water: the amount of space occupied by a given quantity of water (m^3)
- Parameters
-
V_tank | volume of the cylindrical tank: the amount of space encompassed by a tank (m^3) |
- Returns
- volume of water: the amount of space occupied by a given quantity of water (m^3)