> For the complete documentation index, see [llms.txt](https://farfromhome.gitbook.io/galactopedia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://farfromhome.gitbook.io/galactopedia/basic-game-pillars/star-systems/asteroid-fields/mining-in-sectors/mining-process.md).

# Mining Process

{% embed url="<http://youtu.be/5R_R8daPUZU>" %}

## 1. **Thermal Management**

The mining equipment produces heat during operation (`heat_generation`). To avoid overheating (`overheat`), the equipment also comes with a cooling system (`cooling`). The time it takes for the equipment to overheat when starting from zero is calculated using:

$$
time\_to\_overheat = \frac{overheat}{heat\_generation - cooling}
$$

However, the equipment operates most efficiently at an `optimal_heat`. After overheating, the time it requires to cool down to this optimal temperature is:

$$
cooling\_time\_to\_optimal = \frac{overheat - optimal\_heat}{cooling} + 1.5
$$

Subsequently, the time to reheat from optimal to the overheating temperature is:

$$
heat\_up\_from\_optimal = \frac{overheat - optimal\_heat}{heat\_generation - cooling} + 1.5
$$

## 2. **Mining Cycles**

Depending on the duration (`mining_time`) for which mining equipment is active, the process can undergo multiple cycles of cooling and reheating. The total duration for a single cycle, combining cooling and reheating, is:

$$
cycle\_time = cooling\_time\_to\_optimal + heat\_up\_from\_optimal
$$

From the overall mining time, the number of complete cycles the equipment undergoes can be calculated by:

$$
complete\_cycles = \frac{mining\_time}{cycle\_time}
$$

## 3. **Fluctuating Environmental Factors**

Asteroids, unlike stable terrestrial environments, are subject to fluctuating conditions, affecting the mining rate. A function, termed `cumulative_abs_cos` represents this fluctuation, and is expressed as:

$$
cumulative\_abs\_cos(t) = t / 2 + 0.5 \times |0.5 \times (1 + \cos(2 \times t))|
$$

## 4. **Mining Efficiency**

#### For the initial heating phase:

$$
initial\_phase\_capacity = 0.05 \times power \times time\_to\_overheat
$$

#### For complete cycles:

$$
complete\_cycles\_capacity = 0.05 \times complete\_cycles \times power \times heat\_up\_from\_optimal
$$

#### For the remaining time:

The capacity during this period varies, based on whether the equipment is in a cooling or reheating phase. This is determined by comparing the `remaining_time` with`cooling_time_to_optimal`.

## 5. **Total Capacity**

Combining all the individual capacities and accounting fluctuations.

## Conclusion

Asteroid mining is a balance between maximizing the mining capacity and managing the equipment's thermal state. By understanding and optimizing these parameters, miners can efficiently extract the valuable resources these celestial bodies offer.

{% hint style="info" %}
*Note: This Galactopedia entry is based on known data up to 2023 and may be subject to revisions with newer discoveries.* It serves as a comprehensive guide for travelers, engineers, and enthusiasts alike, ensuring that knowledge remains accessible to all.
{% endhint %}

{% hint style="warning" %}
Far From Home is a digital game. Tokens and digital items are intended solely for gameplay and entertainment purposes and do not constitute financial or investment products.
{% endhint %}
