Skip to content

Commit 415d4a4

Browse files
authored
Merge pull request #306 from FormingWorlds/ls/aragog-lookup
Ls/aragog lookup
2 parents fcbdddd + b21231d commit 415d4a4

26 files changed

+2497
-2494
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies = [
4949
"fwl-mors>=24.11.18",
5050
"fwl-calliope>=24.9.10",
5151
"fwl-zephyrus>=24.10.15",
52-
"aragog>=0.1.7a0",
52+
"aragog>=0.1.8a0",
5353
"cmcrameri",
5454
"juliacall",
5555
"matplotlib",

src/proteus/interior/aragog.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,30 +137,35 @@ def SetupAragogSolver(config:Config, hf_row:dict):
137137
basal_temperature = config.interior.aragog.ini_tmagma, # initial bottom temperature (K)
138138
)
139139

140+
# Get look up data directory, will be configurable in the future
141+
LOOK_UP_DIR = FWL_DATA_DIR / "interior_lookup_tables/1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018/"
142+
140143
phase_liquid = _PhaseParameters(
141-
density = 4000,
144+
density = LOOK_UP_DIR / "density_melt.dat",
142145
viscosity = 1E2,
143-
heat_capacity = 1000,
146+
heat_capacity = LOOK_UP_DIR / "heat_capacity_melt.dat",
144147
melt_fraction = 1,
145148
thermal_conductivity = 4,
146-
thermal_expansivity = 1.0E-5,
149+
#thermal_expansivity = 1.0E-5,
150+
thermal_expansivity = LOOK_UP_DIR / "thermal_exp_melt.dat",
147151
)
148152

149153
phase_solid = _PhaseParameters(
150-
density = 4200,
154+
density = LOOK_UP_DIR / "density_solid.dat",
151155
viscosity = 1E21,
152-
heat_capacity = 1000,
156+
heat_capacity = LOOK_UP_DIR / "heat_capacity_solid.dat",
153157
melt_fraction = 0,
154158
thermal_conductivity = 4,
155-
thermal_expansivity = 1.0E-5,
159+
#thermal_expansivity = 1.0E-5,
160+
thermal_expansivity = LOOK_UP_DIR / "thermal_exp_solid.dat",
156161
)
157162

158163
phase_mixed = _PhaseMixedParameters(
159164
latent_heat_of_fusion = 4e6,
160165
rheological_transition_melt_fraction = 0.4,
161166
rheological_transition_width = 0.15,
162-
solidus = FWL_DATA_DIR / "interior_lookup_tables/1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018/solidus.dat",
163-
liquidus = FWL_DATA_DIR / "interior_lookup_tables/1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018/liquidus.dat",
167+
solidus = LOOK_UP_DIR / "solidus.dat",
168+
liquidus = LOOK_UP_DIR / "liquidus.dat",
164169
phase = "mixed",
165170
phase_transition_width = 0.1,
166171
grain_size = config.interior.grain_size,

src/proteus/interior/wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def determine_interior_radius(dirs:dict, config:Config, hf_all:pd.DataFrame, hf_
4141

4242
# Initial guess for interior radius and gravity
4343
IC_INTERIOR = 1
44-
hf_row["R_int"] = R_earth
44+
hf_row["R_int"] = config.struct.radius_int * R_earth
4545
calculate_core_mass(hf_row, config)
4646
hf_row["gravity"] = 9.81
4747

@@ -76,7 +76,7 @@ def _resid(x):
7676
rtol = 1e-7
7777

7878
# Find the radius
79-
r = optimise.root_scalar(_resid, method='secant', xtol=1e3, rtol=rtol, maxiter=12,
79+
r = optimise.root_scalar(_resid, method='secant', xtol=1e3, rtol=rtol, maxiter=10,
8080
x0=hf_row["R_int"], x1=hf_row["R_int"]*1.02)
8181
hf_row["R_int"] = float(r.root)
8282
calculate_core_mass(hf_row, config)

0 commit comments

Comments
 (0)