Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radiative torus #104

Merged
merged 281 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
281 commits
Select commit Hold shift + click to select a range
fc859f5
Merge remote-tracking branch 'origin/brryan/rad_torus' into brryan/ra…
brryan Jun 15, 2022
99c64ed
Gamma -> dg in rad moment sources
brryan Jun 15, 2022
01d8c1b
backing up
brryan Jun 16, 2022
508f0db
Still experimenting
brryan Jun 16, 2022
3626b74
Check for negative Jl/Jr
brryan Jun 16, 2022
a85453d
Actually apply floors (idx_*) was being shadowed in fixup
brryan Jun 20, 2022
e08fa20
still confused
brryan Jun 20, 2022
90d5b71
Try debugging on cpu
brryan Jun 21, 2022
b10689e
Fix bug in MC
brryan Jun 21, 2022
ae867a8
Still not working... but backing up
brryan Jun 22, 2022
66685d1
Ceiling on H
brryan Jun 23, 2022
901f71b
Working but still errors
brryan Jun 23, 2022
025a7b6
Working on implicit T update
brryan Jun 24, 2022
5783ce2
Works on radiation equilibration problem
brryan Jun 24, 2022
f449f22
bugfix
brryan Jun 24, 2022
87fd1e8
issue with outflow BCs in torus problem
brryan Jun 24, 2022
8d1f15e
remove some old comments
brryan Jun 24, 2022
b2189b0
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Jun 24, 2022
230f236
Merge remote-tracking branch 'origin' into brryan/rad_torus
brryan Jun 25, 2022
8342784
MultiD rootfind draft
brryan Jun 25, 2022
9e3b561
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Jun 25, 2022
2ad9b51
working on newton
brryan Jun 25, 2022
a5ccf14
Rewrite driver a bit
brryan Jun 26, 2022
f28258d
Reworked driver a bit
brryan Jun 26, 2022
179f05d
Add source fixup routine
brryan Jun 27, 2022
c111716
Working on this
brryan Jun 27, 2022
f79a922
Merge remote-tracking branch 'origin/brryan/rad_torus' into brryan/ra…
brryan Jun 27, 2022
ec7f5f1
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Jun 27, 2022
c89cf83
fixed up 1d rootfind not working
brryan Jun 27, 2022
e3f0009
test
brryan Jun 27, 2022
dd518aa
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Jun 27, 2022
a4f5be9
backing up
brryan Jun 27, 2022
bbf02be
working
brryan Jun 28, 2022
24342e5
Got something maybe working, time to iterate
brryan Jun 28, 2022
894d0e0
Successfully iterated
brryan Jun 28, 2022
1fc0fd3
Cleaned up a bit
brryan Jun 28, 2022
4bedc87
Fixed a negative sign
brryan Jun 28, 2022
2386be4
fixed for valencia
brryan Jun 28, 2022
448df13
broke equil test somehow
brryan Jun 28, 2022
ddddcc2
eql works, still some issue with advection
brryan Jun 28, 2022
0f23990
Fixed some bugs but still some issues
brryan Jun 29, 2022
af17451
Works except when ur/ug < tol
brryan Jun 29, 2022
5526361
Trying another rootfind (broken)
brryan Jun 29, 2022
ede958f
energy issue in advection test but about to clean up
brryan Jun 29, 2022
5d1fc8a
fixed bug
brryan Jun 29, 2022
a0d494f
A bit more cleaning up
brryan Jun 29, 2022
bc647ed
Remove mem copies from SourceResidual4 h/t LFR
brryan Jun 30, 2022
8ebcb5a
One zone works for one timestep in torus
brryan Jun 30, 2022
9fe09ff
go back to CPU for faster iteration
brryan Jun 30, 2022
1df35ae
Found a missing sdetgam
brryan Jun 30, 2022
2f7b084
rad torus ran for 50M
brryan Jun 30, 2022
fbd0baa
OK stopping here
brryan Jun 30, 2022
1357ada
Latest commit, breaking everything sigh
brryan Jul 5, 2022
c43e8a2
working
brryan Jul 22, 2022
ffbc3b0
Debugging S3 source component
brryan Jul 25, 2022
b96e9ff
Change divisor used in 4d rootfind
brryan Jul 25, 2022
145f76b
add c2p fixup for rad
brryan Jul 26, 2022
e07a0ac
Why is this so much more broken
brryan Jul 28, 2022
2c2f881
back to cpu
brryan Jul 28, 2022
18a56f6
saving work
brryan Jul 28, 2022
063d2fd
Cant have static fishbone disk with radiation
brryan Jul 29, 2022
af48f3b
I made a change apparently
brryan Aug 2, 2022
f0c1276
source seems well behaved for short time
brryan Aug 2, 2022
36f3036
Cleaned things up a bit but still some explosions... prim BC var for …
brryan Aug 2, 2022
54700e8
Issues with ispec = 1
brryan Aug 2, 2022
a7174ba
New parthenon
brryan Aug 8, 2022
1c14124
New driver compiles
brryan Aug 8, 2022
71ca62f
Fix bad rootfinding stepsize in source
brryan Aug 8, 2022
7f8219d
Added a ceiling on opacity that improves behavior
brryan Aug 8, 2022
48fd294
Still some failures (near disk atmosphere?) but fixup is exploding
brryan Aug 8, 2022
ad53799
Backing up here
brryan Aug 8, 2022
83099e1
Fixed more bugs
brryan Aug 10, 2022
95987d5
Gets close to the next failure
brryan Aug 10, 2022
bc12da3
Working
brryan Aug 11, 2022
45f2d83
Merge remote-tracking branch 'origin' into brryan/rad_torus
brryan Aug 11, 2022
5188635
Adding forward/backward FD evaluations as backup
brryan Aug 11, 2022
fae3a9a
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Aug 11, 2022
b534211
Still trying to figure out why fixup doesn't help
brryan Aug 11, 2022
3ae63c3
Clamp reconstructed rad values, fix sources a bit, still doesn't work
brryan Aug 15, 2022
feabb12
working
brryan Aug 18, 2022
81f79ca
Switch to rho, u floors, increase floors somewhat
brryan Aug 19, 2022
e535252
better rad c2p helps
brryan Aug 19, 2022
f576a81
Many fixes, no improvement
brryan Aug 22, 2022
564f04e
No explosions when turning off reconstructed xi clamp
brryan Aug 22, 2022
936def1
New signal speeds with asymp fluxes
brryan Aug 22, 2022
12dc659
Now explodes at the inner boundary condition
brryan Aug 22, 2022
2b391f6
Lower floor in src rescale relative to real floor
brryan Aug 22, 2022
5c5ddb4
backing up work here
brryan Aug 22, 2022
0fbbe39
Caught bug in rad source term residuals
brryan Aug 23, 2022
2e0253f
Working better after bugfix and switching to cold MHD floors
brryan Aug 23, 2022
461a636
Formatting
brryan Aug 24, 2022
26e85b2
Cleaned up fixup
brryan Aug 24, 2022
2ca7c3b
Cleaned up moments
brryan Aug 24, 2022
f1b6a1a
Cleanup
brryan Aug 24, 2022
4d15978
Make NumRadiationTypes fully runtime
brryan Aug 24, 2022
16d1fd7
Last cleanup
brryan Aug 24, 2022
aaf9c63
Formatting
brryan Aug 24, 2022
f1514a2
new parthenon
brryan Aug 24, 2022
02306c6
Merge branch 'main' of github.com:lanl/phoebus into brryan/rad_torus
brryan Aug 24, 2022
799e056
git didnt do submodule right
brryan Aug 25, 2022
48273b1
Not totally compiling yet
brryan Aug 25, 2022
c19ffa3
Fix driver
brryan Aug 25, 2022
7fc128c
Remove Eddington assumption
brryan Aug 25, 2022
9bc3f61
cleanup
brryan Aug 25, 2022
779d1a7
formatting :(
brryan Aug 25, 2022
fb28a0c
clean up scripts
brryan Aug 25, 2022
01cdda3
undo changes to rad_adv input file
brryan Aug 25, 2022
7e9ee3c
A few more changes
brryan Aug 25, 2022
1014ffc
One last bit of cleaning up
brryan Aug 25, 2022
051dc2d
Radiation ceilings and gamma max ceilings
brryan Aug 25, 2022
4a9c74e
formatting, looks like
brryan Aug 29, 2022
ebbc3df
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Aug 29, 2022
c8c729e
Fixed p9 compiler warnings
brryan Aug 29, 2022
13b96f5
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Aug 29, 2022
6d14228
Fix some runtime consistency issues
brryan Aug 29, 2022
039db87
Deal with some uninitialized memory (potentially)
brryan Aug 29, 2022
42e4182
Make eps a runtiem parameter, 1.e-4 better for initial disk with high…
brryan Aug 30, 2022
aac8e2f
Investigated failures a bit
brryan Aug 30, 2022
4ca41af
trying to get diags to work
brryan Aug 31, 2022
3cc0831
Setting up another calculation of the source terms
brryan Aug 31, 2022
f7afe13
New expression for energy source
brryan Sep 1, 2022
b0aeedd
changes
brryan Sep 1, 2022
17a94c5
new src option
brryan Sep 1, 2022
15a1359
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 1, 2022
3eadbbf
bug in ucon
brryan Sep 1, 2022
cd5a2b2
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 1, 2022
bff5d71
experimenting with conF vs covF
brryan Sep 1, 2022
560b898
Fix bug in Hcon
brryan Sep 1, 2022
6d28986
Terms match, about to clean up
brryan Sep 2, 2022
d5980f4
Change source terms, instrument function calls a bit
brryan Sep 2, 2022
53f0b35
One note for post-Eddington
brryan Sep 2, 2022
33ef99f
Correct zero-comoving-flux Hs
brryan Sep 2, 2022
2d63075
Add pressure deviation to Tmunu in geom source
brryan Sep 3, 2022
7bad22d
caught nasty indexing bug
brryan Sep 6, 2022
034562b
Some bugfixes that improve performance
brryan Sep 7, 2022
f73cde4
Bulk modulus bugfix
brryan Sep 7, 2022
6a84b65
This ran to 200M with no B fields and fix_flux turned off
brryan Sep 7, 2022
b0e2435
update input file
brryan Sep 7, 2022
358f77a
Add option to switch src solvers, format
brryan Sep 7, 2022
e5daa2e
add inputs
brryan Sep 7, 2022
f7a9e07
Robustify the 1d solve a bit
brryan Sep 8, 2022
3693140
Fix some bugs in testing
brryan Sep 8, 2022
f4ba445
Enable rad prim BCs
brryan Sep 8, 2022
5450eb5
rootfind fix
brryan Sep 8, 2022
edb1b67
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 8, 2022
4200b06
current version
brryan Sep 8, 2022
74eaf3a
working
brryan Sep 8, 2022
600b385
Fix bug
brryan Sep 9, 2022
79bab91
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 9, 2022
c1d1445
Actually using prim vars, about to remove some statements
brryan Sep 12, 2022
0bb87eb
Ran to 200M
brryan Sep 12, 2022
fe41403
W ceilings in MHD and radiation moment fluxes
brryan Sep 13, 2022
de51ec6
Update plot_torus script
brryan Sep 13, 2022
20d58f4
more updates to plot script
brryan Sep 13, 2022
1813252
Overhaul of fixup
brryan Sep 13, 2022
e4c765e
fix compile and runtime errors and format
brryan Sep 14, 2022
a19a878
Support GRMHD in plot_torus.py
brryan Sep 14, 2022
5dce379
caught bug, cleaning up now
brryan Sep 14, 2022
884d77d
Fixed some fixup bugs
brryan Sep 14, 2022
234f928
Save now for more development
brryan Sep 14, 2022
c996f2a
Unify fixup procedure a bit, add derived prim calc
brryan Sep 15, 2022
9848859
pack bug in radconservedtoprimfixup
brryan Sep 15, 2022
b4ab518
Weird issue, need to debug locally
brryan Sep 15, 2022
4e85bb2
it wasnt rly a bug it was cmake
brryan Sep 15, 2022
629974e
Need to actually loop rad floors through
brryan Sep 15, 2022
c601ba8
my changes
brryan Sep 15, 2022
d960b9d
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 15, 2022
873f4d1
Added radiation floors through interface
brryan Sep 15, 2022
7f38e22
Weird new bug
brryan Sep 15, 2022
242f724
Replace 0 with robust::SMALL()
brryan Sep 15, 2022
8570774
fixed some bugs
brryan Sep 15, 2022
ba1fef9
wow very bad bug
brryan Sep 15, 2022
112fbff
Floor vars before starting each step? Also need fixup? Actually move …
brryan Sep 15, 2022
c730427
Split up fixup.cpp a bit
brryan Sep 15, 2022
454cc4a
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 15, 2022
1a22e72
Working on accessors
brryan Sep 16, 2022
a9d2b9a
Lots of hacking
brryan Sep 16, 2022
ce25274
Use PostFillDerived functions
brryan Sep 16, 2022
4e88f48
Redo how FillDerived handles things... need to do rad c2p after fluid…
brryan Sep 16, 2022
388df9d
bad geom somewhere
brryan Sep 16, 2022
23f0af6
update
brryan Sep 19, 2022
56782e4
some fixes
brryan Sep 19, 2022
886a5d2
new fixup file
brryan Sep 19, 2022
c1a045a
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 19, 2022
52b7788
More fixups?
brryan Sep 19, 2022
ed4d2a7
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 19, 2022
1a0706e
Clean up
brryan Sep 19, 2022
ab613f8
Add new fixup interp option
brryan Sep 19, 2022
62f15a1
working
brryan Sep 19, 2022
031db09
Silly bug
brryan Sep 19, 2022
c2371f5
formatting
brryan Sep 19, 2022
8ce6759
add other recon options to rad moments
brryan Sep 19, 2022
935b5ac
Clean up some unnecessary flooring in c2p fixes
brryan Sep 20, 2022
a833a40
bugfix
brryan Sep 20, 2022
17dfe6d
clean up fixup_src a bit, use real xi_max
brryan Sep 20, 2022
6fe6fa0
New fixup strats for 1D
brryan Sep 20, 2022
5b90125
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Sep 20, 2022
06664d4
cleaned up oned source a bit
brryan Sep 20, 2022
43791a9
Fix bug in 1D source
brryan Sep 21, 2022
808cba8
Fixed bugs in oned source
brryan Sep 21, 2022
8f03660
Cleanup, formatting
brryan Sep 21, 2022
c63c129
Bugfix for multispec
brryan Sep 21, 2022
f97a7cd
Need a debug statement
brryan Sep 21, 2022
d1fd3f9
Fix xi calculation
brryan Sep 21, 2022
84d9f69
working tirelessly...
brryan Sep 21, 2022
7ed6133
rad torus ran to 500M
brryan Sep 22, 2022
4beb66b
Update rad prims if fluid c2p is called
brryan Sep 22, 2022
9d4c9ed
Split up fluid and rad c2p fixup strategies, fix bug in rad prim upda…
brryan Sep 22, 2022
42f781a
Need to fix MHD
brryan Sep 22, 2022
6c0dfb7
fixed pure MHD, formatted
brryan Sep 22, 2022
2b8f0de
Cleaning up and formatting
brryan Sep 29, 2022
640d082
fix bug in rad adv pgen
brryan Sep 29, 2022
41f458f
upgold
brryan Sep 30, 2022
4d388d3
One more upgold
brryan Sep 30, 2022
99e169f
Miscellaneous cleanups and formatting
brryan Sep 30, 2022
d83229f
upgold linmodes
brryan Sep 30, 2022
013e24a
fix segfault
brryan Sep 30, 2022
cee50b7
Add gm1 to problem gen files
brryan Sep 30, 2022
2742c23
Some apparently unsaved changes?
brryan Oct 10, 2022
23ff64b
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Oct 10, 2022
930fe9a
clean up after merge
brryan Oct 10, 2022
5de3f4d
Why are there still diffs???
brryan Oct 10, 2022
b15acad
Remove C2P floor compile option, replace with runtime param
brryan Oct 11, 2022
9a2f318
Runtime options for c2p fails
brryan Oct 11, 2022
ba707b3
Starting on review comments
brryan Oct 17, 2022
12f57be
Response to JMM review
brryan Oct 17, 2022
0197759
Add inflow check to cons physical bc vars
brryan Oct 17, 2022
f87c3ac
Only apply inflow check to real boundaries
brryan Oct 17, 2022
c654b3f
Fix ndim bug
brryan Oct 17, 2022
4da9370
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Oct 17, 2022
7c95672
Fixed bug in c2p avging
brryan Oct 18, 2022
9eb357b
formatting
brryan Oct 18, 2022
eabba96
fix git submodule error
brryan Oct 18, 2022
aa097b1
Robust rad c2p
brryan Oct 18, 2022
3503103
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Oct 18, 2022
c33ba5b
Fix
brryan Oct 18, 2022
46446dd
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Oct 18, 2022
14f9b89
switch from 1e-100 to 10*robust::SMALL
brryan Oct 18, 2022
ba90814
formatting
brryan Oct 18, 2022
1c8853a
entire back to interior
brryan Oct 18, 2022
69308f1
Warn about a race condition
brryan Oct 19, 2022
8149945
Rad torus is running again (WITHOUT DEREFINE_POLES), clean up for merge
brryan Oct 19, 2022
74cc17b
Update .pin file for rad torus
brryan Oct 19, 2022
6c1d57e
Formatting
brryan Oct 19, 2022
0517add
Clean up some bad defaults
brryan Oct 19, 2022
2b29fd4
A few more changes, only thing left to do is review phoebus_driver.cpp
brryan Oct 19, 2022
de25ff0
upgold mocmc diffusion
brryan Oct 19, 2022
fc20006
Merge branch 'brryan/rad_torus' of github.com:lanl/phoebus into brrya…
brryan Oct 19, 2022
f573220
Simplify phoebus driver
brryan Oct 19, 2022
85daa12
linmode upgold
brryan Oct 20, 2022
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: 0 additions & 8 deletions cmake/Fluid.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ else()
set(USE_VALENCIA 0 CACHE BOOL "Covariant formulation of GRMHD")
endif()

option(PHOEBUS_C2P_ROBUST_FLOORS "Use full floors for c2p robust" ON)

if(PHOEBUS_C2P_ROBUST_FLOORS)
set(USE_C2P_ROBUST_FLOORS 1 CACHE BOOL "Use regular floors for c2p robust")
else()
set(USE_C2P_ROBUST_FLOORS 0 CACHE BOOL "Use only sanity floors for c2p robust")
endif()

option(PHOEBUS_FLUX_AND_SRC_DIAGS "Stash flux divergence and sources for possible output" OFF)
if(PHOEBUS_FLUX_AND_SRC_DIAGS)
set(SET_FLUX_SRC_DIAGS 1 CACHE BOOL "Allocate and set these diagnostics")
Expand Down
1 change: 1 addition & 0 deletions inputs/radiation_advection.pin
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ absorption = true
do_nu_electron = true
do_nu_electron_anti = false
do_nu_heavy = false
src_solver = oned
Yurlungur marked this conversation as resolved.
Show resolved Hide resolved

scattering_fraction = 1.0

Expand Down
184 changes: 184 additions & 0 deletions inputs/torus_rad.pin
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@

<phoebus>
problem = torus
ix1_bc = outflow
ox1_bc = outflow
ix2_bc = reflect
ox2_bc = reflect

<phoebus/mesh>
bc_vars = primitive
#bc_vars = conserved

<parthenon/job>
problem_id = torus # problem ID: basename of output filenames

<parthenon/output0>
file_type = rst
dt = 200.0

<parthenon/output1>
variables = p.density, &
c.density, &
p.velocity, &
c.momentum, &
p.energy, &
c.energy, &
pressure, &
r.p.J, &
r.p.H, &
r.c.E, &
r.c.F, &
g.c.coord, &
g.n.coord, &
g.c.detgam, &
g.c.bcon, &
g.c.alpha, &
g.c.gcov, &
src_terms, &
flux_divergence, &
r.i.kappaH, &
p.bfield

file_type = hdf5 # Tabular data dump
dt = 1.0 # time increment between outputs

<parthenon/time>
nlim = -1 # cycle limit
tlim = 500. # time limit
integrator = rk2 # time integration algorithm
ncycle_out = 1 # interval for stdout summary info
dt_init_fact = 1.e-6

<parthenon/mesh>
nghost = 4
#refinement = adaptive
#numlevel = 3

nx1 = 128 # Number of zones in X1-direction
x1min = 0.59 # minimum value of X1; overwritten for the torus problem
x1max = 3.69 # maximum value of X1; set by <coordinates>/r_outer for the torus problem
ix1_bc = user # Inner-X1 boundary condition flag
ox1_bc = user # Outer-X1 boundary condition flag

nx2 = 128 # Number of zones in X2-direction
x2min = 0 # minimum value of X2
x2max = 1 # maximum value of X2. X2 = 1 -> theta = pi
ix2_bc = user # Inner-X2 boundary condition flag
ox2_bc = user # Outer-X2 boundary condition flag

nx3 = 1 # Number of zones in X3-direction
x3min = 0 # minimum value of X3
x3max = 6.28318530718 # maximum value of X3. 2*pi
ix3_bc = periodic # Inner-X3 boundary condition flag
ox3_bc = periodic # Outer-X3 boundary condition flfgag

num_threads = 1 # maximum number of OMP threads

# Commenting out meshblock sizes makes the simulation 1 meshblock
# <parthenon/meshblock>
# nx1 = 128
# nx2 = 128
# nx3 = 1

<parthenon/refinement0>
field = c.c.bulk.rho
method = derivative_order_1
max_level = 3

<eos>
type = IdealGas
Gamma = 1.66666666666666666666666667
Cv = 1.0

<physics>
hydro = true
rad = true

<fluid>
xorder = 2
cfl = 0.8
riemann = llf
recon = weno5
c2p_max_iter = 100
c2p_tol = 1.e-8
c2p_floor_scale_fac = 1.e-10
c2p_method = robust
Ye = false
mhd = true

<geometry>
a = 0.9375

<coordinates>
derefine_poles = false
r_outer = 250

<radiation>
cfl = 0.5
recon = weno5
method = moment_eddington
absorption = true
do_nu_electron = true
do_nu_electron_anti = false
do_nu_heavy = false
src_solver = oned # fourd
src_use_oned_backup = false # true
src_rootfind_eps = 1.e-6
src_rootfind_tol = 1.e-8
src_rootfind_maxiter = 100
oned_fixup_strategy = ignore_dJ
recon_fixup_strategy = bounds

#scattering_fraction = 1.0
scattering_fraction = 0.5

<opacity>
type = gray
gray_kappa = 1.e-10 # midplane tau/zone >1e3

<units>
scale_free = false
geom_mass_msun = 1.
fluid_mass_g = 1.e26

<fixup>
enable_floors = true
enable_mhd_floors = true
enable_rad_floors = true
enable_ceilings = true
enable_rad_ceilings = true
enable_flux_fixup = false # true
enable_c2p_fixup = true
enable_source_fixup = true
report_c2p_fails = true
report_source_fails = true

fluid_c2p_failure_strategy = interpolate
rad_c2p_failure_strategy = interpolate
src_failure_strategy = floors

floor_type = ExpX1RhoSie
rho0_floor = 1.0e-5
sie0_floor = 1.0e-2
rho_exp_floor = -2.0
sie_exp_floor = -1.0
ceiling_type = ConstantGamSie
sie0_ceiling = 1.0
gam0_ceiling = 10.0
rad_floor_type = ExpX1J
J0_floor = 1.e-6
J_exp_floor = -3.0
rad_ceiling_type = ConstantXi0
xi0_ceiling = 0.95

<torus>
target_beta = 100.
harm_beta_normalization = true
u_jitter = 0.05
kappa = 0.01
rin = 6.0
rmax = 12.0
n_inside_horizon = 5
magnetized = true
initial_radiation = thermal
6 changes: 6 additions & 0 deletions scripts/python/phoebus_eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def T_from_rho_u_Ye(self, rho, u, Ye):
def u_from_rho_T_Ye(self, rho, T, Ye):
raise NotImplementedError()

def P_from_rho_u_Ye(self, rho, u, Ye):
Yurlungur marked this conversation as resolved.
Show resolved Hide resolved
raise NotImplementedError()

# -- Ideal gas EOS
class IdealEOS(BaseEOS):
def __init__(self, params):
Expand All @@ -40,6 +43,9 @@ def T_from_rho_u_Ye(self, rho, u, Ye):
def u_from_rho_T_Ye(self, rho, T, Ye):
return rho * self.Cv * T

def P_from_rho_u_Ye(self, rho, u, Ye):
return self.gm1 * u

# ---------------------------------------------------------------------------- #
# -- Dictionary of EOS types
eos_type_dict = {'IdealGas' : IdealEOS}
Loading