Skip to content

Documentation

Commando.PAX edited this page Feb 23, 2024 · 2 revisions

Config_Loader()

init (self)

The initialization function is responsible for loading the related json file with the problem parameters.

generate_new_config(self, ...)

This function generates a json file containing the problem parameters using user inputs. The json files obey the following formats (Sod Problem) :

{
    "gamma": 1.4, 
    "L": 1.0, 
    "n_cell": 1000,
    "C" : 0.9,
    "rho_inf": 1.0,
    "u_inf": 0.0,
    "P_inf": 1.0,
    "rho_sup": 0.125,
    "u_sup": 0.0,
    "P_sup": 0.1
}

Clone this wiki locally