OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ebcvit4.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!|| ebcvit4 ../engine/source/boundary_conditions/ebcs/ebcvit4.F
25!||--- called by ------------------------------------------------------
26!|| ebcclap ../engine/source/boundary_conditions/ebcs/ebcclap.F
27!||--- uses -----------------------------------------------------
28!|| ebcs_mod ../common_source/modules/boundary_conditions/ebcs_mod.F90
29!||====================================================================
30 SUBROUTINE ebcvit4(V, A, LISTE, NOD, FV, RESO, EBCS)
31 USE ebcs_mod
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com08_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER LISTE(*),NOD
44 my_real v(3,*),a(3,*),reso(3,nod),fv(*)
45 TYPE(t_ebcs_vel), INTENT(IN) :: EBCS
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER I,N,IVX,IVY,IVZ
50 my_real c,lcar,alp,alpdt,ax,ay,az,vx,vy,vz
51
52 ivx = ebcs%ivx
53 ivy = ebcs%ivy
54 ivz = ebcs%ivz
55 IF(ivx>0)THEN
56 vx=ebcs%vx*fv(ivx)
57 ELSE
58 vx=ebcs%vx
59 ENDIF
60 IF(ivy>0)THEN
61 vy=ebcs%vy*fv(ivy)
62 ELSE
63 vy=ebcs%vy
64 ENDIF
65 IF(ivz>0)THEN
66 vz=ebcs%vz*fv(ivz)
67 ELSE
68 vz=ebcs%vz
69 ENDIF
70 c=ebcs%c
71 lcar=ebcs%lcar
72 alp=zero
73 IF(lcar>zero)alp=c/lcar
74 alpdt=alp*dt1
75C
76 IF(tt==zero)THEN
77 DO i=1,nod
78 n=liste(i)
79 reso(1,i)=a(1,n)
80 reso(2,i)=a(2,n)
81 reso(3,i)=a(3,n)
82 ENDDO
83 ENDIF
84C
85c write(6,*)'ebcvit4',VX,VY,VZ
86 IF(alp>zero)THEN
87 DO i=1,nod
88 n=liste(i)
89c write(6,*)'ebcvit5 N',N,' RESO',RESO(3,I),'A',A(3,N)
90 ax=reso(1,i)+alpdt*(a(1,n)-reso(1,i))
91 ay=reso(2,i)+alpdt*(a(2,n)-reso(2,i))
92 az=reso(3,i)+alpdt*(a(3,n)-reso(3,i))
93C memorisation de la reaction
94 reso(1,i)=ax
95 reso(2,i)=ay
96 reso(3,i)=az
97C
98 a(1,n)=a(1,n)-ax+alp*(vx-v(1,n))
99 a(2,n)=a(2,n)-ay+alp*(vy-v(2,n))
100 a(3,n)=a(3,n)-az+alp*(vz-v(3,n))
101 ENDDO
102 ELSE
103 DO i=1,nod
104 n=liste(i)
105 a(1,n)=zero
106 a(2,n)=zero
107 a(3,n)=zero
108 v(1,n)=vx
109 v(2,n)=vy
110 v(3,n)=vz
111 ENDDO
112 ENDIF
113 RETURN
114 END
#define my_real
Definition cppsort.cpp:32
subroutine ebcvit4(v, a, liste, nod, fv, reso, ebcs)
Definition ebcvit4.F:31