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