Skip to content
Snippets Groups Projects
Commit acd803ca authored by Florian Atteneder's avatar Florian Atteneder
Browse files

GRHD: impose atmosphere when momentum admissibility condition is violated...

GRHD: impose atmosphere when momentum admissibility condition is violated (!224)

The condition is from arXiv:1306.4953 where they suggest to rescale the momemtum to fix this.
I think that rescaling is as ambiguous as resetting to atmosphere.
I decided to to the latter now as this is how I wrote it up in the thesis.
parent 6fcf974d
No related branches found
No related tags found
1 merge request!224GRHD: impose atmosphere when momentum admissibility condition is violated
Pipeline #7265 passed
...@@ -191,14 +191,15 @@ end ...@@ -191,14 +191,15 @@ end
k = r / (1.0+q) k = r / (1.0+q)
if !(0.0 k 1.0) # admissibility constraint from arXiv:1306.4953, Appendix if !(0.0 k 1.0) # admissibility constraint from arXiv:1306.4953, Appendix
c2p_init_admissible = 1.0 c2p_init_admissible = 1.0
# rescale Si such that r = 1+q @goto impose_atmosphere
rescale = 0.99*(1+q)/r # # rescale Si such that r = 1+q
Sx *= rescale # rescale = 0.99*(1+q)/r
Sz *= rescale # Sx *= rescale
rx = Sx / D # Sz *= rescale
rz = Sz / D # rx = Sx / D
r2 = γuuxx*rx*rx+γuuzz*rz*rz # rz = Sz / D
r = sqrt(r2) # r2 = γuuxx*rx*rx+γuuzz*rz*rz
# r = sqrt(r2)
end end
z0 = r/h0 z0 = r/h0
v0 = z0 / sqrt(1.0 + z0^2) v0 = z0 / sqrt(1.0 + z0^2)
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment