OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c3curv3.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!|| c3curv3 ../engine/source/elements/sh3n/coque3n/c3curv3.F
25!||--- called by ------------------------------------------------------
26!|| c3forc3 ../engine/source/elements/sh3n/coque3n/c3forc3.F
27!|| c3forc3_crk ../engine/source/elements/xfem/c3forc3_crk.F
28!||====================================================================
29 SUBROUTINE c3curv3(JFT,JLT,VRL1,VRL2,VRL3,
30 . IXTG,WXY,ISMSTR,KXX,KYY,KXY,
31 . PX1 ,PY1 ,PY2 ,EYZ ,EZX ,
32 . E1X ,E1Y ,E1Z ,E2X ,
33 . E2Y ,E2Z ,E3X ,E3Y ,E3Z )
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,IXTG(NIXTG,*),ISMSTR
46 my_real VRL1(MVSIZ,3), VRL2(MVSIZ,3), VRL3(MVSIZ,3),WXY(*),
47 . E1X(MVSIZ), E1Y(MVSIZ), E1Z(MVSIZ), E2X(MVSIZ),
48 . E2Y(MVSIZ), E2Z(MVSIZ), E3X(MVSIZ), E3Y(MVSIZ),
49 . e3z(mvsiz), ezx(mvsiz), eyz(mvsiz),
50 . px1(mvsiz), py1(mvsiz), py2(mvsiz),
51 . kxx(mvsiz), kyy(mvsiz), kxy(mvsiz)
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I
56 my_real RX1(MVSIZ), RX2(MVSIZ), RX3(MVSIZ),
57 . RY1(MVSIZ), RY2(MVSIZ), RY3(MVSIZ)
58 my_real RX12T,RX13T,RX23T,RY12T,RY13T,RY23T,RXAVT,RYAVT
59C=======================================================================
60 DO i=jft,jlt
61 rx1(i)=e1x(i)*vrl1(i,1)+e1y(i)*vrl1(i,2)+e1z(i)*vrl1(i,3)
62 ry1(i)=e2x(i)*vrl1(i,1)+e2y(i)*vrl1(i,2)+e2z(i)*vrl1(i,3)
63 ry2(i)=e2x(i)*vrl2(i,1)+e2y(i)*vrl2(i,2)+e2z(i)*vrl2(i,3)
64 rx2(i)=e1x(i)*vrl2(i,1)+e1y(i)*vrl2(i,2)+e1z(i)*vrl2(i,3)
65 rx3(i)=e1x(i)*vrl3(i,1)+e1y(i)*vrl3(i,2)+e1z(i)*vrl3(i,3)
66 ry3(i)=e2x(i)*vrl3(i,1)+e2y(i)*vrl3(i,2)+e2z(i)*vrl3(i,3)
67 ENDDO
68C
69 DO i=jft,jlt
70 rx12t = rx1(i) - rx2(i)
71 rx13t = rx1(i) - rx3(i)
72 rx23t = rx2(i) - rx3(i)
73C
74 kyy(i)=-py1(i) * rx13t - py2(i) * rx23t
75 kxy(i)= px1(i) * rx12t
76C
77 ry12t = ry1(i) - ry2(i)
78 ry13t = ry1(i) - ry3(i)
79 ry23t = ry2(i) - ry3(i)
80C
81 kxx(i) = px1(i) * ry12t
82 kxy(i) = py1(i) * ry13t + py2(i) * ry23t - kxy(i)
83C
84 ryavt = px1(i) * (
85 . px1(i) * (-rx1(i)+rx2(i))
86 . + (two*py1(i)+three*py2(i)) * ry1(i)
87 . + (three*py1(i)+two*py2(i)) * ry2(i)
88
89 . + ( py1(i) + py2(i) ) * ry3(i) )
90 rxavt = -px1(i) * (
91 . + (two*py1(i)+py2(i)) * rx1(i)
92 . + (py1(i)+two*py2(i)) * rx2(i)
93 . + three*(py1(i)+py2(i)) * rx3(i) )
94 . + py1(i) * (py1(i)+two*py2(i)) * ry1(i)
95 . - py2(i) * (two*py1(i)+py2(i)) * ry2(i)
96 . + ( py2(i)**2 - py1(i)**2 ) * ry3(i)
97C
98 ezx(i) = ezx(i) + ryavt * third
99 eyz(i) = eyz(i) + rxavt * third
100 ENDDO
101c
102 IF (ismstr==10) THEN
103 DO i=jft,jlt
104 rx12t = rx1(i) - rx2(i)
105 ry13t = ry1(i) - ry3(i)
106 ry23t = ry2(i) - ry3(i)
107C
108 wxy(i) = py1(i) * ry13t + py2(i) * ry23t + px1(i) * rx12t
109 ENDDO
110 ENDIF
111c-----------
112 RETURN
113 END
subroutine c3curv3(jft, jlt, vrl1, vrl2, vrl3, ixtg, wxy, ismstr, kxx, kyy, kxy, px1, py1, py2, eyz, ezx, e1x, e1y, e1z, e2x, e2y, e2z, e3x, e3y, e3z)
Definition c3curv3.F:34