pipepermcalc.segment module

class pipepermcalc.segment.Segment(name=None, material=None, length=None, inner_diameter=None, wall_thickness=None, permeation_direction='perpendicular', diffusion_path_length=None)

Bases: object

Segment object class to make segments of the pipe.

PARTITIONING_A_DH

Coefficient for correcting the partitioning coefficient for temperature. From regression analysis, a is the slope, see table 5-6 in KWR 2016.056. Constant equal to 7.92169801506708.

Type:

float

PARTITIONING_B_DH

Coefficient for correcting the partitioning coefficient for temperature. From regression analysis, b is the intercept, see table 5-6 in KWR 2016.056. Constant equal to -17.1875608983359.

Type:

float,

DIFFUSION_A_DH

Coefficient for correcting the diffusion coefficient for temperature. From regression analysis, a is the slope, see table 5-6 in KWR 2016.056. Constant equal to 61.8565740136974.

Type:

float

DIFFUSION_B_DH

Coefficient for correcting the diffusion coefficient for temperature. From regression analysis, b is the intercept, see table 5-6 in KWR 2016.056. Constant equal to -78.9191401984509.

Type:

float

PARTITIONING_A_C

Constant used in the correction for the partitioning coefficent due to the influence of temperature. See equation 5-20 in KWR 2016.056, for partitioning a_c = 0.103965019849463.

Type:

float

PARTITIONING_CREF_SW

Reference concentration used in the correction for the partitioning coefficent due to the influence of temperature. Ssee section 5.4.7 in KWR 2016.056. For partitioning, Cref_SW = 1.0.

Type:

float

DIFFUSION_A_C

Constant used in the correction for the diffusion coefficent due to the influence of temperature. See equation 5-18 in KWR 2016.056, for diffusion a_c = 0.784077209735583.

Type:

float

DIFFUSION_CREF_SW

Reference concentration used in the correction for the diffusion coefficent due to the influence of temperature. Ssee section 5.4.6 in KWR 2016.056. For partitioning, Cref_SW = 0.5.

Type:

float

name

name of the pipe segment

Type:

string

material

Choice of pipe material: PE40, PE80, PVC, EPDM.

Type:

string

length

Length of the pipe segment in contact with the contaminated groundwater, meters.

Type:

float

inner_diameter

Inner diameter of the pipe segment, meters

Type:

float

wall_thickness

wall_thickness of the pipe segment, meters

Type:

float

permeation_direction

Direction of permeation through the pipe segment. Options are ‘perpendicular’ or ‘parallel’. Default permeation is perpendicular to the flow direction. See schematic XX in read the docs.

Type:

string

diffusion_path_length

In the case of permeation perpendicular to the flow direction, a diffusion path length is required to calculate the permeation through the pipe segment. For example in the case of a pipe coupling rings. Default permeation is perpendicular to the flow direction and the wall_thickness is used to calculate the diffusion through the pipe segment. Unit meters.

Type:

float

volume

Volume of the pipe segment, m3

Type:

float

permeation_surface_area

Surface area through which permeation takes place. If permeation is perpendicular to the flow, the permeation surface area is the inner surface area of the pipe. If diffusion is parallel to the flow, the permeation surface area is the annular area of the pipe segment.

Type:

float

outer_diameter

Outer diameter of the pipe segment, unit m.

Type:

float

log_Kpw_ref

partitioning coefiicient under lab conditions, [-]

Type:

float

f_Ktemp

Temperature correction factor for partitioning coefficient, [-]

Type:

float

f_Kconc

Concentration correction factor for partitioning coefficient, [-]

Type:

float

log_Kpw

Calculated log partitioning coefficient for the given chemical and pipe material, [-]

Type:

float

log_Dp_ref

Diffusion coefficient under lab conditions, m2/s.

Type:

float

f_Dtemp

Temperature correction factor for diffusion coefficient, m2/s.

Type:

float

f_Dconc

Concentration correction factor for diffusion coefficient, [m2/s.

Type:

float

log_Dp

Calculated log diffusion coefficient for the given chemical and pipe material, m2/s.

Type:

float

stagnation_factor

Correction for the decrease in the concentration gradient near the inner wall of the pipe during stagnation (e.g. no flow at at night)

Type:

float

mass_chemical_drinkwater

Mass of the given chemical in the pipe segment, g.

Type:

float

Note

All parameters are in SI units: m, m2, g/m3 (equivalent to mg/L), seconds.

reference_pipe_material_dict = {'EPDM': {'REF_LOG_D_A': {1: -0.0101309573581765, 2: -0.005793065616630017, 3: -0.005525976740823546}, 'REF_LOG_D_B': {1: -9.843606567653678, 2: -10.1309573581765, 3: -10.1309573581765}, 'REF_LOG_K_A': {1: 1.0675, 2: 1.0675, 3: 1.0675}, 'REF_LOG_K_B': {1: -0.3002, 2: -0.3002, 3: -0.3002}}, 'PE40': {'REF_LOG_D_A': {1: -0.011, 2: -0.00629, 3: -0.006}, 'REF_LOG_D_B': {1: -10.688, 2: -11.0, 3: -11.0}, 'REF_LOG_K_A': {1: 1.097, 2: 1.059, 3: 0.979}, 'REF_LOG_K_B': {1: -0.689, 2: -0.67, 3: -1.796}}, 'PE80': {'REF_LOG_D_A': {1: -0.011, 2: -0.00629, 3: -0.00629}, 'REF_LOG_D_B': {1: -11.188, 2: -11.188, 3: -11.5}, 'REF_LOG_K_A': {1: 1.185, 2: 1.185, 3: 1.231}, 'REF_LOG_K_B': {1: -1.437, 2: -1.437, 3: -2.606}}, 'PVC': {'REF_LOG_D_A': {1: 0, 2: 0, 3: 0}, 'REF_LOG_D_B': {1: 0, 2: 0, 3: 0}, 'REF_LOG_K_A': {1: 0, 2: 0, 3: 0}, 'REF_LOG_K_B': {1: 0, 2: 0, 3: 0}}, 'SBR': {'REF_LOG_D_A': {1: -0.010457121519541696, 2: -0.005979572214356115, 3: -0.005703884465204562}, 'REF_LOG_D_B': {1: -10.16051952735106, 2: -10.457121519541698, 3: -10.457121519541698}, 'REF_LOG_K_A': {1: 1.0452, 2: 1.0452, 3: 1.0452}, 'REF_LOG_K_B': {1: -0.3686, 2: -0.3686, 3: -0.3686}}}