1648 Commits

Author SHA1 Message Date
5adaf72aaa Merge branch 'master' into reconnection 2017-04-28 13:27:06 -03:00
0c7034c5e8 INTERPOLATION: Limit all cells in MLP limiting.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-28 13:26:10 -03:00
a2603f4521 Merge branch 'master' into reconnection 2017-04-28 13:25:14 -03:00
d4312eff68 PROBLEMS, SHAPES: Remove jet problem from default test problems.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-28 10:58:55 -03:00
6ab2101aa9 RECONNECTION: Fix wave-like perturbation in 3D.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-24 10:30:47 -03:00
6feba1d845 RECONNECTION: Fix wave-like perturbation in 3D.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-19 08:12:40 -03:00
08829dd7b8 Merge branch 'master' into reconnection 2017-04-19 07:25:55 -03:00
e10baf5453 INTERPOLATIONS: Slightly improve MGP reconstruction.
Subtract the cell value from the stencil and add it back after the
interpolated values once the interpolation is done. This significantly
decreases the interpolation errors in uniform areas where the variables
are different from zero.

Check the monotonicity by comparing to eps and not to zero. This does
not force the interpolation to go back to the TVD one if the difference
between the interpolated value and cell centered one is of the order of
numerical error.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-19 07:19:56 -03:00
7b12c50f2f Merge branch 'master' into reconnection 2017-04-18 14:38:35 -03:00
e84f1c9db0 INTERPOLATIONS: Improve one-dimensional GP reconstruction.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-18 14:37:21 -03:00
616cdf98e4 RECONNECTION: Add new wave-like perturbation.
For a given wave number, the perturbation consists of nper perturbation
components with a random direction and phase.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-17 10:25:28 -03:00
c0560649d7 Merge branch 'master' into reconnection 2017-04-13 22:00:03 -03:00
64a08b1ef7 INTERPOLATIONS: Fix compilation when NDIMS == 3.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-13 21:58:50 -03:00
09520cae37 Merge branch 'master' into reconnection 2017-04-10 08:05:01 -03:00
da2f2a1bf0 SCHEMES: Fix adiabatic HLLD solver for weak Bx.
If the parallel component of magnetic field is too small, the
intermediate states might produce numerical instabilities, since they
are obtained by the division by a small factor.

In order to remove this situation, we apply full HLLD solver for strong
enough Alfvén wave. If it is weak, the HLLC solver is applied.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-10 08:03:50 -03:00
8dc157620c SCHEMES: Fix isothermal HLLD-M solver for weak Bx.
If the parallel component of magnetic field is too small, the
intermediate states might produce numerical instabilities, since they
are obtained by the division by a small factor.

In order to remove this situation, we apply full HLLD solver for strong
enough Alfvén wave. If it is weak, the HLL solver is applied.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-10 08:02:05 -03:00
a6490f31bb SCHEMES: Fix isothermal HLLD solver for weak Bx.
If the parallel component of magnetic field is too small, the
intermediate states might produce numerical instabilities, since they
are obtained by the division by a small factor.

In order to remove this situation, we apply full HLLD solver for strong
enough Alfvén wave. If it is weak, the HLL solver is applied.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-10 07:56:49 -03:00
b46b165729 Merge branch 'master' into reconnection 2017-04-07 08:36:35 -03:00
3a6090499a SCHEMES: Fix adiabatic HLLD solver for MHD.
For one of the degenerate situations the state vector was not
calculated. This introduced numerical instabilities. This change fixes
it.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-07 08:34:44 -03:00
4e4dccc049 Merge branch 'master' into reconnection 2017-04-05 10:25:09 -03:00
b41b5a000b INTERPOLATIONS: Fix MLP limiting.
We should take half of the TVD limited derivatives in order to compare
properly with the high order interpolated derivative. Fix it.

