generate_input.py

Skrypt generujący dane wejściowe.
 avatar
unknown
plain_text
a month ago
469 B
4
Indexable
import json

# Parametry wejściowe do symulacji
data = {
    "mass_tonnes": [5, 10, 20, 50],
    "trajectory": "Hohmann",
    "fuel_consumption_factor": 0.8,
    "mars_gravity": 3.721,
    "cost_per_tonne_usd": 2000000,
    "isru_enabled": True
}

# Zapisz dane do pliku JSON
file_name = "simulation_input.json"
with open(file_name, "w") as file:
    json.dump(data, file, indent=4)

print(f"Dane wejściowe zostały zapisane w pliku '{file_name}'")
Leave a Comment