SWHSNoPCM
All Classes Files Functions
Static Public Member Functions | List of all members
InputParameters Class Reference

Static Public Member Functions

static void get_input (string filename, out double A_C, out double C_W, out double h_C, out double T_init, out double t_final, out double L, out double T_C, out double t_step, out double rho_W, out double D, out double A_tol, out double R_tol, out double E_W)
 Reads input from a file with the given file name. More...
 
static double derived_values (double D, double L)
 Calculates values that can be immediately derived from the inputs. More...
 
static 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...
 

Member Function Documentation

◆ derived_values()

static double InputParameters.derived_values ( double  D,
double  L 
)
inlinestatic

Calculates values that can be immediately derived from the inputs.

Parameters
Ddiameter of tank: the diameter of the tank (m)
Llength 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()

static void InputParameters.get_input ( string  filename,
out double  A_C,
out double  C_W,
out double  h_C,
out double  T_init,
out double  t_final,
out double  L,
out double  T_C,
out double  t_step,
out double  rho_W,
out double  D,
out double  A_tol,
out double  R_tol,
out double  E_W 
)
inlinestatic

Reads input from a file with the given file name.

Parameters
filenamename of the input file
A_Cheating coil surface area: area covered by the outermost layer of the coil (m^2)
C_Wspecific 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_Cconvective 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_initinitial temperature: the temperature at the beginning of the simulation (degreeC)
t_finalfinal time: the amount of time elapsed from the beginning of the simulation to its conclusion (s)
Llength of tank: the length of the tank (m)
T_Ctemperature of the heating coil: the average kinetic energy of the particles within the coil (degreeC)
t_steptime step for simulation: the finite discretization of time used in the numerical method for solving the computational model (s)
rho_Wdensity of water: mass per unit volume of water (kg/m^3)
Ddiameter of tank: the diameter of the tank (m)
A_tolabsolute tolerance
R_tolrelative tolerance
E_Wchange in heat energy in the water: change in thermal energy within the water (J)

◆ input_constraints()

static void InputParameters.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 
)
inlinestatic

Verifies that input values satisfy the physical constraints and software constraints.

Parameters
A_Cheating coil surface area: area covered by the outermost layer of the coil (m^2)
C_Wspecific 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_Cconvective 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_initinitial temperature: the temperature at the beginning of the simulation (degreeC)
t_finalfinal time: the amount of time elapsed from the beginning of the simulation to its conclusion (s)
Llength of tank: the length of the tank (m)
T_Ctemperature of the heating coil: the average kinetic energy of the particles within the coil (degreeC)
t_steptime step for simulation: the finite discretization of time used in the numerical method for solving the computational model (s)
rho_Wdensity of water: mass per unit volume of water (kg/m^3)
Ddiameter of tank: the diameter of the tank (m)
E_Wchange in heat energy in the water: change in thermal energy within the water (J)

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