OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
srho3.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"
#include "mvsiz_p.inc"
#include "vect01_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine srho3 (pm, volo, rhon, eint, dxx, dyy, dzz, voln, dvol, mat)

Function/Subroutine Documentation

◆ srho3()

subroutine srho3 ( pm,
volo,
rhon,
eint,
dxx,
dyy,
dzz,
voln,
dvol,
integer, dimension(*) mat )

Definition at line 29 of file srho3.F.

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
#define my_real
Definition cppsort.cpp:32