86cf4d059d
EQUATIONS: Make csnd2 public too.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-26 07:10:48 -03:00
28cc6f3584
EQUATIONS: Change real variables to double precision.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-08-04 09:17:56 -03:00
af1b2b28cd
EQUATIONS: Add directional indices.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-05-29 11:32:27 -03:00
936331581c
EQUATIONS: Correct negative pressure if desired.
...
If option "fix_positivity" is on, we check if the pressure obtained from
conservative variables is positive. If it is negative, it is replaced by
a value corresponding to the maximum allowed sonic Mach number, provided
by option "msmax". The new value of pressure and corresponding total
energy is set in all unphysical cells then.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-29 12:45:54 -03:00
7255561d24
EQUATIONS: Conserved to primitive variables only in interioris.
...
Conversion of the conserved to primitive variables can be expensive for
some sets of equations, such as the relativistic MHD. Therefore, we
will convert only the interior parts of blocks and update the ghost
zones later in the boundary update.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-04-09 08:45:44 -03:00
88edaec837
EQUATIONS, SCHEMES: Implement Roe's solver for adiabatic MHD.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-03-06 14:19:31 -03:00
42c738c78d
EQUATIONS, SCHEMES: Implement Roe's solver for isothermal MHD.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-03-06 13:55:09 -03:00
78b15d5596
EQUATIONS, SCHEMES: Implement Roe's solver for adiabatic HD.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-03-06 13:16:57 -03:00
a8d575e471
EQUATIONS, SCHEMES: Implement Roe's solver for isothermal HD.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-03-06 12:59:51 -03:00
d39a876b3a
EQUATIONS: Change timer descriptions.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-03 12:37:27 -02:00
f50a070c2c
EQUATIONS: Add module subroutines profiling.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 12:06:35 -02:00
788d328f7a
Update years in copyright information.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2014-01-02 11:52:59 -02:00
e9d48d078f
Make MHD equations work.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 15:36:55 -02:00
2f724b0df7
EQUATIONS: Release pointer in finalize_equations().
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-12 14:39:18 -02:00
e5db34b7c4
IO: Make storing arrays more general.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 17:54:39 -02:00
9c6ed6bdbf
Slightly organize information printing.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 10:22:51 -02:00
5dc8dba168
SCHEMES: complete rewrite of the module.
...
Riemann solver is selected now through the runtime parameter
'riemann_solver'.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 10:16:06 -02:00
5b137d1a63
EQUATIONS: export equation system and equation of state.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-11 00:16:22 -02:00
1bd066f56f
Remove dependency of the module VARIABLES.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 21:36:35 -02:00
f48950aa4d
EQUATIONS: Completely rewrite this module.
...
Now, module EQUATIONS provides a complet interface for equation systems,
including the definition of the number of equations/independent
variables, variable indices and names, conversion subroutines between
primitive and conservative variables, flux and characteristic speed
calculation, and maximum speed determination.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 20:56:37 -02:00
386fd36f5e
Update copyright line.
...
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2013-12-10 15:23:28 -02:00
Grzegorz Kowal
2413de249f
Move maxspeed() to module EQUATIONS.
2012-08-01 12:16:38 -03:00
Grzegorz Kowal
06d5f3178c
Add new subroutine update_primitive_variables().
2012-07-27 22:28:29 -03:00
Grzegorz Kowal
4fd6ed0f84
Add new module EQUATIONS.
...
This module handles variable conversion for a given set of equations.
2012-07-27 16:18:02 -03:00