Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Nov 9, 2023
1 parent aed0212 commit c6123de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion nse_tabular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ elsewhere.
This requires compiling with

```
USE_TABULAR_NSE=TRUE
USE_NSE_TABLE=TRUE
```

This will change the equation of state to work in terms of (Y_e, abar,
Expand Down Expand Up @@ -39,6 +39,8 @@ The table provides:

* dAbar/dt : evolution of Abar in 1/s

* d<B/A>/dt : evolution of <B/A> in MeV/s

* e_nu : weak rate neutrino loss energy in erg/g/s

* X(A), X(B), ... : the reduced composition mass fractions. They are
Expand Down Expand Up @@ -92,3 +94,12 @@ The data is ordered such that rho varies the slowest (from low to
high), T varies the next slowest (from low to high), and Ye varies the
fastest (from high to low).

## Outputting for a different network

At the moment, the script is configured for ``aprox19``. To change it
to output to a different network, a new function needs to be added in
the same form as the ``get_aprox19_comp`` function. The job of that
run is to reduce the composition down to that of the network on the
grid. The main thing that would need to be done is to change the list
of nuclei and update the list ``X[]`` to output them in the proper
order.
2 changes: 1 addition & 1 deletion nse_tabular/nse_table_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ namespace nse_table
AMREX_GPU_MANAGED amrex::Array1D<amrex::Real, 1, npts> dbeadttab;
AMREX_GPU_MANAGED amrex::Array1D<amrex::Real, 1, npts> enutab;

AMREX_GPU_MANAGED amrex::Array2D<amrex::Real, 1, NumSpec, 1, npts> massfractab;
AMREX_GPU_MANAGED amrex::Array2D<amrex::Real, 1, NumSpec, 1, npts> massfractab;
}
#endif

0 comments on commit c6123de

Please sign in to comment.