Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
9a6f8a45
Commit
9a6f8a45
authored
May 21, 2018
by
Jacob Kegerreis
Browse files
Add a prefix for all planetary EOS input parameters
parent
3572f993
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/parameter_example.yml
View file @
9a6f8a45
...
...
@@ -133,14 +133,14 @@ DomainDecomposition:
EoS
:
isothermal_internal_energy
:
20.26784
# Thermal energy per unit mass for the case of isothermal equation of state (in internal units).
use_Til
:
1
# (Optional) Whether to prepare the Tillotson EOS
use_HM80
:
0
# (Optional) Whether to prepare the Hubbard & MacFarlane (1980) EOS
use_ANEOS
:
0
# (Optional) Whether to prepare the ANEOS EOS
use_SESAME
:
0
# (Optional) Whether to prepare the SESAME EOS
planetary_
use_Til
:
1
# (Optional) Whether to prepare the Tillotson EOS
planetary_
use_HM80
:
0
# (Optional) Whether to prepare the Hubbard & MacFarlane (1980) EOS
planetary_
use_ANEOS
:
0
# (Optional) Whether to prepare the ANEOS EOS
planetary_
use_SESAME
:
0
# (Optional) Whether to prepare the SESAME EOS
# (Optional) Table file paths
HM80_HHe_table_file
:
HM80_HHe.txt
HM80_ice_table_file
:
HM80_ice.txt
HM80_rock_table_file
:
HM80_rock.txt
planetary_
HM80_HHe_table_file
:
HM80_HHe.txt
planetary_
HM80_ice_table_file
:
HM80_ice.txt
planetary_
HM80_rock_table_file
:
HM80_rock.txt
# Parameters related to external potentials --------------------------------------------
...
...
src/equation_of_state/planetary/equation_of_state.h
View file @
9a6f8a45
...
...
@@ -1085,7 +1085,7 @@ __attribute__((always_inline)) INLINE static void eos_init(
// Set the parameters and material IDs, load tables, etc. for each material
// and convert to internal units
// Tillotson
if
(
parser_get_opt_param_int
(
params
,
"EoS:use_Til"
,
0
))
{
if
(
parser_get_opt_param_int
(
params
,
"EoS:
planetary_
use_Til"
,
0
))
{
set_Til_iron
(
&
e
->
Til_iron
,
eos_planetary_id_Til_iron
);
set_Til_granite
(
&
e
->
Til_granite
,
eos_planetary_id_Til_granite
);
set_Til_water
(
&
e
->
Til_water
,
eos_planetary_id_Til_water
);
...
...
@@ -1096,16 +1096,16 @@ __attribute__((always_inline)) INLINE static void eos_init(
}
// Hubbard & MacFarlane (1980)
if
(
parser_get_opt_param_int
(
params
,
"EoS:use_HM80"
,
0
))
{
if
(
parser_get_opt_param_int
(
params
,
"EoS:
planetary_
use_HM80"
,
0
))
{
set_HM80_HHe
(
&
e
->
HM80_HHe
,
eos_planetary_id_HM80_HHe
);
set_HM80_ice
(
&
e
->
HM80_ice
,
eos_planetary_id_HM80_ice
);
set_HM80_rock
(
&
e
->
HM80_rock
,
eos_planetary_id_HM80_rock
);
parser_get_param_string
(
params
,
"EoS:HM80_HHe_table_file"
,
parser_get_param_string
(
params
,
"EoS:
planetary_
HM80_HHe_table_file"
,
HM80_HHe_table_file
);
parser_get_param_string
(
params
,
"EoS:HM80_ice_table_file"
,
parser_get_param_string
(
params
,
"EoS:
planetary_
HM80_ice_table_file"
,
HM80_ice_table_file
);
parser_get_param_string
(
params
,
"EoS:HM80_rock_table_file"
,
parser_get_param_string
(
params
,
"EoS:
planetary_
HM80_rock_table_file"
,
HM80_rock_table_file
);
load_HM80_table
(
&
e
->
HM80_HHe
,
HM80_HHe_table_file
);
...
...
@@ -1118,7 +1118,7 @@ __attribute__((always_inline)) INLINE static void eos_init(
}
// ANEOS
if
(
parser_get_opt_param_int
(
params
,
"EoS:use_ANEOS"
,
0
))
{
if
(
parser_get_opt_param_int
(
params
,
"EoS:
planetary_
use_ANEOS"
,
0
))
{
set_ANEOS_iron
(
&
e
->
ANEOS_iron
,
eos_planetary_id_ANEOS_iron
);
set_MANEOS_forsterite
(
&
e
->
MANEOS_forsterite
,
eos_planetary_id_MANEOS_forsterite
);
...
...
@@ -1128,7 +1128,7 @@ __attribute__((always_inline)) INLINE static void eos_init(
}
// SESAME
if
(
parser_get_opt_param_int
(
params
,
"EoS:use_SESAME"
,
0
))
{
if
(
parser_get_opt_param_int
(
params
,
"EoS:
planetary_
use_SESAME"
,
0
))
{
set_SESAME_iron
(
&
e
->
SESAME_iron
,
eos_planetary_id_SESAME_iron
);
convert_units_SESAME
(
&
e
->
SESAME_iron
,
us
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment