pyrk.th_component module¶
-
class
pyrk.th_component.
THComponent
(name=None, mat=<materials.material.Material object>, vol=<Quantity(0.0, 'meter ** 3')>, T0=<Quantity(0.0, 'kelvin')>, alpha_temp=<Quantity(0.0, 'delta_k / kelvin')>, timer=<timer.Timer object>, heatgen=False, power_tot=<Quantity(0, 'watt')>, sph=False, ri=<Quantity(0, 'meter')>, ro=<Quantity(0, 'meter')>)[source]¶ Bases:
object
This class represents a component of the system it has material and geometric properties essential to thermal modeling and heat transfer in support of calculations related to the thermal hydraulics sub block
-
add_advection
(name, m_flow, t_in, cp)[source]¶ Add advection dictionary to the fluid component(coolant) that has advective heat tranfer
Parameters:
-
add_conduction
(env, area=<Quantity(0.0, 'meter ** 2')>, L=<Quantity(0.0, 'meter')>, r_b=<Quantity(0.0, 'meter')>, r_env=<Quantity(0.0, 'meter')>)[source]¶ Add parameters for conduction heat transfer calculation area and L are used for slab geometry r_b and r_env are used for spherical heat diffusion
Parameters:
-
dtemp
(timestep)[source]¶ calculate temperature difference between the given timestep and the timestep where feedback is turned on
Parameters: timestep (int) – the timestep at which to query the tempareture
-
mesh
(size)[source]¶ cut a THComponent into a list of smaller components uniform meshing method, only implemented for spherical components
Parameters: size (float with length unit) – size of uniform mesh element Returns: list of smaller components
-
rho
(timestep)[source]¶ The density of this component’s materials
Parameters: timestep (int) – the timestep at which to query the temperature Returns: the density of this component Return type: float, in units of $kg/m^3$
-
temp
(timestep)[source]¶ The temperature of this component at the chosen timestep
Parameters: timestep (int) – the timestep at which to query the temperature Returns: the temperature of the component at the chosen timestep Return type: float, in units of kelvin
-
-
class
pyrk.th_component.
THSuperComponent
(name, T0, sub_comp=[], timer=<timer.Timer object>)[source]¶ Bases:
pyrk.th_component.THComponent
A ‘component’ containing a list of component Creating a superComponent would automatically define conduction between the mesh elements
-
add_conv_bc
(envname, h)[source]¶ add convective boundary condition to the supercomponent
Parameters:
-