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

Radiation merge3 fixes #460

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8532a2b
Radiation front seems to be working
dmarce1 Oct 12, 2022
66213ad
Radiation_front working
dmarce1 Oct 12, 2022
dd471ba
Radiation diffusion test
dmarce1 Oct 13, 2022
44652f1
Coupling test
dmarce1 Oct 13, 2022
907b9ea
Fixed radiation boundary and timestep bug
dmarce1 Apr 5, 2023
f78c15b
working radiation
dmarce1 May 17, 2023
159d3fd
Fixed sign
dmarce1 Jun 7, 2023
174fc45
Merge of radiation branch
dmarce1 Aug 30, 2023
fe9d991
Merge branch 'master' into radiation_merge3_fixes
G-071 Sep 3, 2023
c5e5be8
Fix blast test crashes
G-071 Sep 15, 2023
2b2767f
Readd detect_disc and correct_am_hydro=1
G-071 Sep 15, 2023
08acf42
Merge branch 'master' into radiation_merge3_fixes
G-071 Sep 21, 2023
31f4fca
Remove build_octotiger script
G-071 Sep 21, 2023
1ca0a54
Remove obsolete reconstruct_cuda stub
G-071 Sep 21, 2023
8603b77
Disable marshak test
G-071 Sep 21, 2023
5b0b7f8
Add shebangs
G-071 Sep 21, 2023
ace164f
Fixed missing init profiles
dmarce1 Sep 27, 2023
2a3762f
Merge branch 'master' into radiation_merge3_fixes
G-071 Oct 2, 2023
e3fbda8
Add radiation diffusion test
G-071 Oct 2, 2023
b916856
Added coupling test
G-071 Oct 2, 2023
f0c039b
Added testdata
G-071 Oct 2, 2023
3fc7969
Fix radiation silodiff
G-071 Oct 2, 2023
e54e880
Relax tests
G-071 Oct 3, 2023
6ef6851
Relax test even further
G-071 Oct 3, 2023
2289c9a
Merge branch 'master' into radiation_merge3_fixes
diehlpk Oct 9, 2023
3acc798
Add griddim guard
G-071 Oct 10, 2023
13cff76
Merge branch 'master' into radiation_merge3_fixes
G-071 Oct 10, 2023
1a4a3b0
merging pull request
dmarce1 Dec 18, 2023
29d4626
Fixed outflow bug
dmarce1 Jan 8, 2024
9406cf6
Fix ipr test (by re-enabling print output)
G-071 Jan 13, 2024
15796fa
Add new diffusion results (for rad regex test)
G-071 Jan 13, 2024
49a2827
Update rad reference files
G-071 Jan 13, 2024
66bcd13
Merge branch 'master' into radiation_merge3_fixes
G-071 Jan 13, 2024
29e1606
Revert Relax test even further
G-071 Jan 14, 2024
aa04829
Revert Relax tests
G-071 Jan 14, 2024
d3c85ab
Drop radiation test requirments
G-071 Jan 14, 2024
7b96fea
Drop radiation test requirments 2
G-071 Jan 14, 2024
a26b9df
Fixed silo bug
dmarce1 Jan 22, 2024
cede61f
Merge branch 'radiation_merge3_fixes' of github.com:STEllAR-GROUP/oct…
dmarce1 Jan 22, 2024
cf7028c
radiation update
dmarce1 Jan 29, 2024
f07325a
Fixed reload problems with radiation
dmarce1 Feb 7, 2024
4377249
radiation recon updated so F < E
dmarce1 Jul 17, 2024
48cea0f
Working on radiation source terms
dmarce1 Nov 19, 2024
a730655
matrixinverter
dmarce1 Nov 20, 2024
c3bd3af
new implicit radiation solver
dmarce1 Nov 20, 2024
7aca5de
Re-wrote radiation transport
dmarce1 Dec 11, 2024
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
Expand Up @@ -8,3 +8,4 @@ spack-build*
.clangd/*
.cache
compile_commands.json
build_octotiger.sh
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ set(header_files
octotiger/grid_scf.hpp
octotiger/interaction_types.hpp
octotiger/lane_emden.hpp
octotiger/matrix.hpp
octotiger/node_client.hpp
octotiger/node_location.hpp
octotiger/node_registry.hpp
Expand Down
17 changes: 17 additions & 0 deletions frontend/init_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,23 @@ void init_problem(void) {
// opts().gravity = false;
set_problem(radiation_test_problem);
set_refine_test(radiation_test_refine);
} else if (opts().problem == RADIATION_TEST) {
assert(opts().radiation);
// opts().gravity = false;
set_problem(radiation_test_problem);
set_refine_test(radiation_test_refine);
} else if (opts().problem == RADIATION_DIFFUSION) {
assert(opts().radiation);
// opts().gravity = false;
set_problem (radiation_diffusion_test_problem);
set_refine_test(radiation_test_refine);
set_analytic(radiation_diffusion_analytic);
} else if (opts().problem == RADIATION_COUPLING) {
assert(opts().radiation);
// opts().gravity = false;
set_problem (radiation_coupling_test_problem);
set_refine_test(radiation_test_refine);
// set_analytic(radiation_diffusion_analytic);
} else if (opts().problem == DWD) {
opts().n_species = 5;
set_problem(scf_binary);
Expand Down
1 change: 1 addition & 0 deletions frontend/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,4 @@ int main(int argc, char* argv[]) {
#endif
}
#endif

2 changes: 1 addition & 1 deletion octotiger/const.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const double pi = 3.1415926535897932384e0, eulercon = 0.577215664901532861e0, a2

// physical constants
const double g = 6.6742867e-8, h = 6.6260689633e-27, hbar = 0.5e0 * h / pi, qe = 4.8032042712e-10,
avo = 6.0221417930e23, clight = 2.99792458e10, kerg = 1.380650424e-16, ev2erg = 1.60217648740e-12, kev = kerg
avo = 6.0221417930e23, = 2.99792458e10, kerg = 1.380650424e-16, ev2erg = 1.60217648740e-12, kev = kerg
/ ev2erg, amu = 1.66053878283e-24, mn = 1.67492721184e-24, mp = 1.67262163783e-24,
me = 9.1093821545e-28, rbohr = hbar * hbar / (me * qe * qe), fine = qe * qe / (hbar * clight), hion =
13.605698140e0;
Expand Down
8 changes: 6 additions & 2 deletions octotiger/defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ constexpr int REFINE_BW = 2;


//#define EXPERIMENT
constexpr int NRF = 7;
constexpr int NRF = 4;

#define abort_error() printf( "Error in %s on line %i\n", __FILE__, __LINE__); abort()

Expand Down Expand Up @@ -92,7 +92,7 @@ constexpr real DEFAULT_OMEGA = 0.0;

#include "hydro_defs.hpp"

constexpr integer R_BW = 2;
constexpr integer R_BW = 3;

constexpr integer HS_NX = (2 * H_BW + INX/2);
constexpr integer G_NX = INX;
Expand All @@ -117,8 +117,12 @@ constexpr integer G_DNZ = 1;
constexpr integer G_DN[NDIM] = { G_NX * G_NX, G_NX, 1 };

// Radiation {{{
constexpr integer RAD_NF = 4;
constexpr integer RAD_BW = 3;
constexpr integer RAD_NX = INX + 2 * RAD_BW;
constexpr integer RAD_INTERIOR_BEGIN = RAD_BW;
constexpr integer RAD_INTERIOR_END = (RAD_NX - RAD_BW);
constexpr integer RAD_INTERIOR = (RAD_INTERIOR_END - RAD_INTERIOR_BEGIN);
constexpr integer RAD_N3 = RAD_NX * RAD_NX * RAD_NX;

constexpr inline integer rindex(integer x, integer y, integer z)
Expand Down
11 changes: 11 additions & 0 deletions octotiger/diagnostics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ struct diagnostics_t {
std::array<safe_real, NDIM> lsum;
safe_real nonvacj;
safe_real nonvacjlz;
std::vector<std::pair<real,std::vector<real>>> xline;
safe_real Trad0;
safe_real Tgas0;
diagnostics_t() {
failed = false;
stage = 1;
omega = -1.0;
grid_com = 0.0;
munbound1 = 0.0;
munbound2 = 0.0;
Trad0 = Tgas0 =0.0;
for (integer f = 0; f != opts().n_fields; ++f) {
grid_sum[f] = 0.0;
grid_out[f] = 0.0;
Expand Down Expand Up @@ -153,6 +157,13 @@ struct diagnostics_t {
}
}
}
xline.insert(xline.end(),other.xline.begin(),other.xline.end());
if( other.Tgas0 ) {
Tgas0 = other.Tgas0;
}
if( other.Trad0 ) {
Trad0 = other.Trad0;
}
munbound1 += other.munbound1;
munbound2 += other.munbound2;
lsum[0] += other.lsum[0];
Expand Down
Loading