ThermalConductivityCalculator API Reference
geoloop.lithology.process_lithology.ThermalConductivityCalculator
A class to calculate subsurface thermal conductivity and porosity based on lithological and thermal parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
phi0 |
float
|
Porosity at the surface. |
kv_phi0_20 |
float
|
Thermal conductivity at 20°C (W/mK). |
sorting_factor |
float
|
Sorting factor, describing the degree of sorting in sediments. |
anisotropy |
float
|
Anisotropy factor, describing the anisotropy in sediments. |
c_p |
float
|
Specific heat capacity (J/kgK). |
rho |
float
|
Density (kg/m³). |
k_athy |
float
|
Compaction constant, used in the porosity-depth relation. |
calculate_porosity
calculate_k_compaction_correction
calculate_kh_rock_matrix
Estimate the horizontal rock-matrix thermal conductivity (dimensionless kh_matrix) using an empirical formula that depends on compaction-corrected conductivities and temperature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
temperature_top
|
float
|
Temperature at the top of the segment (°C). |
required |
temperature_base
|
float
|
Temperature at the base of the segment (°C). |
required |
phi
|
float
|
Effective porosity for the segment. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Estimated matrix conductivity parameter kh_matrix used in bulk mixing. |
calculate_k_water
calculate_kh_bulk
Compute bulk horizontal thermal conductivity by combining matrix and pore fluid.
Uses a geometric mixing law: k_bulk = KxRM^(1-phi) * kw^(phi).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
temperature_base
|
float
|
Temperature at segment base (°C). |
required |
kh_matrix
|
float
|
Horizontal thermal conductivity of the rock matrix (W/mK). |
required |
phi
|
float
|
Porosity (fraction). |
required |
Returns:
| Type | Description |
|---|---|
float
|
Bulk horizontal thermal conductivity (W/m·K). |