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

Add non-relativistic radiation transport solvers (explicit and implicit) and cosmic ray transport #492

Merged
merged 155 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
f1ed2b0
Merge radiation with master
yanfeij Apr 13, 2023
71108cd
Remove thermal conduction. fix style issues
yanfeij Apr 13, 2023
2d8a532
Update readme to indicate Athena++ Radiation GRMHD
yanfeij Apr 13, 2023
b55372c
Remove particles
yanfeij Apr 13, 2023
be704ba
remove input file and problem generators that are not needed
yanfeij Apr 13, 2023
f6b9537
remove configure.log
yanfeij Apr 14, 2023
95035d6
fix CPPLINT.cfg file
yanfeij Apr 14, 2023
d97a0cf
change the input file to be the same as in master
yanfeij Apr 14, 2023
090db4c
remove input files that are not needed
yanfeij Apr 14, 2023
8c19406
remove particle boundary files
yanfeij Apr 14, 2023
a2c5f9a
switch the fft folder back to master
yanfeij Apr 14, 2023
16e1f8b
remove files that not needed
yanfeij Apr 14, 2023
d90ca52
add regression test for mhd
yanfeij Apr 14, 2023
cc52485
Update problem generator quirk
yanfeij Apr 14, 2023
e03d289
fix problem generators
yanfeij Apr 15, 2023
bfc4252
fix test problems for cr
yanfeij Apr 15, 2023
49a80e0
Add an option to enrol user defined streaming
yanfeij Apr 20, 2023
996e688
Change Radiation to NRRadiation. Change pmb->prad to pmb->pnrrad
yanfeij May 1, 2023
99bce79
fix the regression test
yanfeij May 1, 2023
77d055f
Add a doppler flag
yanfeij May 4, 2023
73d6cda
fix a bug in explicit angular flux
yanfeij May 7, 2023
f7f535f
Merge branch 'master' into rad_newtonian
felker Jun 9, 2023
7542e78
Start fixing style
felker Jun 9, 2023
a43bc58
Fixed python style error for CR tests
changgoo Jun 9, 2023
1c00d10
Fixed python style error for implicit rad tests
changgoo Jun 9, 2023
f33cd59
Fixed python style error for nr rad tests
changgoo Jun 9, 2023
380cfc6
Fixed python style for multi_group rad test
changgoo Jun 9, 2023
8813455
Other python sytle fixes
changgoo Jun 9, 2023
44edbad
Added new regrestion tests to jenkins script
changgoo Jun 9, 2023
8d44ee7
Delete trailing whitespace, etc
felker Jun 14, 2023
6cb218a
More style fixes
felker Jun 14, 2023
efab0d8
More style fixes
felker Jun 14, 2023
290b254
Fix style
felker Jun 14, 2023
df38d3c
Style fixes
felker Jun 15, 2023
bf42ffd
More style
felker Jun 15, 2023
ded912e
More style fixes
felker Jun 16, 2023
8912fdf
Fix comments in radiation boundary condition
yanfeij Jun 16, 2023
9956a54
Fix file description on radiation boundaries
yanfeij Jun 16, 2023
acb7335
Style fixes
felker Jun 16, 2023
f59568e
Fix ALI_LEN pragma
yanfeij Jun 16, 2023
231bc84
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 16, 2023
3cff005
style
felker Jun 16, 2023
48e9d8d
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 16, 2023
9c71522
Style fixes
felker Jun 16, 2023
32f9b97
Style
felker Jun 16, 2023
701f1fb
Style
felker Jun 16, 2023
6b27285
Style
felker Jun 16, 2023
61e0e08
Style
felker Jun 16, 2023
3f9c7cb
Style
felker Jun 16, 2023
9bb077d
Fix style
felker Jun 16, 2023
c2bc598
Fix style
felker Jun 16, 2023
7a73cb9
Almost done with style fixes
felker Jun 16, 2023
ce7ac15
Avoid runtime/casting cpplint error
felker Jun 16, 2023
92f17d7
Fix line length violations
felker Jun 16, 2023
63cd504
Merge branch 'master' into rad_newtonian
felker Jun 16, 2023
2531a9d
Python style fixes
felker Jun 16, 2023
be70f48
Add std::
felker Jun 16, 2023
9733f35
fabs --> std::abs
felker Jun 16, 2023
44dcdec
Fix style
felker Jun 16, 2023
6846b46
Unused var
felker Jun 19, 2023
9efdd9f
Don't typecast macros to Real
felker Jun 19, 2023
28a2783
Use static_cast<Real>(TINY_NUMBER) in std::max,min
felker Jun 20, 2023
4e6516a
stdio.h ---> cstdio
felker Jun 20, 2023
d83ed07
style
felker Jun 20, 2023
096f975
Replace accidentally deleted variable declarations
felker Jun 20, 2023
ff283f6
Undo relative paths
felker Jun 20, 2023
90c75c8
remove uncessary files
yanfeij Jun 20, 2023
f7bdb1c
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 20, 2023
453ad4b
Update README.md
felker Jun 20, 2023
d74c8f0
Update src/bvals/cc/flux_correction_cc.cpp
felker Jun 20, 2023
b5faf5f
Update src/coordinates/spherical_polar.cpp
felker Jun 20, 2023
dda3455
fix notes about numerical recipe
yanfeij Jun 23, 2023
641be90
remove cr streaming problem generator
yanfeij Jun 23, 2023
37c6e94
keep the history output the same as in master
yanfeij Jun 23, 2023
08b8c19
fix a long macro definition line in history output
yanfeij Jun 24, 2023
de21dc5
add comments for reconstruction function
yanfeij Jun 24, 2023
3c80336
remove grav regress tests that are not needed
yanfeij Jun 24, 2023
d90d87f
aligned comments in configure script
c-white Jun 25, 2023
78230a6
made minor formatting changes
c-white Jun 25, 2023
04c04f1
made whitespace formatting changes
c-white Jun 25, 2023
1c9eccf
revert tst/regression/scripts/utils/athena.py
yanfeij Jun 26, 2023
8dbca02
add vis/python/.gitignore
yanfeij Jun 26, 2023
24246a9
Fix style
felker Jun 27, 2023
aefe2bb
Trailing whitespace
felker Jun 27, 2023
7377ce7
Revert change that broke AMR regression test
felker Jun 28, 2023
f5e743f
Revert merge mistake
felker Jun 28, 2023
d502d0d
Get rid of C99-style dynamic arrays
felker Jun 28, 2023
5168ba8
Buggy OpenMP SIMD pragmas with icpx
felker Jun 28, 2023
0996a7c
initialize imax
felker Jun 29, 2023
7505537
Update problem --> orbital_advection input block
felker Jun 29, 2023
555cb81
Disable -Warray-bounds for oneAPI
felker Jun 29, 2023
0b29614
Added ncycle_out=100 to reduce log size
changgoo Jun 29, 2023
4c3d397
Fix comments in files of cosmic rays
yanfeij Jun 29, 2023
94bfb2d
Add more ncycle_out
changgoo Jun 29, 2023
42bd749
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 29, 2023
0866170
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 29, 2023
48a5159
Fix comments in cosmic ray problem generator and input file
yanfeij Jun 29, 2023
9c3cd9e
remove unused input files
yanfeij Jun 29, 2023
e805f09
fix comments, file descriptions
yanfeij Jun 29, 2023
7fd9a3a
Fix comments in radiation problem generator
yanfeij Jun 30, 2023
6b13c55
Fix comments in implicit radiation task list
yanfeij Jun 30, 2023
853ed7a
Trim whitespace
felker Jun 30, 2023
3c307be
fix comments
yanfeij Jun 30, 2023
ccf5159
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jun 30, 2023
f79a8f4
Add compatabilitycheck for nr_radiationa and radiation
yanfeij Jun 30, 2023
7d573e4
fix configure.py comment
yanfeij Jun 30, 2023
cfc13e4
Fix comments and styles
yanfeij Jun 30, 2023
c8378e6
fix cosmic ray regression test
yanfeij Jun 30, 2023
76a36bb
Modify cosmic ray regression test
yanfeij Jun 30, 2023
906d19d
Style fix and add ncycle_out
changgoo Jun 30, 2023
461b5d9
Added ncycle_out parameter and set it to 100
changgoo Jun 30, 2023
8d49e84
Minor text changes
felker Jul 1, 2023
61a31ce
Delete 2x vacuum BC files with empty implementations
felker Jul 1, 2023
4b688ff
Add comment
felker Jul 1, 2023
73b4c44
Update configure.py
felker Jul 1, 2023
d544f59
Clean git working directory
felker Jul 2, 2023
73d8f97
Merge branch 'master' into rad_newtonian
felker Jul 2, 2023
8db51b3
remove unused block in cr_diffusion input file
yanfeij Jul 3, 2023
f9d9133
remove unsed radiation boundary flag
yanfeij Jul 3, 2023
79603c2
Merge branch 'master' into rad_newtonian
felker Jul 7, 2023
3b44a79
remove unused bvars_fft_grav
yanfeij Jul 7, 2023
81b7ea1
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jul 7, 2023
1231369
fix comments in regression test scripts
yanfeij Jul 7, 2023
be31218
remove unused fft grav
yanfeij Jul 7, 2023
3a2d42e
Add space between radiation and radhydro
yanfeij Jul 7, 2023
2ecc43b
simplify the regression test problem
yanfeij Jul 7, 2023
4a28f05
fix comments
yanfeij Jul 7, 2023
0de50a6
Change Prat and Crat to prat and crat in the input file
yanfeij Jul 7, 2023
c1964a3
Add IM_RADIATION and CR in show_config
yanfeij Jul 7, 2023
01273c4
Remove unused module
felker Jul 7, 2023
4bcb56a
Deduplicate configure output
felker Jul 10, 2023
ea82d58
remove flag=2 for weighte_ave that is not needed
yanfeij Jul 11, 2023
3c27bb9
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jul 11, 2023
e354f2e
Whitespace
felker Jul 11, 2023
4ae7321
Add new macro BIG_NUMBER
felker Jul 11, 2023
80502a8
Use case fallthrough
felker Jul 11, 2023
7268397
Revert real_lowest changes
felker Jul 11, 2023
c2f8c0f
Revert deletion of space between fields in history output
felker Jul 11, 2023
f83dd72
Rename pb to bsq
felker Jul 11, 2023
452ac47
Use variable to hold hardcoded constant
felker Jul 11, 2023
b84c0ec
Add comment
felker Jul 11, 2023
65ca2d9
explain the fitting formula. Remove unused mri3d regress test
yanfeij Jul 11, 2023
fccd647
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jul 11, 2023
47d3f79
Remove 3D MRI ref sol
felker Jul 11, 2023
bd86b09
Style
felker Jul 11, 2023
d68e6b8
Style
felker Jul 11, 2023
c69089f
vel to vsq
felker Jul 14, 2023
c261d68
Change function names for CR coordinate source terms
yanfeij Jul 15, 2023
bd3fa05
Merge branch 'rad_newtonian' of github.com:PrincetonUniversity/athena…
yanfeij Jul 15, 2023
f787887
Change function name FitBlackBody and BlackBodySpec
yanfeij Jul 15, 2023
1d955df
Fix comments
yanfeij Jul 15, 2023
1e75c09
Fix comments
yanfeij Jul 15, 2023
885212c
combine functions in one file
yanfeij Jul 15, 2023
bf71286
Line length
felker Jul 16, 2023
99487a6
Change fn names
felker Jul 16, 2023
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Configured outputs
Makefile
src/defs.hpp
configure.log

