OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
multi_velocity_backup.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| multi_velocity_backup ../engine/source/multifluid/multi_velocity_backup.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| multi_fvm_mod ../common_source/modules/ale/multi_fvm_mod.F90
29!||====================================================================
30 SUBROUTINE multi_velocity_backup(ITASK,MULTI_FVM,N2D,NUMELS,NUMELQ,NUMELTG)
31!$COMMENT
32! velocity backup to derivate later into acceleration (post-traitement)
33! in multi_update_global() subroutine : ACC[n] = (VEL[n]-VEL[n-1])/TIMESTEP
34!$ENDCOMMENT
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE multi_fvm_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43#include "task_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(IN) :: ITASK,NUMELS,NUMELQ,NUMELTG,N2D
48 TYPE(multi_fvm_struct) :: MULTI_FVM
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER :: I,NUMEL,NODF,NODL
53C-----------------------------------------------
54 IF(n2d == 0)THEN
55 numel = numels
56 ELSE
57 numel = numelq + numeltg
58 ENDIF
59 IF(ALLOCATED(multi_fvm%ACC))THEN
60 nodf = 1 + itask * numel / nthread
61 nodl = (1 + itask) * numel / nthread
62 DO i = nodf, nodl
63 multi_fvm%ACC(1, i) = multi_fvm%VEL(1, i)
64 multi_fvm%ACC(2, i) = multi_fvm%VEL(2, i)
65 multi_fvm%ACC(3, i) = multi_fvm%VEL(3, i)
66 ENDDO
67 ENDIF
68
69 RETURN
70 END SUBROUTINE multi_velocity_backup
71C-----------------------------------------------
subroutine multi_velocity_backup(itask, multi_fvm, n2d, numels, numelq, numeltg)