Skip to content

Commit

Permalink
Update for exercise 3 gauge change
Browse files Browse the repository at this point in the history
  • Loading branch information
KAClough committed Jun 24, 2024
1 parent d3be88c commit 2758b49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/rhsevolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,14 @@ def get_rhs(t_i, current_state, my_grid, eta, progress_bar, time_state) :
# eta is the 1+log slicing damping coefficient - of order 1/M_adm of spacetime
rhs_br[:] = 0.75 * rhs_lambdar - eta * br
rhs_shiftr[:] = br
rhs_lapse[:] = - 2.0 * lapse * K

# 1 + log slicing old lapse condition
#rhs_lapse[:] = - 2.0 * lapse * K

# Implement the new shock avoiding lapse condition from
# https://inspirehep.net/literature/2111279
kappa_lapse = 0.05
rhs_lapse[:] = - (lapse * lapse + kappa_lapse) * K

# Add advection to time derivatives (this is the bit coming from the Lie derivative)
# Note the additional advection terms from rescaling for tensors
Expand Down

0 comments on commit 2758b49

Please sign in to comment.