OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pmcum3.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!|| pmcum3 ../engine/source/elements/beam/pmcum3.F
25!||--- called by ------------------------------------------------------
26!|| pforc3 ../engine/source/elements/beam/pforc3.F
27!||====================================================================
28 SUBROUTINE pmcum3(
29 1 M, STIR, STIFR, MX1,
30 2 MX2, MY1, MY2, MZ1,
31 3 MZ2, NC1, NC2, NC3,
32 4 E1X, E1Y, E1Z, E2X,
33 5 E2Y, E2Z, E3X, E3Y,
34 6 E3Z, M11, M12, M21,
35 7 M22, M31, M32, NEL)
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C G l o b a l P a r a m e t e r s
42C-----------------------------------------------
43#include "mvsiz_p.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER, INTENT(IN) :: NEL
51 INTEGER NC1(MVSIZ),NC2(MVSIZ),NC3(MVSIZ)
52 my_real
53 . M(3,*),STIR(*),STIFR(*),
54 . MX1(MVSIZ),MY1(MVSIZ),MZ1(MVSIZ),
55 . MX2(MVSIZ),MY2(MVSIZ),MZ2(MVSIZ),
56 . E1X(MVSIZ),E1Y(MVSIZ),E1Z(MVSIZ),
57 . e2x(mvsiz),e2y(mvsiz),e2z(mvsiz),
58 . e3x(mvsiz),e3y(mvsiz),e3z(mvsiz),
59 . m11(mvsiz),m12(mvsiz),m21(mvsiz),
60 . m22(mvsiz),m31(mvsiz),m32(mvsiz)
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER I, J
65 my_real
66 . G11(MVSIZ),G21(MVSIZ),G31(MVSIZ),
67 . G12(MVSIZ),G22(MVSIZ),G32(MVSIZ)
68C-----------------------------------------------
69 DO I=1,nel
70 g11(i)=m11(i)
71 g21(i)=m21(i)
72 g31(i)=m31(i)
73 g12(i)=m12(i)
74 g22(i)=m22(i)
75 g32(i)=m32(i)
76 ENDDO
77C
78 DO i=1,nel
79 m11(i)=e1x(i)*g11(i)+e2x(i)*g21(i)+e3x(i)*g31(i)
80 m21(i)=e1y(i)*g11(i)+e2y(i)*g21(i)+e3y(i)*g31(i)
81 m31(i)=e1z(i)*g11(i)+e2z(i)*g21(i)+e3z(i)*g31(i)
82 m12(i)=e1x(i)*g12(i)+e2x(i)*g22(i)+e3x(i)*g32(i)
83 m22(i)=e1y(i)*g12(i)+e2y(i)*g22(i)+e3y(i)*g32(i)
84 m32(i)=e1z(i)*g12(i)+e2z(i)*g22(i)+e3z(i)*g32(i)
85 ENDDO
86C-------------------------
87C ASSEMBLAGE
88C-------------------------
89 DO i=1,nel
90 m(1,nc1(i))=m(1,nc1(i))-m11(i)
91 m(2,nc1(i))=m(2,nc1(i))-m21(i)
92 m(3,nc1(i))=m(3,nc1(i))-m31(i)
93 mx1(i) = m11(i)
94 my1(i) = m21(i)
95 mz1(i) = m31(i)
96 stifr(nc1(i))=stifr(nc1(i))+stir(i)
97C
98 m(1,nc2(i))=m(1,nc2(i))-m12(i)
99 m(2,nc2(i))=m(2,nc2(i))-m22(i)
100 m(3,nc2(i))=m(3,nc2(i))-m32(i)
101 mx2(i) = m12(i)
102 my2(i) = m22(i)
103 mz2(i) = m32(i)
104 stifr(nc2(i))=stifr(nc2(i))+stir(i)
105 ENDDO
106C-----------------------------------------------
107 RETURN
108 END
subroutine pmcum3(m, stir, stifr, mx1, mx2, my1, my2, mz1, mz2, nc1, nc2, nc3, e1x, e1y, e1z, e2x, e2y, e2z, e3x, e3y, e3z, m11, m12, m21, m22, m31, m32, nel)
Definition pmcum3.F:36