Also, TVD limit both states if the high order interpolation of any of
them overshoot.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-05 10:23:15 -03:00
287c910526 Merge branch 'master' into reconnection 2017-04-05 07:24:38 -03:00
b4b72a783d SCHEMES: A small fix for isothermal HLLD when Bx = 0.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-05 07:23:38 -03:00
cf7c5e3279 RECONNECTION: Organize the perturbations.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-04-04 18:29:19 -03:00
f1ef16be8a Merge branch 'master' into reconnection 2017-03-29 10:44:06 -03:00
3cd24e3b0f SOURCES: Fix calculation of η J² term.
In the sum of the J² we used Fortran subroutine sum() and the sum was
done along the 2nd index. However, the interpretation of this index is
uncertain when the first array rank is 1.

Therefore, instead of using subroutine sum(), the calculation is done
directly.

After this change there are no strange effects appearing on the
boundaries of the blocks.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-29 10:40:31 -03:00
6599e4e54f RECONNECTION: Implement one more type of perturbation.
This perturbation is similar to the magnetic field one, but
applied to the velocity field.

Also allow the user to choose the perturbation type through the
parameter 'perturbation'.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-28 23:23:50 -03:00
c7e0cb92d2 RECONNECTION: Normalize velocity noise.
Normalize the velocity so it has the same amplitude everywhere, and
random direction.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-28 16:06:15 -03:00
9c311f2413 RECONNECTION: Rewrite the initial configuration of the magnetic field.
A new parameter 'zeta' was introduced to control the type of the
equilibrium. If zeta = 0.0 the total pressure equlilbrium is set, while
when zeta = 1.0 the force free magnetic equilibrium is set.

Also, instead of tanh(y) profile, the proper integral log(cosh(y)) is
used to define the discontinuous (reconnecting) magnetic field
component.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-28 14:28:39 -03:00
0485a3d689 Merge branch 'master' into reconnection 2017-03-28 08:48:50 -03:00
aad62c9c51 INTERPOLATIONS: Implement Multi-dimensional Limiting Process.
This additional multi-dimensional limiting can be applied to any
reconstruction method. It is controlled by the parameter 'mlp_limiting'
by setting 'on' or 'off'.

The implementation is based on Gerlinger (2012).

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-16 09:50:10 -03:00
b092c80aae INTERPOLATIONS: Fix misspelling.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-15 10:18:39 -03:00
707ff9737b Merge branch 'master' into reconnection 2017-03-10 12:08:38 -03:00
a1875b1af2 Merge branch 'master' of ssh://bitbucket.org/amunteam/amun-code
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-10 12:07:31 -03:00
5213004734 IO: Account time for disk operations (for snapshots).
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-10 12:04:42 -03:00
fe0e43b095 IO: Reset iret in read_restart_snapshot() and write_restart_snapshot().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-09 16:31:16 -03:00
31bf3006b7 GRAVITY: Reset acc in gacc_none().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-09 16:28:30 -03:00
322b8a141b USER_PROBLEM: Reset acc in gravitational_acceleration_user().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-09 16:28:10 -03:00
3e4d164366 Merge branch 'master' into reconnection 2017-03-09 09:35:03 -03:00
063a6b1db4 Update README.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-09 08:39:54 -03:00
973c0f2a65 COORDINATES: Remove unused decay factors.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:51:04 -03:00
5f716aada4 Merge branch 'master' into reconnection 2017-03-08 13:44:08 -03:00
76c6f3c67c DRIVER: Initialize USE_PROBLEM after COORDINATES.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:43:26 -03:00
09e12ca579 USER_PROBLEM: Implement reconnection boundaries along Y.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:29:18 -03:00
7ac4f2f8a7 USER_PROBLEM: Implement reconnection boundaries along X.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:20:59 -03:00
6a9ef98fd6 PROBLEMS: Move reconnection problem to USER_PROBLEM module.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:11:48 -03:00
2ec54cb0f1 Merge branch 'master' into reconnection 2017-03-08 13:04:17 -03:00
e0a0c816f3 USER_PROBLEM: Clean up unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 13:02:41 -03:00
aeab9f9fe7 MAKEFILE: Organize order of dependencies.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 12:59:56 -03:00
3f9267d549 Merge branch 'master' into reconnection
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 12:57:42 -03:00