# Object and binary directories
obj/
Expand Down
7 changes: 7 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SRC_FILES := $(wildcard src/*.cpp) \
$(wildcard src/bvals/cc/fft_grav/*.cpp) \
$(wildcard src/bvals/cc/hydro/*.cpp) \
$(wildcard src/bvals/cc/mg/*.cpp) \
$(wildcard src/bvals/cc/nr_radiation/*.cpp) \
$(wildcard src/bvals/fc/*.cpp) \
$(wildcard src/bvals/orbital/*.cpp) \
$(wildcard src/bvals/utils/*.cpp) \
Expand All @@ -45,6 +46,12 @@ SRC_FILES := $(wildcard src/*.cpp) \
$(wildcard src/hydro/*.cpp) \
$(wildcard src/hydro/srcterms/*.cpp) \
$(wildcard src/hydro/hydro_diffusion/*.cpp) \
$(wildcard src/nr_radiation/*.cpp) \
$(wildcard src/nr_radiation/integrators/*.cpp) \
$(wildcard src/nr_radiation/integrators/srcterms/*.cpp) \
$(wildcard src/nr_radiation/implicit/*.cpp) \
$(wildcard src/cr/*.cpp) \
$(wildcard src/cr/integrators/*.cpp) \
src/hydro/rsolvers/$(RSOLVER_DIR)$(RSOLVER_FILE) \
$(wildcard src/inputs/*.cpp) \
$(wildcard src/mesh/*.cpp) \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ athena
<img width="345" height="345" src="https://user-images.githubusercontent.com/1410981/115276281-759d8580-a108-11eb-9fc9-833480b97f95.png">
</p>

Athena++ GRMHD code and adaptive mesh refinement (AMR) framework
Athena++ radiation GRMHD code and adaptive mesh refinement (AMR) framework

Please read [our contributing guidelines](./CONTRIBUTING.md) for details on how to participate.

Expand Down
150 changes: 120 additions & 30 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,39 @@
# Makefile.in and src/defs.hpp.in respectively.
#
# The following options are implememted:
# -h --help help message
# --prob=name use src/pgen/name.cpp as the problem generator
# --coord=xxx use xxx as the coordinate system
# --eos=xxx use xxx as the equation of state
# --flux=xxx use xxx as the Riemann solver
# --nghost=xxx set NGHOST=xxx
# --nscalars=xxx set NSCALARS=xxx
# -eos_table enable EOS table
# -b enable magnetic fields
# -s enable special relativity
# -g enable general relativity
# -t enable interface frame transformations for GR
# -debug enable debug flags (-g -O0); override other compiler options
# -coverage enable compiler-dependent code coverage flags
# -float enable single precision (default is double)
# -mpi enable parallelization with MPI
# -omp enable parallelization with OpenMP
# -hdf5 enable HDF5 output (requires the HDF5 library)
# --hdf5_path=path path to HDF5 libraries (requires the HDF5 library)
# -fft enable FFT (requires the FFTW library)
# --fftw_path=path path to FFTW libraries (requires the FFTW library)
# --grav=xxx use xxx as the self-gravity solver
# --cxx=xxx use xxx as the C++ compiler (works w/ or w/o -mpi)
# --ccmd=name use name as the command to call the (non-MPI) C++ compiler
# --mpiccmd=name use name as the command to call the MPI C++ compiler
# --gcovcmd=name use name as the command to call the gcov utility
# --cflag=string append string whenever invoking compiler/linker
# --include=path use -Ipath when compiling
# --lib_path=path use -Lpath when linking
# --lib=xxx use -lxxx when linking
# -h --help help message
# --prob=name use src/pgen/name.cpp as the problem generator
# --coord=xxx use xxx as the coordinate system
# --eos=xxx use xxx as the equation of state
# --flux=xxx use xxx as the Riemann solver
# --nghost=xxx set NGHOST=xxx
# --nscalars=xxx set NSCALARS=xxx
# -eos_table enable EOS table
# -b enable magnetic fields
# -s enable special relativity
# -g enable general relativity
# -t enable interface frame transformations for GR
# -debug enable debug flags (-g -O0); override other compiler options
# -coverage enable compiler-dependent code coverage flags
# -float enable single precision (default is double)
# -mpi enable parallelization with MPI
# -omp enable parallelization with OpenMP
# -hdf5 enable HDF5 output (requires the HDF5 library)
# --hdf5_path=path path to HDF5 libraries (requires the HDF5 library)
# -fft enable FFT (requires the FFTW library)
# --fftw_path=path path to FFTW libraries (requires the FFTW library)
# --grav=xxx use xxx as the self-gravity solver
# --cxx=xxx use xxx as the C++ compiler (works w/ or w/o -mpi)
# --ccmd=name use name as the command to call the (non-MPI) C++ compiler
# --mpiccmd=name use name as the command to call the MPI C++ compiler
# --gcovcmd=name use name as the command to call the gcov utility
# --cflag=string append string whenever invoking compiler/linker
# --include=path use -Ipath when compiling
# --lib_path=path use -Lpath when linking
# --lib=xxx use -lxxx when linking
# -nr_radiation turn on radiation transport
felker marked this conversation as resolved.
Show resolved Hide resolved
felker marked this conversation as resolved.
Show resolved Hide resolved
# -implicit_radiation implicit radiation transport module
# -cr enable cosmic ray transport
# ----------------------------------------------------------------------------------------

# Modules
Expand Down Expand Up @@ -205,6 +208,24 @@
default='',
help='path to HDF5 libraries')

# -radiation argument
parser.add_argument('-nr_radiation',
action='store_true',
default=False,
help='enable non-relativistic radiative transfer')

# -radiation argument
felker marked this conversation as resolved.
Show resolved Hide resolved
parser.add_argument('-implicit_radiation',
action='store_true',
default=False,
help='enable radiative transfer')

# -cosmic ray argument
parser.add_argument('-cr',
action='store_true',
default=False,
help='enable cosmic ray transport')

# The main choices for --cxx flag, using "ctype[-suffix]" formatting, where "ctype" is the
# major family/suite/group of compilers and "suffix" may represent variants of the
# compiler version and/or predefined sets of compiler options. The C++ compiler front ends
Expand Down Expand Up @@ -444,6 +465,31 @@ def c_to_cpp(arg):
if not args['t']:
makefile_options['RSOLVER_FILE'] += '_no_transform'


# -radiation argument
definitions['NRAD_VARIABLES'] = '0'

if args['nr_radiation']:
definitions['NR_RADIATION_ENABLED'] = '1'
definitions['NRAD_VARIABLES'] = '14'
else:
definitions['NR_RADIATION_ENABLED'] = '0'

if args['implicit_radiation']:
definitions['IM_RADIATION_ENABLED'] = '1'
definitions['NRAD_VARIABLES'] = '14'
else:
definitions['IM_RADIATION_ENABLED'] = '0'

# -cr argument
definitions['NCR_VARIABLES'] = '0'
if args['cr']:
definitions['CR_ENABLED'] = '1'
definitions['NCR_VARIABLES'] = '4'
else:
definitions['CR_ENABLED'] = '0'


# --cxx=[name] argument
felker marked this conversation as resolved.
Show resolved Hide resolved
if args['cxx'] == 'g++':
# GCC is C++11 feature-complete since v4.8.1 (2013-05-31)
Expand Down Expand Up @@ -817,6 +863,9 @@ def c_to_cpp(arg):
print(' Number of scalars: ' + args['nscalars'])
print(' Special relativity: ' + ('ON' if args['s'] else 'OFF'))
print(' General relativity: ' + ('ON' if args['g'] else 'OFF'))
print(' Radiative Transfer: ' + ('ON' if args['nr_radiation'] else 'OFF'))
print(' Implicit Radiation: ' + ('ON' if args['implicit_radiation'] else 'OFF'))
print(' Cosmic Ray Transport: ' + ('ON' if args['cr'] else 'OFF'))
print(' Frame transformations: ' + ('ON' if args['t'] else 'OFF'))
print(' Self-Gravity: ' + self_grav_string)
print(' Super-Time-Stepping: ' + ('ON' if args['sts'] else 'OFF'))
Expand All @@ -835,3 +884,44 @@ def c_to_cpp(arg):
print(' Compiler: ' + args['cxx'])
print(' Compilation command: ' + makefile_options['COMPILER_COMMAND'] + ' '
+ makefile_options['PREPROCESSOR_FLAGS'] + ' ' + makefile_options['COMPILER_FLAGS'])

# write the configuration optitions into a log file
flog = open('./configure.log', 'w')
flog.write('Your Athena++ distribution has now been configured with the following options:' + '\n') # noqa
flog.write(' Problem generator: ' + args['prob'] + '\n')
flog.write(' Coordinate system: ' + args['coord'] + '\n')
flog.write(' Equation of state: ' + args['eos'] + '\n')
flog.write(' Riemann solver: ' + args['flux'] + '\n')
flog.write(' Magnetic fields: ' + ('ON' if args['b'] else 'OFF') + '\n')
flog.write(' Number of scalars: ' + args['nscalars'] + '\n')
flog.write(' Special relativity: ' + ('ON' if args['s'] else 'OFF') + '\n')
flog.write(' General relativity: ' + ('ON' if args['g'] else 'OFF') + '\n')
flog.write(' Radiative Transfer: ' + ('ON' if args['nr_radiation'] else 'OFF')
+ '\n')
flog.write(' Implicit Radiation: ' + ('ON' if args['implicit_radiation']
else 'OFF') + '\n')
flog.write(' Cosmic Ray Transport: ' + ('ON' if args['cr'] else 'OFF') + '\n')
flog.write(' Frame transformations: ' + ('ON' if args['t'] else 'OFF') + '\n')
flog.write(' Self-Gravity: ' + self_grav_string + '\n')
flog.write(' Super-Time-Stepping: ' + ('ON' if args['sts'] else 'OFF') + '\n')
flog.write(' Debug flags: ' + ('ON' if args['debug'] else 'OFF') + '\n')
flog.write(' Code coverage flags: ' + ('ON' if args['coverage'] else 'OFF')
+ '\n')
flog.write(' Linker flags: ' + makefile_options['LINKER_FLAGS'] + ' '
+ makefile_options['LIBRARY_FLAGS'] + '\n')
flog.write(' Floating-point precision: ' + ('single' if args['float'] else 'double')
+ '\n')
flog.write(' Number of ghost cells: ' + args['nghost'] + '\n')
flog.write(' MPI parallelism: ' + ('ON' if args['mpi'] else 'OFF') + '\n')
flog.write(' OpenMP parallelism: ' + ('ON' if args['omp'] else 'OFF') + '\n')
flog.write(' FFT: ' + ('ON' if args['fft'] else 'OFF') + '\n')
flog.write(' HDF5 output: ' + ('ON' if args['hdf5'] else 'OFF') + '\n')
if args['hdf5']:
flog.write(' HDF5 precision: ' + ('double' if args['h5double']
else 'single') + '\n')
flog.write(' Compiler: ' + args['cxx'] + '\n')
flog.write(' Compilation command: ' + makefile_options['COMPILER_COMMAND'] + ' '
+ makefile_options['PREPROCESSOR_FLAGS'] + ' '
+ makefile_options['COMPILER_FLAGS'] + '\n')

flog.close()
74 changes: 74 additions & 0 deletions inputs/cosmic_ray/athinput.cr_diffusion
felker marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<comment>
problem = cosmic ray diffusion
reference =
configure = --prob=cr_diffusion

<job>
problem_id = cr # problem ID: basename of output filenames

#<output1>
#file_type = hdf5 # Binary data dump
#dt = 0.2 # time increment between outputs
#variable = prim

#<output2>
#file_type = hst # Binary data dump
#dt = 0.001 # time increment between outputs

#<output3>
#file_type = rst # Binary data dump
#dt = 0.02 # time increment between outputs

<time>
cfl_number = 0.3 # The Courant, Friedrichs, & Lewy (CFL) Number
nlim = -1 # cycle limit
tlim = 0.2 # time limit

<mesh>
nx1 = 16 # Number of zones in X1-direction
x1min = -1.0 # minimum value of X1
x1max = 1.0 # maximum value of X1
ix1_bc = periodic # inner-X1 boundary flag
ox1_bc = periodic # inner-X1 boundary flag

nx2 = 256 # Number of zones in X2-direction
x2min = -1.0 # minimum value of X2
x2max = 1.0 # maximum value of X2
ix2_bc = outflow # inner-X2 boundary flag
ox2_bc = outflow # inner-X2 boundary flag

nx3 = 1 # Number of zones in X3-direction
x3min = -1.0 # minimum value of X3
x3max = 1.0 # maximum value of X3
ix3_bc = periodic # inner-X3 boundary flag
ox3_bc = periodic # inner-X3 boundary flag

#refinement = static

<meshblock>
nx1 = 16
nx2 = 256
nx3 = 1

<refinement1>
x1min = 1
x1max = 23.4414
x2min = 0.698132
x2max = 2.44346
x3min = 0.0
x3max = 6.283185307179586
level = 2

<hydro>
gamma = 1.6666666666667 # gamma = C_p/C_v
dfloor = 1.e-8
pfloor = 1.e-7

<cr>
vmax = 100
src_flag = 0

<problem>
v0 = 0
sigma = 1.e3
direction = 1
74 changes: 74 additions & 0 deletions inputs/radiation/athinput.atmosphere
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<comment>
problem = Radiation beam test
felker marked this conversation as resolved.
Show resolved Hide resolved
reference =
configure = --prob=beam

<job>
problem_id = atmosphere # problem ID: basename of output filenames

#<output1>
#file_type = hst # History data dump
#dt = 0.01 # time increment between outputs

#<output2>
#file_type = vtk # Binary data dump
#variable = prim # variables to be output
#dt = 1.0 # time increment between outputs

#<output3>
#file_type = rst # Binary data dump
#dt = 0.00001 # time increment between outputs

<output4>
file_type = hdf5 # Tabular data dump
variable = prim # variables to be output
dt = 1.0 # time increment between outputs

<time>
cfl_number = 0.4 # The Courant, Friedrichs, & Lewy (CFL) Number
nlim = -1 # cycle limit
tlim = 100.0 # time limit

<mesh>
nx1 = 1280 # Number of zones in X1-direction
x1min = -10 # minimum value of X1
x1max = 10 # maximum value of X1
ix1_bc = user # inner-X1 boundary flag
ox1_bc = user # inner-X1 boundary flag
ix1_rad_bc = user
ox1_rad_bc = user

nx2 = 1 # Number of zones in X2-direction
x2min = -0.5 # minimum value of X2
x2max = 0.5 # maximum value of X2
ix2_bc = periodic # inner-X2 boundary flag
ox2_bc = periodic # inner-X2 boundary flag
ix2_rad_bc = periodic
ox2_rad_bc = periodic

nx3 = 1 # Number of zones in X3-direction
x3min = -0.5 # minimum value of X3
x3max = 0.5 # maximum value of X3
ix3_bc = periodic # inner-X3 boundary flag
ox3_bc = periodic # inner-X3 boundary flag
ix3_rad_bc = periodic
ox3_rad_bc = periodic

<meshblock>

nx1 = 1280
nx2 = 1
nx3 = 1

<hydro>
gamma = 1.6666666666667 # gamma = C_p/C_v

<radiation>
nmu = 1
Prat = 0.0
Crat = 1000.0
error_limit = 1.e-10
iteration = 2
taucell = 2

<problem>
felker marked this conversation as resolved.
Show resolved Hide resolved
Loading