OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ede112.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!|| ede112 ../engine/source/ale/euler2d/ede112.F
25!||--- called by ------------------------------------------------------
26!|| qforc2 ../engine/source/elements/solid_2d/quad/qforc2.F
27!||--- uses -----------------------------------------------------
28!|| ale_connectivity_mod ../common_source/modules/ale/ale_connectivity_mod.F
29!|| element_mod ../common_source/modules/elements/element_mod.F90
30!||====================================================================
31 SUBROUTINE ede112(PM ,V ,X ,IXQ ,ALE_CONNECT ,
32 . WYZ ,DYZ ,DZY ,EYY ,EZZ )
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
37 use element_mod , only : nixq
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "param_c.inc"
46#include "com04_c.inc"
47#include "com08_c.inc"
48#include "vect01_c.inc"
49#include "tabsiz_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53! SPMD CASE : SIXQ >= NIXQ*NUMELQ (SIXQ = NIXQ*NUMELQ_L+NIXQ*NQVOIS_L)
54! IXQ(1:NIXQ, 1:NUMELQ) local elems
55! (1:NIXQ, NUMELQ+1:) additional elems (also on adjacent domains but connected to the boundary of the current domain)
56 INTEGER,INTENT(IN) :: IXQ(NIXQ,SIXQ/NIXQ)
57! SPMD CASE : SX >= 3*NUMNOD (SX = 3*(NUMNOD_L+NRCVVOIS_L))
58! X(1:3,1:NUMNOD) : local nodes
59! (1:3, NUMNOD+1:) additional nodes (also on adjacent domains but connected to the boundary of the current domain)
60 my_real,INTENT(IN) :: x(3,sx/3)
61!
62 my_real,INTENT(IN) :: v(3,numnod), pm(npropm,nummat)
63 my_real,INTENT(INOUT) :: eyy(*),ezz(*),dyz(*), dzy(*),wyz(*)
64 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
65C-----------------------------------------------
66C L o c a l V a r i a b l e s
67C-----------------------------------------------
68 INTEGER I, II,IADJ,ML,NC1,NC2,NC3,NC4,J,IAD2
69 my_real vy13, vy24, vz13,vz24,py1,py2,pz1,pz2,aire
70C-----------------------------------------------
71C S o u r c e L i n e s
72C-----------------------------------------------
73 DO i=lft,llt
74 ii=i+nft
75 iad2 = ale_connect%ee_connect%iad_connect(ii)
76 DO j=1,4
77 iadj=ale_connect%ee_connect%connected(iad2 + j - 1)
78 IF(iadj /= 0) THEN
79 ml=nint(pm(19,ixq(1,iadj)))
80 IF(ml /= 11) THEN
81 nc1=ixq(2,iadj)
82 nc2=ixq(3,iadj)
83 nc3=ixq(4,iadj)
84 nc4=ixq(5,iadj)
85 py1=half*(x(3,nc2)-x(3,nc4))
86 py2=half*(x(3,nc3)-x(3,nc1))
87 pz1=half*(x(2,nc4)-x(2,nc2))
88 pz2=half*(x(2,nc1)-x(2,nc3))
89 aire=two*(py1*pz2-pz1*py2)
90 vy13=v(2,nc1)-v(2,nc3)
91 vy24=v(2,nc2)-v(2,nc4)
92 vz13=v(3,nc1)-v(3,nc3)
93 vz24=v(3,nc2)-v(3,nc4)
94 eyy(i)=(py1*vy13+py2*vy24)/aire
95 ezz(i)=(pz1*vz13+pz2*vz24)/aire
96 dzy(i)=(py1*vz13+py2*vz24)/aire
97 dyz(i)=(pz1*vy13+pz2*vy24)/aire
98 ezz(i)=zero
99 wyz(i)=half*dt1*(dzy(i)-dyz(i))
100 ENDIF
101 ENDIF
102 enddo!next J
103 enddo!next I
104C-----------------------------------------------
105 RETURN
106 END
#define my_real
Definition cppsort.cpp:32
subroutine ede112(pm, v, x, ixq, ale_connect, wyz, dyz, dzy, eyy, ezz)
Definition ede112.F:33