Skip to content

Commit

Permalink
update the massive star to work with the new NSE table
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Nov 28, 2023
1 parent 260d2f5 commit 3263136
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion massive_star/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ USE_CXX_REACTIONS = TRUE

USE_FORT_MICROPHYSICS = FALSE

MAX_ZONES := 16384
MAX_ZONES := 32768

DEFINES += -DNPTS_MODEL=$(MAX_ZONES)

Expand Down
11 changes: 11 additions & 0 deletions massive_star/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ convert_21_to_19.py

This setup uses Ye as the primary composition variable from the initial
model in regions that are in NSE.

Note: you should ensure that the NSE conditions in the inputs file match
those of your simulation, so the model will be properly in HSE.

Also note that when running with 32768 zones, you need to do:

```
ulimit -s 16384
```

Since the arrays are put on the stack.
9 changes: 7 additions & 2 deletions massive_star/init_1d.H
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,16 @@ set_aux(eos_t& eos_state) {
// we are in NSE, so leave ye alone, but get abar and redo xn

Real abar_pass;
Real dq_pass;
Real bea_pass;
Real dyedt_pass;
Real dabardt_pass;
Real dbeadt_pass;
Real e_nu_pass;

nse_interp(eos_state.T, eos_state.rho, eos_state.aux[AuxZero::iye],
abar_pass, dq_pass, dyedt_pass, eos_state.xn);
abar_pass, bea_pass,
dyedt_pass, dabardt_pass, dbeadt_pass, e_nu_pass,
eos_state.xn);

eos_state.aux[AuxZero::iabar] = abar_pass;

Expand Down
8 changes: 5 additions & 3 deletions massive_star/inputs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
problem.model_file = 15m_500_sec.aprox19.dat

problem.xmin = 0.0
problem.xmax = 2.4e10
problem.xmax = 32768000000.0

problem.nx = 12000
problem.nx = 32768

network.rho_nse = 2.e6
network.rho_nse = 1.e7
network.T_nse = 3.e9

network.nse_table_interp_linear = 0
9 changes: 0 additions & 9 deletions massive_star/inputs.hires

This file was deleted.

0 comments on commit 3263136

Please sign in to comment.