Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6a9d232
add additional model dimension and allow 2d model state
zhichen3 Oct 8, 2025
2572ae8
Merge branch 'xrb_sph_centrifugal' of github.com:zhichen3/Castro into…
zhichen3 Oct 13, 2025
163cd88
temporary update 2d model
zhichen3 Oct 13, 2025
67a4627
Merge branch 'xrb_sph_centrifugal' of github.com:zhichen3/Castro into…
zhichen3 Oct 13, 2025
d6be463
temporary update
zhichen3 Oct 16, 2025
7b16798
update initial model to work with 2d
zhichen3 Oct 20, 2025
a85f7d7
delete extra comment line
zhichen3 Oct 20, 2025
068ddb7
add good define
zhichen3 Oct 21, 2025
690e05f
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
eb2b86d
more guards
zhichen3 Oct 21, 2025
d2bf81b
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
716d39a
use npts_x
zhichen3 Oct 21, 2025
be6fb28
more fixes
zhichen3 Oct 21, 2025
da27434
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
be552c9
update initial model
zhichen3 Oct 21, 2025
f7aa889
update interpolate in castro_react
zhichen3 Oct 21, 2025
f07580d
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
5326438
fix
zhichen3 Oct 21, 2025
4c0e7a0
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
92474cc
mroe fix
zhichen3 Oct 21, 2025
d4caf7c
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
fd746c5
Merge branch '2d_initial_model' into xrb_sph_centrifugal
zhichen3 Oct 21, 2025
3f6280c
fix initial model
zhichen3 Oct 22, 2025
91142e3
Merge branch 'xrb_sph_centrifugal' of github.com:zhichen3/Castro into…
zhichen3 Oct 22, 2025
03f3213
separate out initial condition setting into separate function
zhichen3 Oct 28, 2025
1c96760
change to smaller max npts x/y model
zhichen3 Oct 28, 2025
bc3c2c0
split out hse pres calcualtion and try averaging for integration
zhichen3 Oct 29, 2025
7e20c28
try to use relaxation after 1d integration
zhichen3 Nov 3, 2025
cfd1756
fix dp drho
zhichen3 Nov 3, 2025
ef3a8bb
allow left and right boundary to vary by assuming outflow condition
zhichen3 Nov 3, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/good_defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ BL_LANG_FORT
BL_LAZY
BL_USE_SETBUF
MODEL_PARSER
DIM_MODEL
DIFFUSION
DO_PROBLEM_POST_INIT
DO_PROBLEM_POST_RESTART
Expand Down
28 changes: 25 additions & 3 deletions Exec/Make.Castro
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,36 @@ ifeq ($(USE_ALL_CASTRO), TRUE)
Source/problems Source/sources
endif

MAX_NPTS_MODEL ?= 10000
NUM_MODELS ?= 1
DIM_MODEL ?= 1

# Only 1 or 2 dimensions are supported for now.
ifeq ($(filter $(DIM_MODEL),1 2),)
$(error Invalid DIM_MODEL=$(DIM_MODEL). Must be 1 or 2.)
endif

ifeq ($(DIM_MODEL), 1)
MAX_NPTS_MODEL ?= 10000
else ifeq ($(DIM_MODEL), 2)
MAX_NPTS_X_MODEL ?= 10000
MAX_NPTS_Y_MODEL ?= 10000
endif

ifeq ($(USE_MODEL_PARSER), TRUE)
Bdirs += Util/model_parser
DEFINES += -DMODEL_PARSER -DNPTS_MODEL=$(MAX_NPTS_MODEL) -DNUM_MODELS=$(NUM_MODELS)
DEFINES += -DMODEL_PARSER \
-DNUM_MODELS=$(NUM_MODELS) \
-DDIM_MODEL=$(DIM_MODEL)

ifeq ($(DIM_MODEL), 1)
DEFINES += -DNPTS_MODEL=$(MAX_NPTS_MODEL)
else ifeq ($(DIM_MODEL), 2)
DEFINES += -DNPTS_X_MODEL=$(MAX_NPTS_X_MODEL) \
-DNPTS_Y_MODEL=$(MAX_NPTS_Y_MODEL)
endif
endif


ifeq ($(USE_RNG_STATE_INIT), TRUE)
DEFINES += -DRNG_STATE_INIT
endif
Expand All @@ -195,7 +217,7 @@ ifeq ($(USE_MHD), TRUE)
endif

ifeq ($(USE_GRAV), TRUE)
Bdirs += Source/gravity Source/scf
Bdirs += Source/gravity Source/scf
DEFINES += -DGRAVITY
USE_MLMG = TRUE
endif
Expand Down
7 changes: 5 additions & 2 deletions Exec/science/xrb_spherical/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ CASTRO_HOME ?= ../../..

USE_JACOBIAN_CACHING = TRUE
USE_MODEL_PARSER = TRUE
NUM_MODELS := 2
NUM_MODELS := 1
DIM_MODEL := 2
MAX_NPTS_X_MODEL = 3100
MAX_NPTS_Y_MODEL = 1000

# This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS
EOS_DIR := helmholtz

# This sets the network directory in $(MICROPHYSICS_HOME)/networks
NETWORK_DIR := he-burn/he-burn-18a
NETWORK_DIR := he-burn/ase

INTEGRATOR_DIR := RKC

Expand Down
1 change: 0 additions & 1 deletion Exec/science/xrb_spherical/initial_model.H

This file was deleted.

Loading
Loading