Skip to content

Instantly share code, notes, and snippets.

@flotang-gtt
flotang-gtt / SlagHeating_multiprocessing.py
Last active January 18, 2024 11:01
Multiprocessing with Pool() enabled, running for multiple different sets to compare execution times.
from pathlib import Path
import numpy as np
from collections import OrderedDict
from multiprocessing import Pool
import time
from chemapp.friendly import (
StreamCalculation as casc,
ThermochemicalSystem as cats,
@flotang-gtt
flotang-gtt / SlagHeating.py
Last active January 11, 2024 10:49
The original slag heating example, slimmed down but not including any multiprocessing
#> Initialization and general setup
import os
from pathlib import Path
import numpy as np
from collections import OrderedDict
import chemapp as ca
from chemapp.friendly import (
Info,
StreamCalculation as casc,