OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dt51law.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!|| dt51law ../starter/source/materials/time_step/dt51law.F
25!||--- called by ------------------------------------------------------
26!|| dtmain ../starter/source/materials/time_step/dtmain.F
27!||--- calls -----------------------------------------------------
28!|| dtel ../starter/source/materials/time_step/dtel.F
29!|| dtsph ../starter/source/materials/time_step/dtsph.F
30!||====================================================================
31 SUBROUTINE dt51law (PM,GEO,PID,MAT, BUFMAT, IPM, DELTAX, AIRE, VOL, DTX)
32C-----------------------------------------------
33C D e s c r i p t i o n
34C-----------------------------------------------
35C ELEMENTARY TIME STEPS FOR ALE MULTI MATERIAL LAW 51 (/MAT/MULTIMAT)
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-----------------------------------------------
47#include "vect01_c.inc"
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 my_real, INTENT(IN) :: pm(npropm, *), geo(npropg, *), aire(*), vol(*)
53 my_real, INTENT(INOUT) :: dtx(*)
54 my_real, INTENT(IN), DIMENSION(:), TARGET :: bufmat(*), deltax(*)
55 INTEGER, INTENT(IN) :: PID(*),MAT(*),IPM(NPROPMI, *)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER :: I, IADBUF,IFLG(MVSIZ), BIJ(4)
60 my_real,DIMENSION(:),POINTER :: uparam
61 my_real :: ssp(mvsiz) , rho0(mvsiz) , bulk(mvsiz) ,
62 . av1(mvsiz) , av2(mvsiz) , av3(mvsiz) , av4(mvsiz) ,
63 . rho10(mvsiz), rho20(mvsiz), rho30(mvsiz), rho40(mvsiz),
64 . ssp1(mvsiz) , ssp2(mvsiz) , ssp3(mvsiz) , ssp4(mvsiz),
65 . vis(mvsiz) , rho0_bak(mvsiz)
66 INTEGER :: IAV(4),IRHO(4),ISSP(4),NUPARAM
67
68c-----------------------------------------------
69 iav(1:4) = (/ 4,5,6,46 /)
70 irho(1:4) = (/ 9,10,11,47 /)
71 issp(1:4) = (/ 124,174,224,273 /)
72C-----------------------------------------------
73C S o u r c e L i n e s
74C-----------------------------------------------
75 iflg(1) = 0
76 DO i=1,llt
77 iadbuf = ipm(7,mat(i))
78 nuparam = ipm(9,mat(i))
79 uparam =>bufmat(iadbuf:iadbuf+nuparam-1)
80 bij(1:4) = nint(uparam(277:280))
81 av1(i) = uparam(iav(bij(1)))
82 av2(i) = uparam(iav(bij(2)))
83 av3(i) = uparam(iav(bij(3)))
84 av4(i) = uparam(iav(bij(4)))
85 rho10(i) = uparam(irho(bij(1)))
86 rho20(i) = uparam(irho(bij(2)))
87 rho30(i) = uparam(irho(bij(3)))
88 rho40(i) = uparam(irho(bij(4)))
89 iflg(i) = nint(uparam(31))
90 vis(i) = zero
91 ssp1(i) = uparam(issp(bij(1)))
92 ssp2(i) = uparam(issp(bij(2)))
93 ssp3(i) = uparam(issp(bij(3)))
94 ssp4(i) = uparam(issp(bij(4)))
95 enddo!next I
96
97 IF (iflg(1) == 6) THEN
98 DO i=lft,llt
99 dtx(i)=ep20
100 ENDDO
101 RETURN
102 ENDIF
103
104 DO i=lft,llt
105 rho0(i) = av1(i)*rho10(i) + av2(i)*rho20(i) + av3(i)*rho30(i) + av4(i)*rho40(i)
106 ENDDO
107
108 DO i=lft,llt
109 bulk(i) = av1(i)*rho10(i)*ssp1(i)**2
110 . + av2(i)*rho20(i)*ssp2(i)**2
111 . + av3(i)*rho30(i)*ssp3(i)**2
112 . + av4(i)*rho40(i)*ssp4(i)**2
113 IF (rho0(i) > zero) THEN
114 ssp(i) = sqrt(bulk(i)/rho0(i))
115 rho0_bak(i)=rho0(i)
116 ELSE
117 ssp(i) = em20
118 rho0_bak(i)=em20
119 ENDIF
120 enddo!next I
121
122 !----------------------------------------------!
123 ! ELEMENTARY TIME STEP (ARTIFICIAL VISCOSITY) !
124 !----------------------------------------------!
125 IF(jsph==0)THEN
126 CALL dtel(ssp,pm,geo,pid,mat, rho0_bak, vis, deltax, aire, vol, dtx)
127 ELSE
128 CALL dtsph(ssp,pm,geo,pid,mat, rho0_bak, vis, deltax, vol, dtx)
129 ENDIF
130C-----------
131 RETURN
132 END
#define my_real
Definition cppsort.cpp:32
subroutine dt51law(pm, geo, pid, mat, bufmat, ipm, deltax, aire, vol, dtx)
Definition dt51law.F:32
subroutine dtel(ssp, pm, geo, pid, mat, rho0, vis, deltax, aire, vol, dtx)
Definition dtel.F:46
subroutine dtsph(ssp, pm, geo, pid, mat, rho0, vis, deltax, vol, dtx)
Definition dtsph.F:44