OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cupdtn3pinch.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!|| cupdtn3pinch ../engine/source/elements/shell/coqueba/cupdtn3pinch.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!||====================================================================
30 SUBROUTINE cupdtn3pinch(
31 1 JFT ,JLT ,NVC ,IXC ,
32 2 FP ,FPINCH ,STI ,STIFPINCH ,FACP )
33 use element_mod , only : nixc
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C G l o b a l P a r a m e t e r s
40C-----------------------------------------------
41#include "mvsiz_p.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER JFT, JLT, NVC
46 INTEGER IXC(NIXC,MVSIZ)
48 . fp(mvsiz,3,4), fpinch(3,*),
49 . sti(mvsiz), stifpinch(*), facp(mvsiz)
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER NVC1, NVC2, NVC3, NVC4, I
54C-----------------------------------------------
55C
56 nvc1= nvc/8
57 nvc2=(nvc-nvc1*8)/4
58 nvc3=(nvc-nvc1*8-nvc2*4)/2
59 nvc4=(nvc-nvc1*8-nvc2*4-nvc3*2)
60C
61 IF(nvc1==0)THEN
62#include "vectorize.inc"
63 DO i=jft,jlt
64 fpinch(1,ixc(2,i))=fpinch(1,ixc(2,i))-fp(i,1,1)
65 fpinch(2,ixc(2,i))=fpinch(2,ixc(2,i))-fp(i,2,1)
66 fpinch(3,ixc(2,i))=fpinch(3,ixc(2,i))-fp(i,3,1)
67 stifpinch(ixc(2,i))=stifpinch(ixc(2,i))+sti(i)*facp(i)
68 ENDDO
69 ELSE
70 DO i=jft,jlt
71 fpinch(1,ixc(2,i))=fpinch(1,ixc(2,i))-fp(i,1,1)
72 fpinch(2,ixc(2,i))=fpinch(2,ixc(2,i))-fp(i,2,1)
73 fpinch(3,ixc(2,i))=fpinch(3,ixc(2,i))-fp(i,3,1)
74 stifpinch(ixc(2,i))=stifpinch(ixc(2,i))+sti(i)*facp(i)
75 ENDDO
76 ENDIF
77C
78 IF(nvc2==0)THEN
79#include "vectorize.inc"
80 DO i=jft,jlt
81 fpinch(1,ixc(3,i))=fpinch(1,ixc(3,i))-fp(i,1,2)
82 fpinch(2,ixc(3,i))=fpinch(2,ixc(3,i))-fp(i,2,2)
83 fpinch(3,ixc(3,i))=fpinch(3,ixc(3,i))-fp(i,3,2)
84 stifpinch(ixc(3,i))=stifpinch(ixc(3,i))+sti(i)*facp(i)
85 ENDDO
86 ELSE
87 DO i=jft,jlt
88 fpinch(1,ixc(3,i))=fpinch(1,ixc(3,i))-fp(i,1,2)
89 fpinch(2,ixc(3,i))=fpinch(2,ixc(3,i))-fp(i,2,2)
90 fpinch(3,ixc(3,i))=fpinch(3,ixc(3,i))-fp(i,3,2)
91 stifpinch(ixc(3,i))=stifpinch(ixc(3,i))+sti(i)*facp(i)
92 ENDDO
93 ENDIF
94C
95 IF(nvc3==0)THEN
96#include "vectorize.inc"
97 DO i=jft,jlt
98 fpinch(1,ixc(4,i))=fpinch(1,ixc(4,i))-fp(i,1,3)
99 fpinch(2,ixc(4,i))=fpinch(2,ixc(4,i))-fp(i,2,3)
100 fpinch(3,ixc(4,i))=fpinch(3,ixc(4,i))-fp(i,3,3)
101 stifpinch(ixc(4,i))=stifpinch(ixc(4,i))+sti(i)*facp(i)
102 ENDDO
103 ELSE
104 DO i=jft,jlt
105 fpinch(1,ixc(4,i))=fpinch(1,ixc(4,i))-fp(i,1,3)
106 fpinch(2,ixc(4,i))=fpinch(2,ixc(4,i))-fp(i,2,3)
107 fpinch(3,ixc(4,i))=fpinch(3,ixc(4,i))-fp(i,3,3)
108 stifpinch(ixc(4,i))=stifpinch(ixc(4,i))+sti(i)*facp(i)
109 ENDDO
110 ENDIF
111C
112 IF(nvc4==0)THEN
113#include "vectorize.inc"
114 DO i=jft,jlt
115 fpinch(1,ixc(5,i))=fpinch(1,ixc(5,i))-fp(i,1,4)
116 fpinch(2,ixc(5,i))=fpinch(2,ixc(5,i))-fp(i,2,4)
117 fpinch(3,ixc(5,i))=fpinch(3,ixc(5,i))-fp(i,3,4)
118 stifpinch(ixc(5,i))=stifpinch(ixc(5,i))+sti(i)*facp(i)
119 ENDDO
120 ELSE
121 DO i=jft,jlt
122 fpinch(1,ixc(5,i))=fpinch(1,ixc(5,i))-fp(i,1,4)
123 fpinch(2,ixc(5,i))=fpinch(2,ixc(5,i))-fp(i,2,4)
124 fpinch(3,ixc(5,i))=fpinch(3,ixc(5,i))-fp(i,3,4)
125 stifpinch(ixc(5,i))=stifpinch(ixc(5,i))+sti(i)*facp(i)
126 ENDDO
127 ENDIF
128C
129 RETURN
130 END
#define my_real
Definition cppsort.cpp:32
subroutine cupdtn3pinch(jft, jlt, nvc, ixc, fp, fpinch, sti, stifpinch, facp)