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