Provides the function for reading inputs, the function for calculating derived values, and the function for checking the physical constraints and software constraints on the input.
More...
#include <string>
#include "Constants.hpp"
Go to the source code of this file.
|
void | get_input (string filename, double &A_C, double &C_W, double &h_C, double &T_init, double &t_final, double &L, double &T_C, double &t_step, double &rho_W, double &D, double &A_tol, double &R_tol, double &E_W) |
| Reads input from a file with the given file name. More...
|
|
double | derived_values (double D, double L) |
| Calculates values that can be immediately derived from the inputs. More...
|
|
void | input_constraints (double A_C, double C_W, double h_C, double T_init, double t_final, double L, double T_C, double t_step, double rho_W, double D, double E_W) |
| Verifies that input values satisfy the physical constraints and software constraints. More...
|
|
Provides the function for reading inputs, the function for calculating derived values, and the function for checking the physical constraints and software constraints on the input.
- Author
- Thulasi Jegatheesan
- Note
- Generated by Drasil v0.1-alpha
◆ derived_values()
double derived_values |
( |
double |
D, |
|
|
double |
L |
|
) |
| |
Calculates values that can be immediately derived from the inputs.
- Parameters
-
D | diameter of tank: the diameter of the tank (m) |
L | length of tank: the length of the tank (m) |
- Returns
- volume of the cylindrical tank: the amount of space encompassed by a tank (m^3)
◆ get_input()
void get_input |
( |
string |
filename, |
|
|
double & |
A_C, |
|
|
double & |
C_W, |
|
|
double & |
h_C, |
|
|
double & |
T_init, |
|
|
double & |
t_final, |
|
|
double & |
L, |
|
|
double & |
T_C, |
|
|
double & |
t_step, |
|
|
double & |
rho_W, |
|
|
double & |
D, |
|
|
double & |
A_tol, |
|
|
double & |
R_tol, |
|
|
double & |
E_W |
|
) |
| |
Reads input from a file with the given file name.
- Parameters
-
filename | name of the input file |
A_C | heating coil surface area: area covered by the outermost layer of the coil (m^2) |
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)) |
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) |
L | length of tank: the length of the tank (m) |
T_C | temperature of the heating coil: the average kinetic energy of the particles within the coil (degreeC) |
t_step | time step for simulation: the finite discretization of time used in the numerical method for solving the computational model (s) |
rho_W | density of water: mass per unit volume of water (kg/m^3) |
D | diameter of tank: the diameter of the tank (m) |
A_tol | absolute tolerance |
R_tol | relative tolerance |
E_W | change in heat energy in the water: change in thermal energy within the water (J) |
◆ input_constraints()
void input_constraints |
( |
double |
A_C, |
|
|
double |
C_W, |
|
|
double |
h_C, |
|
|
double |
T_init, |
|
|
double |
t_final, |
|
|
double |
L, |
|
|
double |
T_C, |
|
|
double |
t_step, |
|
|
double |
rho_W, |
|
|
double |
D, |
|
|
double |
E_W |
|
) |
| |
Verifies that input values satisfy the physical constraints and software constraints.
- Parameters
-
A_C | heating coil surface area: area covered by the outermost layer of the coil (m^2) |
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)) |
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) |
L | length of tank: the length of the tank (m) |
T_C | temperature of the heating coil: the average kinetic energy of the particles within the coil (degreeC) |
t_step | time step for simulation: the finite discretization of time used in the numerical method for solving the computational model (s) |
rho_W | density of water: mass per unit volume of water (kg/m^3) |
D | diameter of tank: the diameter of the tank (m) |
E_W | change in heat energy in the water: change in thermal energy within the water (J) |