OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cbavarnl.F File Reference
#include "implicit_f.inc"
#include "vectorize.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine cbavarnl (jft, jlt, ng, ixc, nloc_dmg, varnl, nddl, nc1, nc2, nc3, nc4, nel)

Function/Subroutine Documentation

◆ cbavarnl()

subroutine cbavarnl ( integer jft,
integer jlt,
integer ng,
integer, dimension(nixc,*) ixc,
type(nlocal_str_), target nloc_dmg,
dimension(nel,nddl), intent(inout) varnl,
integer nddl,
integer, dimension(*), intent(inout) nc1,
integer, dimension(*), intent(inout) nc2,
integer, dimension(*), intent(inout) nc3,
integer, dimension(*), intent(inout) nc4,
integer nel )

Definition at line 31 of file cbavarnl.F.

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
#define my_real
Definition cppsort.cpp:32