SWHSNoPCM
Loading...
Searching...
No Matches
InputParameters.hpp File Reference

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.

Functions

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.
double derived_values (double D, double L)
 Calculates values that can be immediately derived from the inputs.
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.

Detailed Description

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

Function Documentation

◆ derived_values()

double derived_values ( double D,
double L )

Calculates values that can be immediately derived from the inputs.

Parameters
Ddiameter of tank (m)
Llength of tank (m)
Returns
volume of the cylindrical 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
filenamename of the input file
A_Cheating coil surface area (m^2)
C_Wspecific heat capacity of water (J/(kg degreeC))
h_Cconvective heat transfer coefficient between coil and water (W/(m^2 degreeC))
T_initinitial temperature (degreeC)
t_finalfinal time (s)
Llength of tank (m)
T_Ctemperature of the heating coil (degreeC)
t_steptime step for simulation (s)
rho_Wdensity of water (kg/m^3)
Ddiameter of tank (m)
A_tolabsolute tolerance
R_tolrelative tolerance
E_Wchange in heat energy in 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_Cheating coil surface area (m^2)
C_Wspecific heat capacity of water (J/(kg degreeC))
h_Cconvective heat transfer coefficient between coil and water (W/(m^2 degreeC))
T_initinitial temperature (degreeC)
t_finalfinal time (s)
Llength of tank (m)
T_Ctemperature of the heating coil (degreeC)
t_steptime step for simulation (s)
rho_Wdensity of water (kg/m^3)
Ddiameter of tank (m)
E_Wchange in heat energy in the water (J)