1008 Commits

Author SHA1 Message Date
2f4aade054 Merge branch 'master' into flux-tubes 2022-12-04 20:20:31 -03:00
295453b01c IO: Distribute files better among the restarting processes.
This is an improvement in the case a job restarted with a higher
number of processes. The reading of data blocks is spread among new
processes, so it better balances memory.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-12-04 20:16:55 -03:00
2561c11567 USER_PROBLEM: Estimate the thickness from the resistivity, by default.
The thikness of the current sheet is set to the square root of the
resistivity, if it is not set explictely in the parameter file.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-27 18:23:56 -03:00
5793fe7810 USER_PROBLEM: Calculate Alfvén speed using bamp only.
This is the Alfvén speed along the X direction defining the velocity
scale, time scale, and the Lundquist number.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-27 18:16:24 -03:00
20492048aa 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>
2022-11-27 17:06:13 -03:00
ef68c12b44 Merge branch 'master' into flux-tubes 2022-11-27 16:00:15 -03:00
f59db0375f FORCING: Add parameter 'driving_velocity'.
By default this parameter is set to zero and the behavior is the same as
before. However, if this parameter is set to a value larger than zero,
it determines the driving time scale for the Ornstein–Uhlenbeck method,
and the injection power for the Alvelius method.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-27 15:55:57 -03:00
c438dca1fb Merge branch 'master' into flux-tubes 2022-11-25 18:21:57 -03:00
0a20337054 EVOLUTION: Remove debug check for NaNs.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-25 18:16:02 -03:00
b28a42427c FORCING: Parallelize inject_eddy() using OpenMP.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-25 18:13:22 -03:00
9ee8c0a2ae FORCING: Slightly rewrite the parallelization of get_vcoefs().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-25 18:10:12 -03:00
116a49821b Merge branch 'master' into flux-tubes 2022-11-25 16:08:40 -03:00
89be37c8b5 FORCING: Parallelize inject_fmodes() using OpenMP.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-25 16:07:04 -03:00
36544af793 FORCING: Parallelize get_vcoefs() using OpenMP.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-25 16:06:15 -03:00
dd46ee7ee7 Merge branch 'master' into flux-tubes 2022-11-16 15:52:38 -03:00
ec7d12260e FORCING: Adjust forcing modes for domain smaller than unity.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-16 13:41:43 -03:00
83d74d627b USER_PROBLEM: Rename magnetic flux file.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-11 17:04:13 -03:00
40213a9699 Merge branch 'master' into flux-tubes 2022-11-07 19:57:29 -03:00
22104fb867 FORCING: Fix region of turbulence driving.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-07 19:56:47 -03:00
fbb40a4a32 USER_PROBLEM: Fix calculation of boundary resistive terms.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-05 18:51:35 -03:00
b49deb3b71 USER_PROBLEM: Fix conditions for boundary fluxes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-05 18:48:36 -03:00
0f8aed46a1 USER_PROBLEM: Fix slice selection for the magnetic flux integration.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-04 19:30:13 -03:00
8a66bc5769 USER_PROBLEM: Integrate the magnetic flux at x=0 only.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-04 14:07:35 -03:00
711fc23f03 USER_PROBLEM: Implement reconnection rate measure.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-11-04 12:22:45 -03:00
52d6933efb Merge branch 'master' into flux-tubes 2022-10-24 10:07:36 -03:00
caa0a1bcdb STATISTICS: Fix averaging of the boundary fluxes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-24 10:06:36 -03:00
43ba610aef Merge branch 'master' into flux-tubes 2022-10-24 08:56:56 -03:00
5c8d13f385 STATISTICS: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-24 08:54:03 -03:00
fbfc1983e6 STATISTICS: Implement mass and energy conservation terms calculation.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-23 22:42:17 -03:00
296da6a63e STATISTICS: Introduce flags to enable/disable statistics collection.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 12:37:20 -03:00
336a04377b BOUNDARIES: Remove unused variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:29:58 -03:00
64c58bb4bd EQUATIONS: Make compiler happy with imported variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-17 11:26:19 -03:00
c163687a74 USER_PROBLEM: Change default parameters.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-04 18:18:32 -03:00
4cb96ca2b3 USER_PROBLEM: Implement flux tube reconnection problem.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-10-04 13:10:38 -03:00
cd0e6ea675 USEWR_PROBLEM: Fix identation in setup_user_problem().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 19:12:01 -03:00
cd9b909333 USER_PROBLEM: Correct arguments for update_user_sources().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-09-30 19:09:59 -03:00
8e4bd1712d EVOLUTION: Change safety factor to 0.91.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-11 00:22:56 -03:00
4af6e99ca8 EVOLUTION: Do not repeat if tolerance reached in embedded methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-09 18:04:53 -03:00
7c4f5660fa SYSTEM: Rewrite progress printing in evolve_system().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-06-04 15:25:00 -03:00
8d2edeed12 IO: Fix storing and restroring the forcing coefficients.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-31 19:30:51 -03:00
0f104bd033 EQUATIONS: Print the location just once in correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:59:35 -03:00
cb56db7880 HELPERS: Introduce two print_message variants.
One prints the location, another one just the message.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:58:06 -03:00
e50e83bb1c EQUATIONS: Adapt unphysical cell info for 2D and 3D.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-27 11:54:32 -03:00
edb3924499 EQUATION: Correct formatting in correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-26 22:34:47 -03:00
aa99145260 EQUATIONS: Print the location of unphysical cell.
Also slightly rewrite and simplify the arguments of
correct_unphysical_states().

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-26 22:21:02 -03:00
2696d5dffb EVOLUTION: Rewrite the handling of unimplemented methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 19:20:57 -03:00
94ea7d171d SCHEMES: Remove redundant empty line.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 19:02:56 -03:00
1033b4ede7 INTERPOLATIONS: Rewrite the handling of unimplemented methods.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:48:01 -03:00
74737b71f5 SCHEMES: Rewrite the handling of unimplemented Riemann solvers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:32:02 -03:00
b0e221e2f3 HELPERS: Print all messages in two lines.
The first line shows the location from which the message was called, and
the second one shows the actual message.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:19:57 -03:00