generate_input.py
Skrypt generujący dane wejściowe.unknown
plain_text
10 months ago
469 B
6
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}'")
Editor is loading...
Leave a Comment