3156 Commits

Author SHA1 Message Date
170e406a41 Merge branch 'master' into reconnection 2022-05-26 22:35:37 -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
ad5118cdf1 Merge branch 'master' into reconnection 2022-05-26 22:22:23 -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
d2cb999452 Merge branch 'master' into reconnection 2022-05-24 19:34:23 -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
d02c46e6d8 HELPERS: Add function to change the string case.
New functions uppercase() and lowercase() change the input string to the
upper case and lower case, respectively.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-05-24 18:17:55 -03:00
898a41e901 Merge branch 'master' into reconnection 2022-04-07 10:35:27 -03:00
4f68d94827 FORCING: Implement driving region for in non-periodic directions.
This allows to control in which region the turbulence perturbation
should be injected.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-04-07 10:33:30 -03:00
3def71f6ed USER_PROBLEMS: Add reconnection rate terms through YZ boundaries.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-04-04 08:52:10 -03:00
58075613e6 Merge branch 'master' into reconnection 2022-02-19 16:22:33 -03:00
060038aac1 USER_PROBLEM: Do not initialize dh in update_user_shapes().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 16:21:55 -03:00
fbc04e4996 EVOLUTION: Mark updated blocks as physical in update_variables().
Otherwise, these blocks are considered as non-physical if the
fix_unphysical_cells is on.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 15:40:26 -03:00
95d117cd1a EVOLUTION: Quit update_variables() in case of problems.
The possible failure could take place in the boundary update or
conversion to the conservative variables. In case of a failure, jump
directly to the end part of subroutine in which the %boundary flag is
cleared.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:39:58 -03:00
a4890bb240 EQUATIONS: Rewrite slightly correct_unphysical_states().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:34:31 -03:00
571e352e5b EVOLUTION: Remove unused variable from check_variables().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:12:30 -03:00
9aa74d2343 EVOLUTION: Rewrite update_variables().
After the boundary update, all respective blocks modified by the mesh or
boundary update are required to update their primitive variables. If a
data block contains a non-physical cell, it is corrected by
correct_unphysical_states(), if fix_unphysical_cells is switched on.
As the last steps, the shapes are updated if they are switched on.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 13:07:17 -03:00
ef1dff58f7 BLOCKS: Add field %physical to data block structure.
This field should be set to .true. if all block cells are physical,
otherwise it should be set to .false..

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 12:54:57 -03:00
1e1c39da1a EQUATIONS: Process all cells in update_primitive_variables().
If cons2prim() returns status indicating the existence of non-physical
cell, just update the subroutine status and continue with the variable
conversion.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 12:52:04 -03:00
06103eca50 EQUATIONS: Rewrite cons2prim() subroutines.
Do not quit immediately if a negative density or pressure is
encountered. Just mark the status flag non-zero and continue. The
non-physical cell can be corrected later.

Also, if the compilation flag DEBUG is present, print the conservative
variables for the non-physical cell.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-19 12:46:46 -03:00
5c6a640991 Merge branch 'master' into reconnection 2022-02-17 09:47:47 -03:00
2db9062683 MESH: Avoid very large MPI tags.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-15 19:21:20 -03:00
dbb4ad6c55 AMUN: Fix compilation for Intel compiler.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-14 18:48:10 -03:00
05121d375c Merge branch 'master' into reconnection 2022-02-11 22:48:56 -03:00
a3a140b572 BLOCKS, BOUNDARIES, EVOLUTION: Fix block variable update.
When the block has been (de)refined, its field %update is set in order
to update its primitive variables. However, the block which are
neighbors of the (de)refined blocks, since their boundaries are updated
too, were not selected for the primitive variable update.

Fix this by adding a new meta block field %boundary, which indicates
that a block boundary has been updated, and update the corresponding
data block primitive variables either if the %update or %boundary flags
are set.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-11 22:37:46 -03:00
0ed2272285 Merge branch 'master' into reconnection 2022-02-10 12:18:34 -03:00
a1b4df4d20 Merge branch 'master' into reconnection 2022-02-09 19:48:03 -03:00
6f23ae962e BOUNDARIES: Prepare primitive variables for specific boundaries.
The specific boundaries (open, outflow, reflective, custom, etc.) work
on the primitive variables. Since the boundaries are updated using the
conservative variables, we have to update the primitive variables in the
block to which the specific boundary is applied. Then, the conservative
variables are update at the ghost zone where the specific boundary
condition was applied.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-09 19:25:18 -03:00
47ebb9703c BOUNDARIES: Process boundary prolongation from minlev to maxlev.
Since the update of boundaries using prolongation depends on the
neighboring cells, make sure it is applied for blocks at the same level,
from the minimum to maximum level.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-09 16:49:26 -03:00
6ba8d5d34f SOURCES: Reduce the number of arguments to update_sources().
Pointer pdata already has a reference to the increment array dU(), so
remove the redundant argument du.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-09 16:25:07 -03:00
d74cc0b6af BOUNDARIES: Fix boundaries_face_prolong() to include the internal edge.
Four child blocks at higher levels do not have internal edge neighbors.
Therefore, the face prolongation from the lower level neighbor of these
four blocks has to include the internal edges.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-09 16:00:04 -03:00
87daca8d55 BOUNDARIES: Fix boundaries_edge_prolong() to include the internal corner.
Two child blocks at higher levels do not have internal corner neighbor.
Therefore, the edge prolongation from the lower level neighbor of these
two blocks has to include the internal corner.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-09 15:59:29 -03:00
eea8c036b4 EVOLUTION: It is sufficient to update primitive variables once.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-08 18:33:18 -03:00
be47092f3c BOUNDARIES: Work with the conservative variables for the boundary update.
In this way the restricted or prolongated boundaries preserve the
conserved variables.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-08 17:45:26 -03:00
d188045d96 BOUNDARIES: Reorganize the specific boundaries.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-08 17:13:05 -03:00
de587766b6 BOUNDARIES: Correct fluxes dimension by dimension in boundary_fluxes().
This solver the problem of updating the fluxes in an inconsistent way
for the same run with a different number of MPI processes.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-08 16:15:51 -03:00
43499e930f BOUNDARIES: Organize importing of variables from other modules.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-08 09:59:42 -03:00
76d768246d BOUNDARIES: Handle all direction at once in boundaries_face_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 15:37:23 -03:00
7e5d0a4a0d BOUNDARIES: Handle all direction at once in boundaries_face_restrict().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 15:25:21 -03:00
7eb4276751 BOUNDARIES: Handle all direction at once in boundaries_face_copy().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 15:11:51 -03:00
6cfa6d2f00 BOUNDARIES: Fix wrong check in boundaries_edge_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 15:07:47 -03:00
5194861d1a BOUNDARIES: Small changes in corner copy subroutines.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 13:14:26 -03:00
92a96a7e2f BOUNDARIES: Handle all direction at once in boundaries_edge_prolong().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 13:12:48 -03:00
1bb006f091 BOUNDARIES: Handle all direction at once in boundaries_edge_restrict().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 12:45:20 -03:00
8675bc2cf3 BOUNDARIES: Handle all direction at once in boundaries_edge_copy().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-07 12:11:23 -03:00
dc6bd31951 BOUNDARIES: Remove comments from prepare/release_exchange_array().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2022-02-05 23:20:21 -03:00