OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cpxpy3.F File Reference
#include "implicit_f.inc"
#include "mvsiz_p.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine cpxpy3 (jft, jlt, pm, sti, smstr, px1, px2, py1, py2, stir, ixc, area, x2, x3, x4, y2, y3, y4, z2, thk0, mat, nel)

Function/Subroutine Documentation

◆ cpxpy3()

subroutine cpxpy3 ( integer jft,
integer jlt,
pm,
sti,
smstr,
px1,
px2,
py1,
py2,
stir,
integer, dimension(nixc,*) ixc,
area,
x2,
x3,
x4,
y2,
y3,
y4,
z2,
thk0,
integer, dimension(mvsiz) mat,
integer nel )

Definition at line 31 of file cpxpy3.F.

36 use element_mod , only : nixc
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER MAT(MVSIZ), IXC(NIXC,*), JFT, JLT,NEL
53C REAL
55 . pm(npropm,*), sti(*), stir(*),smstr(*),
56 . px1(*), px2(*), py1(*), py2(*),
57 . x2(mvsiz), x3(mvsiz), x4(mvsiz),area(mvsiz),
58 . y2(mvsiz), y3(mvsiz), y4(mvsiz), z2(mvsiz),thk0(mvsiz)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER I, II(4), MX
63C REAL
65 . young ,
66 . pxx, al2
67C=======================================================================
68 mx = mat(jft)
69 young=pm(20,mx)
70C
71 DO i=1,4
72 ii(i) = nel*(i-1)
73 ENDDO
74C
75 DO i=jft,jlt
76 z2(i) = zero
77 px1(i) = smstr(ii(1)+i)
78 px2(i) = smstr(ii(2)+i)
79 py1(i) = smstr(ii(3)+i)
80 py2(i) = smstr(ii(4)+i)
81 x2(i) =-two*py1(i)
82 y2(i) = zero
83 x3(i) =-two*py2(i)
84 y3(i) = two*px2(i)
85 x4(i) = zero
86 y4(i) =-two*px1(i)
87 z2(i) = zero
88 area(i)= two*(py2(i)*px1(i)-py1(i)*px2(i))
89 ENDDO
90C
91 DO i=jft,jlt
92 pxx = max(px1(i)**2+py1(i)**2,px2(i)**2+py2(i)**2)
93 sti(i) = young * pxx * thk0(i) / area(i)
94 stir(i)= zero
95 ENDDO
96C
97 DO i=jft,jlt
98 IF (ixc(4,i) == ixc(5,i)) THEN
99 al2= (py1(i)+py2(i))**2
100 al2= min(al2, px1(i)**2+py1(i)**2 )
101 al2= four * min(al2, px2(i)**2+py2(i)**2 )
102 sti(i) = half * area(i) * thk0(i) * young / al2
103 ENDIF
104 ENDDO
105C-----------
106 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21