Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lucass-carneiro authored Sep 11, 2024
2 parents 69b0757 + 985e0a3 commit f555009
Show file tree
Hide file tree
Showing 50 changed files with 768 additions and 698 deletions.
2 changes: 1 addition & 1 deletion AsterSeeds/configuration.ccl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Configuration definitions for thorn AsterSeeds

REQUIRES Loop EOSX
REQUIRES Loop EOSX AsterUtils
1 change: 1 addition & 0 deletions AsterSeeds/interface.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ INHERITS: HydroBaseX AsterX

USES INCLUDE HEADER: loop_device.hxx
USES INCLUDE HEADER: eos.hxx eos_idealgas.hxx
USES INCLUDE HEADER: aster_fd.hxx aster_interp.hxx aster_utils.hxx

CCTK_REAL Avec_cent TYPE=gf CENTERING={ccc} TAGS='checkpoint="no"'
{
Expand Down
9 changes: 6 additions & 3 deletions AsterSeeds/param.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ KEYWORD test_case "Name of the testcase" STEERABLE=never

"spherical shock" :: ""
"magTOV" :: ""
"magBNS" :: ""
} "Balsara1"

private:
Expand Down Expand Up @@ -114,17 +115,19 @@ REAL r0 "Characteristic radial offset" STEERABLE=ALWAYS
*:* :: "Anything"
} 0.0

REAL dipole_x "x-coordinate of dipole center" STEERABLE=ALWAYS
# coordinates of dipole center, to be based on the location of maximum of rho

REAL dipole_x[2] "x-coordinate of dipole center" STEERABLE=ALWAYS
{
*:* :: "Anything"
} 0.0

REAL dipole_y "y-coordinate of the dipole center" STEERABLE=ALWAYS
REAL dipole_y[2] "y-coordinate of the dipole center" STEERABLE=ALWAYS
{
*:* :: "Anything"
} 0.0

REAL dipole_z "z-coordinate of the dipole center" STEERABLE=ALWAYS
REAL dipole_z[2] "z-coordinate of the dipole center" STEERABLE=ALWAYS
{
*:* :: "Anything"
} 0.0
Expand Down
26 changes: 24 additions & 2 deletions AsterSeeds/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,41 @@ if (CCTK_Equals(test_type, "3DTest")) {
if (CCTK_Equals(test_case, "magTOV")) {

STORAGE: Avec_cent
SCHEDULE AsterSeeds_InitializeCenteredAvec AT initial AFTER HydroBaseX_PostInitial BEFORE AsterX_InitialGroup {
SCHEDULE AsterSeeds_InitializeCenteredAvec_TOV AT initial AFTER HydroBaseX_PostInitial BEFORE AsterX_InitialGroup {
LANG: C
READS: HydroBaseX::press(everywhere)
WRITES: Avec_x_cent(everywhere) Avec_y_cent(everywhere) Avec_z_cent(everywhere)
}
"Set up initial conditions for the cell-centered vector potential"

SCHEDULE AsterSeeds_InitializeStagAvec AT initial AFTER AsterSeeds_InitializeCenteredAvec BEFORE AsterX_InitialGroup {
SCHEDULE AsterSeeds_InitializeStagAvec_TOV AT initial AFTER AsterSeeds_InitializeCenteredAvec_TOV BEFORE AsterX_InitialGroup {
LANG: C
READS: Avec_x_cent(everywhere) Avec_y_cent(everywhere) Avec_z_cent(everywhere)
WRITES: AsterX::Avec_x(interior) AsterX::Avec_y(interior) AsterX::Avec_z(interior)
SYNC: AsterX::Avec_x AsterX::Avec_y AsterX::Avec_z
}
"Set up initial conditions for the vector potential"
}

#Initial conditions for magnetic field for BNS

if (CCTK_Equals(test_case, "magBNS")) {

STORAGE: Avec_cent
SCHEDULE AsterSeeds_InitializeCenteredAvec_BNS AT initial AFTER HydroBaseX_PostInitial BEFORE AsterX_InitialGroup {
LANG: C
READS: HydroBaseX::press(everywhere)
WRITES: Avec_x_cent(everywhere) Avec_y_cent(everywhere) Avec_z_cent(everywhere)
}
"Set up initial conditions for the cell-centered vector potential"

SCHEDULE AsterSeeds_InitializeStagAvec_BNS AT initial AFTER AsterSeeds_InitializeCenteredAvec_BNS BEFORE AsterX_InitialGroup {
LANG: C
READS: Avec_x_cent(everywhere) Avec_y_cent(everywhere) Avec_z_cent(everywhere)
WRITES: AsterX::Avec_x(interior) AsterX::Avec_y(interior) AsterX::Avec_z(interior)
SYNC: AsterX::Avec_x AsterX::Avec_y AsterX::Avec_z
}
"Set up initial conditions for the vector potential"
}

}
Loading

0 comments on commit f555009

Please sign in to comment.