Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions networks/general_null/xrb_ignition.net
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# this is the null description for the X-ray burst ignition condition
#

# name short-name aion zion
hydrogen-1 H1 1.0 1.0
helium-4 He4 4.0 2.0
oxygen-14 O14 14.0 8.0
oxygen-15 O15 15.0 8.0
40 changes: 40 additions & 0 deletions util/xrb_ignition/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
PRECISION = DOUBLE
PROFILE = FALSE

DEBUG = FALSE

DIM = 3

COMP = gnu

USE_MPI = FALSE
USE_OMP = FALSE

USE_REACT = TRUE

EBASE = main

# define the location of the Microphysics top directory
MICROPHYSICS_HOME := ../..

# This sets the EOS directory
EOS_DIR := helmholtz

# This sets the network directory
NETWORK_DIR := general_null
NETWORK_INPUTS := xrb_ignition.net

USE_CONDUCTIVITY := TRUE
CONDUCTIVITY_DIR := stellar

USE_SCREENING := TRUE
SCREEN_METHOD := screen5

USE_SIMPLIFIED_SDC = TRUE

EXTERN_SEARCH += .

Bpack := ./Make.package
Blocs := .

include $(MICROPHYSICS_HOME)/unit_test/Make.unit_test
2 changes: 2 additions & 0 deletions util/xrb_ignition/Make.package
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CEXE_sources += main.cpp
CEXE_headers += ignition_condition.H
14 changes: 14 additions & 0 deletions util/xrb_ignition/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# `xrb_ignition`

`xrb_ignition` finds the ignition condition of the X-ray burst
based on https://github.com/andrewcumming/settle
See DOI: 10.1086/317191 for details.

Usage:
./main.ex <X> <Z> <Fb> <mdot> <COMPRESS>

X: Hydrogen massfraction
Z: CNO massfraction
Fb: Base Flux in MeV/nucleon/mdot
mdot: Local accretion rate in Eddington unit
COMPRESS: To include compressional heating or not.
9 changes: 9 additions & 0 deletions util/xrb_ignition/_parameters
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@namespace: unit_test

run_prefix string ""

X real 0.71
Z real 0.01
mdot real 0.1
Fb real 150.0
COMPRESS int 0
Loading
Loading