24 Commits

Author SHA1 Message Date
7b9e4192b7 Use scientific format (ES instead of E) for displayed real numbers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-08-27 19:51:45 -03:00
2c32139d8c Update copyright info.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-04 12:13:09 -02: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
dad181b23a USER_PROBLEM, SOURCES: Add user defined source terms.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-08 11:10:22 -03:00
334252c83d SOURCES: Correct argument description in update_sources().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-07 16:04:03 -03:00
42dcce439f GRAVITY, SOURCES: Pass time and dt to gravitational acceleration module.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-07 15:47:22 -03:00
d63d6bbe6f EVOLUTION, SOURCES: Pass tm and dtm to update_sources().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-07 15:41:10 -03:00
9256b58905 SOURCES: Plug the GRAVITY module in.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-06 11:12:25 -03:00
5c4248581f Update the year.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2017-03-03 17:51:42 -03:00
88a1765a40 SOURCES: Fix upper limit in i-loops.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-12-02 09:58:13 -02:00
84a3f1e687 COPYRIGHTS: Update year.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2016-11-18 11:09:19 -02:00
81f1c2bbbf COPYRIGHT: Update year to 2015.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2015-01-06 16:01:36 -02:00
70ad8c92e5 SOURCES: Use temporary array tmp(:,:,:,:,:) instead of jc(:,:,:,:).
In this way adday jc(:,:,:,:) can be removed.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-11-28 08:02:20 -02:00
d0808436b6 SOURCES: Rewrite resistive source terms.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-11-19 20:19:08 -02:00
e2fd3a6b2d Revert "SOURCES: Rewrite resistive source terms."
This reverts commit 34f2871b350b207bfc9a4c1cb872da7d85a47040.

The new implementation based on curl produces numerical oscillation at
small scales.
2014-11-19 19:14:24 -02:00
34f2871b35 SOURCES: Rewrite resistive source terms.
The resistive source terms are calculated without assumption about the
uniform resistivity coefficient.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-11-19 18:29:24 -02:00
ded726db79 SOURCES: Correct the energy term for viscous stress.
The energy term which corresponds to the viscous stress tensor was
incorrect. This patch implements the correct term.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-11-18 20:38:37 -02:00
cd0161515c SOURCES: Implement full viscous stress tensor.
The viscous source term can be expressed as the laplacian only in the
incompressible case (div V = 0) with uniform viscosity. If we have
compressibility or non-uniform viscosity, we need to use the full
viscous stress tensor.

This patch implements it.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-11-18 19:08:50 -02:00
310961ca7e SOURCES: Implement GLM-MHD source terms (EGLM and HEGLM).
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-09-19 08:04:48 -03:00
88a5519ff2 SOURCES: Rewrite the resistive source terms.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-06-02 10:37:18 -03:00
d5625ccb9f SOURCES: Implement resistive source term for MHD.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-29 12:04:55 -03:00
c292b88cbd SOURCES: Implement simple model of viscosity.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-27 17:53:35 -03:00
176076dce3 SOURCES: Fix gravitational acceleration from a point mass.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-30 14:06:56 -03:00
8ac8248279 SOURCES: Add initial version of source terms module.
This contains only point mass gravitational acceleration so far, as an
example.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-29 18:35:58 -03:00