SWHSNoPCM
Loading...
Searching...
No Matches
Calculations.py File Reference

Provides functions for calculating the outputs. More...

Functions

 python.Calculations.func_V_W (V_tank)
 Calculates volume of water (m^3).
 python.Calculations.func_m_W (rho_W, V_W)
 Calculates mass of water (kg).
 python.Calculations.func_tau_W (C_W, h_C, A_C, m_W)
 Calculates ODE parameter for water related to decay time (s).
 python.Calculations.func_T_W (T_C, T_init, t_final, A_tol, R_tol, t_step, tau_W)
 Calculates temperature of the water (degreeC).

Detailed Description

Provides functions for calculating the outputs.

Author
Thulasi Jegatheesan
Note
Generated by Drasil v0.1-alpha

Function Documentation

◆ func_m_W()

python.Calculations.func_m_W ( rho_W,
V_W )

Calculates mass of water (kg).

Parameters
rho_Wdensity of water (kg/m^3)
V_Wvolume of water (m^3)
Returns
mass of water (kg)

◆ func_T_W()

python.Calculations.func_T_W ( T_C,
T_init,
t_final,
A_tol,
R_tol,
t_step,
tau_W )

Calculates temperature of the water (degreeC).

Parameters
T_Ctemperature of the heating coil (degreeC)
T_initinitial temperature (degreeC)
t_finalfinal time (s)
A_tolabsolute tolerance
R_tolrelative tolerance
t_steptime step for simulation (s)
tau_WODE parameter for water related to decay time (s)
Returns
temperature of the water (degreeC)

◆ func_tau_W()

python.Calculations.func_tau_W ( C_W,
h_C,
A_C,
m_W )

Calculates ODE parameter for water related to decay time (s).

Parameters
C_Wspecific heat capacity of water (J/(kg degreeC))
h_Cconvective heat transfer coefficient between coil and water (W/(m^2 degreeC))
A_Cheating coil surface area (m^2)
m_Wmass of water (kg)
Returns
ODE parameter for water related to decay time (s)

◆ func_V_W()

python.Calculations.func_V_W ( V_tank)

Calculates volume of water (m^3).

Parameters
V_tankvolume of the cylindrical tank (m^3)
Returns
volume of water (m^3)