OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
multi_velocity_backup.F File Reference
#include "implicit_f.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine multi_velocity_backup (itask, multi_fvm, n2d, numels, numelq, numeltg)

Function/Subroutine Documentation

◆ multi_velocity_backup()

subroutine multi_velocity_backup ( integer, intent(in) itask,
type(multi_fvm_struct) multi_fvm,
integer, intent(in) n2d,
integer, intent(in) numels,
integer, intent(in) numelq,
integer, intent(in) numeltg )

Definition at line 30 of file multi_velocity_backup.F.

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