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 30 of file cbavarnl.F.

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