OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cdlen3.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!|| cdlen3 ../engine/source/elements/shell/coque/cdlen3.F
25!||--- called by ------------------------------------------------------
26!|| cforc3 ../engine/source/elements/shell/coque/cforc3.F
27!|| cforc3_crk ../engine/source/elements/xfem/cforc3_crk.F
28!||====================================================================
29 SUBROUTINE cdlen3(JFT,JLT ,PM ,OFF,AREA,
30 2 X2 ,X3 ,X4 ,Y2 ,Y3 ,
31 3 Y4 ,ALDT,MAT,GEO ,PID ,
32 4 IHBE)
33C _clean 3 Y4 ,ALDT,MAT,GEO ,PID)
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 C o m m o n B l o c k s
44C-----------------------------------------------
45#include "param_c.inc"
46#include "com04_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER MAT(MVSIZ),JFT, JLT,PID(*),
51 . IHBE
52C REAL
54 . pm(npropm,*), off(*), geo(npropg,*)
56 . x2(mvsiz), x3(mvsiz), x4(mvsiz),
57 . y2(mvsiz), y3(mvsiz), y4(mvsiz),
58 . area(mvsiz), aldt(mvsiz)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER I, MX,IPID
63C REAL
64 my_real
65 . al1(mvsiz), al2(mvsiz), al3(mvsiz),
66 . al4(mvsiz), al5(mvsiz), al6(mvsiz),
67 . almin(mvsiz),
68 . alquad, dtdyn, h1, h2, dthour
69C-----------------------------------------------
70 DO i=jft,jlt
71 al1(i)= x2(i) * x2(i) + y2(i) * y2(i)
72 al2(i)=(x3(i)-x2(i))*(x3(i)-x2(i))+(y3(i)-y2(i))*(y3(i)-y2(i))
73 al6(i)= x3(i) * x3(i) + y3(i) * y3(i)
74 al3(i)=(x4(i)-x3(i))*(x4(i)-x3(i))+(y4(i)-y3(i))*(y4(i)-y3(i))
75 al4(i)= x4(i) * x4(i) + y4(i) * y4(i)
76 al5(i)=(x4(i)-x2(i))*(x4(i)-x2(i))+(y4(i)-y2(i))*(y4(i)-y2(i))
77 ENDDO
78C
79 DO i=jft,jlt
80 almin(i)= min(al1(i),al2(i),al4(i))
81 alquad = min(al3(i),al5(i),al6(i))
82 IF(al3(i)/=zero) almin(i)= min(almin(i),alquad)
83 dtdyn= area(i)*area(i) / max(al5(i),al6(i),em20)
84 aldt(i)= max( dtdyn , almin(i) )
85 ENDDO
86C---------------------------------------------------------
87C DT COMPATIBLE AVEC FONCTIONS DE FORMES SUR HOURGLASS
88C---------------------------------------------------------
89 IF(ihbe/=0)THEN
90 mx = mat(jft)
91 DO i=jft,jlt
92 IF(invstr>=35)THEN
93 ipid=pid(i)
94 h1 =geo(13,ipid)
95 h2 =geo(14,ipid)
96 ELSE
97 h1 =pm( 5,mx)
98 h2 =pm( 6,mx)
99 ENDIF
100 dthour = half * (almin(i)+aldt(i)) / max(h1,h2)
101C Bug HP ALDT(I) = MIN(ALDT(I),DTHOUR)
102 IF (dthour<aldt(i)) aldt(i)=dthour
103 ENDDO
104 ELSE
105 mx = mat(jft)
106 DO i=jft,jlt
107 IF(invstr>=35)THEN
108 ipid=pid(i)
109 h1 =geo(13,ipid)
110 h2 =geo(14,ipid)
111 ELSE
112 h1 =pm( 5,mx)
113 h2 =pm( 6,mx)
114 ENDIF
115 dthour = half * (almin(i)+aldt(i)) / max(h1,h2)
116 aldt(i) = min(aldt(i),dthour)
117 ENDDO
118 ENDIF
119C---------------------------------------------------------
120 DO i=jft,jlt
121 aldt(i)= sqrt( aldt(i) )
122 ENDDO
123C
124 RETURN
125 END
subroutine cdlen3(jft, jlt, pm, off, area, x2, x3, x4, y2, y3, y4, aldt, mat, geo, pid, ihbe)
Definition cdlen3.F:33
#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