OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mtheta.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!|| mtheta ../engine/source/materials/mat_share/mtheta.F
25!||--- called by ------------------------------------------------------
26!|| mmain ../engine/source/materials/mat_share/mmain.F90
27!||====================================================================
28 SUBROUTINE mtheta(
29 1 PM, EINT, THETA, AMU,
30 2 C1, C2, DF, PSH,
31 3 PC, MAT, NEL)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "param_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER, INTENT(IN) :: NEL
44 INTEGER MAT(*)
45C REAL
47 . pm(npropm,*), eint(*), theta(*),
48 . amu(*), c1(*), c2(*), df(*), psh(*), pc(*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,MX
53 my_real EINT0, SPH, DMU, PLIM, C2MU, C1PSH, ECOLD
54C=======================================================================
55 mx = mat(1)
56 DO i=1,nel
57 sph =pm(69,mx)
58 eint0 =pm(23,mx)
59 theta(i)=pm(79,mx)
60 plim =pc(i)-c1(i)-psh(i)
61 IF(c2(i)>abs(plim/ep36))THEN
62 dmu = min(amu(i)-plim/c2(i),zero)
63 ELSE
64 dmu =zero
65 ENDIF
66C
67 c2mu =c2(i)*amu(i)
68 c1psh =c1(i)+psh(i)
69C ENERGIE ELASTIQUE
70 ecold =(c1psh + half*c2mu)*amu(i)
71C ENERGIE DE RUPTURE EN TRITENSION (OU CAVITATION)
72C HYP: NE CREEE PAR D'ECHAUFFEMENT
73 ecold =ecold + half*dmu*(c1psh+c2mu-pc(i))
74C ENERGIE INITIALE
75 ecold =ecold+eint0
76 theta(i)=theta(i) + (eint(i)*df(i)-ecold)/sph
77 ENDDO
78c-----------
79 RETURN
80 END
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
subroutine mtheta(pm, eint, theta, amu, c1, c2, df, psh, pc, mat, nel)
Definition mtheta.F:32