OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
srho3.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!|| srho3 ../starter/source/elements/solid/solide/srho3.F
25!||--- called by ------------------------------------------------------
26!|| s4refsta3 ../starter/source/elements/solid/solide4/s4refsta3.F
27!|| srefsta3 ../starter/source/elements/solid/solide/srefsta3.F
28!||====================================================================
29 SUBROUTINE srho3(PM ,VOLO ,RHON ,EINT ,DXX ,
30 . DYY ,DZZ ,VOLN ,DVOL ,MAT )
31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C G l o b a l P a r a m e t e r s
37C-----------------------------------------------
38#include "param_c.inc"
39#include "mvsiz_p.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "vect01_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER MAT(*)
48C REAL
50 . pm(npropm,*), volo(*), rhon(*), eint(*),
51 . voln(*), dvol(*), dxx(*), dyy(*), dzz(*)
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I
57 . rho0(mvsiz),dvv
58C-----------------------------------------------
59 DO i=lft,llt
60 rho0(i)=pm(1,mat(i))
61 ENDDO
62C
63 IF(ismstr==1 .OR. ismstr==11)THEN
64 DO i=lft,llt
65 dvv = dxx(i)+dyy(i)+dzz(i)
66 dvol(i) = volo(i)*dvv
67 rhon(i) = rhon(i)-dvv*rho0(i)
68 ENDDO
69 ELSE
70 IF (mtn /= 115) THEN
71 DO i=lft,llt
72 dvol(i)=voln(i)-(rho0(i)/rhon(i))*volo(i)
73 rhon(i)=rho0(i)*(volo(i)/voln(i))
74 ENDDO
75 ELSE
76 DO i=lft,llt
77 dvol(i)=voln(i)-(rhon(llt+i)/rhon(i))*volo(i)
78 rhon(i)=rhon(llt+i)*(volo(i)/voln(i))
79 ENDDO
80 ENDIF
81 END IF
82
83 DO i=lft,llt
84 eint(i)=eint(i)*volo(i)
85 ENDDO
86
87 RETURN
88 END
#define my_real
Definition cppsort.cpp:32
subroutine srho3(pm, volo, rhon, eint, dxx, dyy, dzz, voln, dvol, mat)
Definition srho3.F:31