... | ... | @@ -68,6 +68,8 @@ In `src/equation_of_state/planetary/equation_of_state.h`: |
|
|
* For this EOS type, e.g. `case type_Til:`, declare a material parameter struct (pointer) of the relevant type, e.g. `struct Til_params *mat_Til;`, then use `switch(mat_id)` to select and point to the right material. e.g. `case id_Til_iron: mat_Til = &eos.Til_iron;`.
|
|
|
* Call the EOS function, passing the input arguments and the material pointer, e.g. `u = Til_internal_energy_from_entropy(density, entropy, mat_Til);`, and return the value.
|
|
|
|
|
|
Input parameters
|
|
|
* `eos_init()`: Read in things like table file names from the input parameters. To more neatly deal with defaults etc., first check the flag parameters e.g. `use_Til` to decide which EOS to initialise.
|
|
|
|
|
|
## To Do
|
|
|
|
... | ... | |