OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ebcclap.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!|| ebcclap ../engine/source/boundary_conditions/ebcs/ebcclap.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| ebcclap1 ../engine/source/boundary_conditions/ebcs/ebcclap.F
29!|| ebcvit4 ../engine/source/boundary_conditions/ebcs/ebcvit4.F
30!|| ebcvit5 ../engine/source/boundary_conditions/ebcs/ebcvit5.F
31!|| ebcvit7 ../engine/source/boundary_conditions/ebcs/ebcvit7.F
32!||--- uses -----------------------------------------------------
33!|| ebcs_mod ../common_source/modules/boundary_conditions/ebcs_mod.F90
34!||====================================================================
35 SUBROUTINE ebcclap(V, A, FV, EBCS_TAB)
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE ebcs_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com04_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 my_real v(*),a(*),fv(*)
52 TYPE(t_ebcs_tab), TARGET, INTENT(INOUT) :: EBCS_TAB
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER I,TYP,NOD
57 CLASS(t_ebcs), POINTER :: EBCS
58
59 DO i=1,nebcs
60 IF(.NOT.ebcs_tab%need_to_compute(i)) cycle
61 typ = ebcs_tab%tab(i)%poly%type
62 nod = ebcs_tab%tab(i)%poly%nb_node
63
64 IF(typ == 2 .OR. typ == 3)THEN
65 ebcs => ebcs_tab%tab(i)%poly
66 IF(typ == 2) CALL ebcclap1(v, a, ebcs%node_list, nod, ebcs%la, -one)
67 IF(typ == 3) CALL ebcclap1(v, a, ebcs%node_list, nod, ebcs%la, one)
68 ELSE IF(typ == 4)THEN
69 select type (twf => ebcs_tab%tab(i)%poly)
70 type is(t_ebcs_vel)
71 CALL ebcvit4(v, a, twf%node_list, nod, fv, twf%reso, twf)
72 end select
73 ELSE IF (typ == 5)THEN
74 select type (twf => ebcs_tab%tab(i)%poly)
75 type is(t_ebcs_normv)
76 CALL ebcvit5(v, a, twf%node_list, nod, fv, twf%reso, twf%la, twf )
77 end select
78 ELSE IF (typ == 7)THEN
79 select type (twf => ebcs_tab%tab(i)%poly)
80 type is(t_ebcs_iniv)
81 CALL ebcvit7(v, a, twf%node_list, nod, twf%v0, twf%reso,twf)
82 end select
83 ENDIF
84C
85 ENDDO
86 RETURN
87 END
88!||====================================================================
89!|| ebcclap1 ../engine/source/boundary_conditions/ebcs/ebcclap.F
90!||--- called by ------------------------------------------------------
91!|| ebcclap ../engine/source/boundary_conditions/ebcs/ebcclap.F
92!||====================================================================
93 SUBROUTINE ebcclap1(V,A,LISTE,NOD,NORM,FAC)
94C-----------------------------------------------
95C I m p l i c i t T y p e s
96C-----------------------------------------------
97#include "implicit_f.inc"
98C-----------------------------------------------
99C C o m m o n B l o c k s
100C-----------------------------------------------
101#include "com08_c.inc"
102C-----------------------------------------------
103C D u m m y A r g u m e n t s
104C-----------------------------------------------
105 INTEGER LISTE(*),NOD
106 my_real
107 . v(3,*),a(3,*),norm(3,*),fac,vx,vy,vz
108C-----------------------------------------------
109C L o c a l V a r i a b l e s
110C-----------------------------------------------
111 INTEGER I,N
112 my_real
113 . vn
114C
115 DO i=1,nod
116 n=liste(i)
117c if(FAC>0.)write(6,*)'ebcclap',I,N,V(1,N)
118 vx=v(1,n)+a(1,n)*dt12
119 vy=v(2,n)+a(2,n)*dt12
120 vz=v(3,n)+a(3,n)*dt12
121 vn=fac*(vx*norm(1,i)+vy*norm(2,i)+vz*norm(3,i))
122 IF(vn<0)THEN
123 v(1,n)=zero
124 v(2,n)=zero
125 v(3,n)=zero
126 a(1,n)=zero
127 a(2,n)=zero
128 a(3,n)=zero
129 ENDIF
130c write(6,*)'apres',I,N,V(1,N)
131 ENDDO
132 RETURN
133 END
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
subroutine ebcclap1(v, a, liste, nod, norm, fac)
Definition ebcclap.F:94
subroutine ebcclap(v, a, fv, ebcs_tab)
Definition ebcclap.F:36
subroutine ebcvit4(v, a, liste, nod, fv, reso, ebcs)
Definition ebcvit4.F:31
subroutine ebcvit5(v, a, liste, nod, fv, reso, la, ebcs)
Definition ebcvit5.F:31
subroutine ebcvit7(v, a, liste, nod, v0, reso, ebcs)
Definition ebcvit7.F:31