base_pipe

Class for base pipe

class Pipe(diameter: float = 0.0204, depth: float = 1.0, k_insulation: float = 0.026, insulation_thickness: float = 0.034, length: float = 1.0, roughness: float = 0.045, k_internal_pipe: float = 45.0, internal_pipe_thickness: float = 0.023, k_casing: float = 0.4, casing_thickness: float = 0.003, discretization: float = 10, dz: float = 0.0, line: str | None = None, **kwargs)[source]

Bases: Component

Class for base Pipe component. Base Pipes are branch components and assume steady-state conditions.

__init__(diameter: float = 0.0204, depth: float = 1.0, k_insulation: float = 0.026, insulation_thickness: float = 0.034, length: float = 1.0, roughness: float = 0.045, k_internal_pipe: float = 45.0, internal_pipe_thickness: float = 0.023, k_casing: float = 0.4, casing_thickness: float = 0.003, discretization: float = 10, dz: float = 0.0, line: str | None = None, **kwargs) None[source]

Inits Pipe.

Parameters:
  • diameter (float, optional) – Internal diameter of the pipe (m). The default is 0.0204.

  • depth (float, optional) – Burying depth of the pipe (m). The default is 1.0.

  • insulation_thickness (float, optional) – Thickness of the insulation layer (m). The default is 0.034.

  • length (float, optional) – Length of the pipe (m). The default is 1.0.

  • k_insulation (float, optional) – Thermal conductivity of insulation (W/(m·K)). The default is 0.026.

  • roughness (float, optional) – Roughness of the internal pipe surface (mm). The default is 0.045.

  • k_internal_pipe (float, optional) – Thermal conductivity of the pipe (W/(m·K)). The default is 45.0.

  • internal_pipe_thickness (float, optional) – Thickness of the pipe (m). The default is 0.023.

  • k_casing (float, optional) – Thermal conductivity of the casing (W/(m·K)). The default is 0.4.

  • casing_thickness (float, optional) – Thickness of the casing (m). The default is 0.003.

  • discretization (flaot, optional) – Length of segments for discretizing the pipe (m). The default is 10.

  • dz (float, optional) – Altitude difference between the endpoints (m). The default is 0.

  • line (str, optional) – Either “supply” or “return”. The default is None.

  • **kwargs (dict) – Additional keyord arguments.

Return type:

None.