OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pdamp3.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!|| pdamp3 ../engine/source/elements/beam/pdamp3.F
25!||--- called by ------------------------------------------------------
26!|| pforc3 ../engine/source/elements/beam/pforc3.F
27!||====================================================================
28 SUBROUTINE pdamp3(
29 . PM ,GEO ,OFF ,IMAT ,IPID ,
30 . NEL ,NGL ,EXX ,EXY ,EXZ ,
31 . KXX ,KYY ,KZZ ,AL ,FA1 ,
32 . FA2 ,FA3 ,MA1 ,MA2 ,MA3 ,
33 . IMPL_S ,IDYNA ,DT1 )
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "param_c.inc"
42#include "com04_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER ,INTENT(IN) :: NEL,IMAT,IPID,IMPL_S,IDYNA
47 INTEGER ,DIMENSION(NEL) ,INTENT(IN) :: NGL
48 my_real ,DIMENSION(NPROPG,NUMGEO) ,INTENT(IN):: GEO
49 my_real ,DIMENSION(NPROPM,NUMMAT) ,INTENT(IN):: PM
50 my_real ,DIMENSION(NEL) ,INTENT(IN) :: OFF
51 my_real ,DIMENSION(NEL) ,INTENT(IN) :: al
52 my_real ,DIMENSION(NEL) ,INTENT(IN) :: exx,exy,exz,kxx,kyy,kzz
53 my_real ,DIMENSION(NEL) ,INTENT(INOUT):: fa1,fa2,fa3,ma1,ma2,ma3
54 my_real ,INTENT(IN) :: dt1
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I
59 my_real :: rho,rhoe,rhog,young,g,dmm,iyy,izz,ixx,area,dtinv
60 my_real ,DIMENSION(NEL) :: vol,dmpm,dmpf
61c=======================================================================
62 rho = pm( 1,imat)
63 young= pm(20,imat)
64 g = pm(22,imat)
65 area = geo(1,ipid)
66 ixx = geo(4,ipid)
67 iyy = geo(2,ipid)
68 izz = geo(18,ipid)
69 rhoe = sqrt(two*young*rho)
70 rhog = sqrt(two*g *rho)
71c
72 vol(1:nel) = area*al(1:nel)
73 dtinv = dt1/max(dt1**2,em20)
74c
75 IF (impl_s == 0 .OR. idyna > 0) THEN
76 DO i=1,nel
77 dmpm(i)=dtinv*geo(16,ipid)*off(i)
78 dmpf(i)=dtinv*geo(17,ipid)*off(i)
79 ENDDO
80 ELSE
81 DO i=1,nel
82 dmpm(i)=zero
83 dmpf(i)=zero
84 ENDDO
85 ENDIF
86C-----------------------------
87C AMORTISSEMENT
88C-----------------------------
89 DO i=1,nel
90 dmm = vol(i)*rhoe
91 fa1(i) = fa1(i) + dmpm(i)*exx(i)*dmm
92 fa2(i) = fa2(i) + dmpf(i)*exy(i)*dmm
93 fa3(i) = fa3(i) + dmpf(i)*exz(i)*dmm
94 ma1(i) = ma1(i) + dmpf(i)*kxx(i)*al(i)*ixx*rhog
95 ma2(i) = ma2(i) + dmpf(i)*kyy(i)*al(i)*iyy*rhoe
96 ma3(i) = ma3(i) + dmpf(i)*kzz(i)*al(i)*izz*rhoe
97 ENDDO
98C-----------
99 RETURN
100 END SUBROUTINE pdamp3
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21
subroutine pdamp3(pm, geo, off, imat, ipid, nel, ngl, exx, exy, exz, kxx, kyy, kzz, al, fa1, fa2, fa3, ma1, ma2, ma3, impl_s, idyna, dt1)
Definition pdamp3.F:34