USER_PROBLEM: Correct the way the zeta parameter works.
Parameter 'zeta' controls if the thermal pressure (zeta=0.0) or guide field (zeta=1.0) should contribute to make the total pressure uniform. Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
ef68c12b44
commit
20492048aa
@ -289,7 +289,7 @@ module user_problem
|
||||
do i = 1, nn
|
||||
bx = bamp * csx(i) * (csy(j) * thy(j) + sny(j) / (pi2 * dlta * ch2(j)))
|
||||
by = bamp * 5.0d-01 * snx(i) * sny(j) * thy(j)
|
||||
bz = sqrt(bgui**2 + zeta**2 * max(0.0d+00, bamp**2 - bx**2 - by**2))
|
||||
bz = sqrt(max(0.0d+00, bgui**2 + zeta * (bamp**2 - bx**2 - by**2)))
|
||||
|
||||
pdata%q(ibx,i,j,:) = bx
|
||||
pdata%q(iby,i,j,:) = by
|
||||
|
Loading…
x
Reference in New Issue
Block a user