OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cbavarnl.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!|| cbavarnl ../engine/source/elements/shell/coqueba/cbavarnl.F
25!||--- called by ------------------------------------------------------
26!|| cbaforc3 ../engine/source/elements/shell/coqueba/cbaforc3.F
27!||--- uses -----------------------------------------------------
28!|| nlocal_reg_mod ../common_source/modules/nlocal_reg_mod.F
29!||====================================================================
30 SUBROUTINE cbavarnl(JFT ,JLT ,NG ,IXC ,NLOC_DMG ,
31 . VARNL ,NDDL ,NC1 ,NC2 ,NC3 ,
32 . NC4 ,NEL )
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER JFT,JLT,NG,IXC(NIXC,*),NDDL,NEL
45 INTEGER, INTENT(INOUT) ::
46 . nc1(*), nc2(*), nc3(*), nc4(*)
47 my_real, INTENT(INOUT) ::
48 . varnl(nel,nddl)
49 TYPE(nlocal_str_), TARGET :: NLOC_DMG
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I, K,
54 . INOD(4), IPOS(4),L_NLOC
55 my_real
56 . vpg(2,4),pg1,pg,ksi,eta,sf1,sf2,sf3,sf4
57 parameter(pg=.577350269189626)
58 parameter(pg1=-.577350269189626)
59 my_real,
60 . DIMENSION(:), POINTER :: dnl
61C--------------------------
62C INITIALISATION
63C-------------------------
64 DATA vpg/pg1,pg1,pg,pg1,pg,pg,pg1,pg/
65C---------------------------------------------------------------------------------------------------------------
66C --- Non-local variable VARNL in Gauss point NG
67C
68C --- Position of the Gauss point
69 ksi = vpg(1,ng)
70 eta = vpg(2,ng)
71C --- Shape function value
72 sf1 = (1-ksi)*(1-eta)
73 sf2 = (1+ksi)*(1-eta)
74 sf3 = (1+ksi)*(1+eta)
75 sf4 = (1-ksi)*(1+eta)
76C --- Length of the non-local vector
77 l_nloc = nloc_dmg%L_NLOC
78 dnl => nloc_dmg%DNL(1:l_nloc) ! DNL = non local variable increment
79C --- Loop over
80 DO i=jft,jlt
81 nc1(i) = ixc(2,i)
82 nc2(i) = ixc(3,i)
83 nc3(i) = ixc(4,i)
84 nc4(i) = ixc(5,i)
85 ENDDO
86 DO k = 1,nddl
87#include "vectorize.inc"
88 DO i=jft,jlt
89 inod(1) = nloc_dmg%IDXI(nc1(i))
90 inod(2) = nloc_dmg%IDXI(nc2(i))
91 inod(3) = nloc_dmg%IDXI(nc3(i))
92 inod(4) = nloc_dmg%IDXI(nc4(i))
93 ipos(1) = nloc_dmg%POSI(inod(1))
94 ipos(2) = nloc_dmg%POSI(inod(2))
95 ipos(3) = nloc_dmg%POSI(inod(3))
96 ipos(4) = nloc_dmg%POSI(inod(4))
97 varnl(i,k) = zero
98 varnl(i,k) = fourth*(sf1*dnl(ipos(1)+k-1) + sf2*dnl(ipos(2)+k-1)
99 . + sf3*dnl(ipos(3)+k-1) + sf4*dnl(ipos(4)+k-1))
100 ENDDO
101 ENDDO
102C
103 END
subroutine cbavarnl(jft, jlt, ng, ixc, nloc_dmg, varnl, nddl, nc1, nc2, nc3, nc4, nel)
Definition cbavarnl.F:33
#define my_real
Definition cppsort.cpp:32