OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ebcvit5.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!|| ebcvit5 ../engine/source/boundary_conditions/ebcs/ebcvit5.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 ebcvit5(V, A, LISTE, NOD, FV, RESO, LA, 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
45 . v(3,*),a(3,*),la(3,nod),reso(3,nod),fv(*)
46 TYPE(t_ebcs_normv), INTENT(IN) :: EBCS
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER I,N,IVIMP
52 . c,lcar,alp,alpdt,ax,ay,az,vimp,v0(3),fac
53C
54 ivimp=ebcs%ivimp
55 IF(ivimp>0)THEN
56 vimp=ebcs%vimp*fv(ivimp)
57 ELSE
58 vimp=ebcs%vimp
59 ENDIF
60 c=ebcs%c
61 lcar=ebcs%lcar
62 alp=zero
63 IF(lcar>zero)alp=c/lcar
64 alpdt=alp*dt1
65C
66 IF(tt==zero)THEN
67 DO i=1,nod
68 n=liste(i)
69 reso(1,i)=a(1,n)
70 reso(2,i)=a(2,n)
71 reso(3,i)=a(3,n)
72 ENDDO
73 ENDIF
74C
75 IF(alp>zero)THEN
76 DO i=1,nod
77 n=liste(i)
78c write(6,*)'ebcvit5 N',N,' RESO',RESO(3,I),'A',A(3,N)
79 ax=reso(1,i)+alpdt*(a(1,n)-reso(1,i))
80 ay=reso(2,i)+alpdt*(a(2,n)-reso(2,i))
81 az=reso(3,i)+alpdt*(a(3,n)-reso(3,i))
82C memorisation de la reaction
83 reso(1,i)=ax
84 reso(2,i)=ay
85 reso(3,i)=az
86C
87 fac=vimp/sqrt(la(1,i)**2+la(2,i)**2+la(3,i)**2)
88 v0(1)=fac*la(1,i)
89 v0(2)=fac*la(2,i)
90 v0(3)=fac*la(3,i)
91C
92 a(1,n)=a(1,n)-ax+alp*(v0(1)-v(1,n))
93 a(2,n)=a(2,n)-ay+alp*(v0(2)-v(2,n))
94 a(3,n)=a(3,n)-az+alp*(v0(3)-v(3,n))
95 ENDDO
96 ELSE
97 DO i=1,nod
98 n=liste(i)
99 fac=vimp/sqrt(la(1,i)**2+la(2,i)**2+la(3,i)**2)
100 v0(1)=fac*la(1,i)
101 v0(2)=fac*la(2,i)
102 v0(3)=fac*la(3,i)
103 a(1,n)=zero
104 a(2,n)=zero
105 a(3,n)=zero
106 v(1,n)=v0(1)
107 v(2,n)=v0(2)
108 v(3,n)=v0(3)
109 ENDDO
110 ENDIF
111 RETURN
112 END
#define my_real
Definition cppsort.cpp:32
subroutine ebcclap(v, a, fv, ebcs_tab)
Definition ebcclap.F:36
subroutine ebcvit5(v, a, liste, nod, fv, reso, la, ebcs)
Definition ebcvit5.F:31