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

Go to the source code of this file.

Functions/Subroutines

subroutine spvol3 (off, pm, volo, eint, rhoa, rhon, voln, dvol, ngl, mat, lft, llt, jlag)

Function/Subroutine Documentation

◆ spvol3()

subroutine spvol3 ( off,
pm,
volo,
eint,
rhoa,
rhon,
voln,
dvol,
integer, dimension(*) ngl,
integer, dimension(*) mat,
integer, intent(inout) lft,
integer, intent(inout) llt,
integer, intent(inout) jlag )

Definition at line 28 of file spvol3.F.

33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C G l o b a l P a r a m e t e r s
39C-----------------------------------------------
40#include "mvsiz_p.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER, INTENT(INOUT) :: LFT
49 INTEGER, INTENT(INOUT) :: LLT
50 INTEGER, INTENT(INOUT) :: JLAG
51C REAL
53 . off(*),pm(npropm,*),volo(*),eint(*),rhoa(*),
54 . rhon(*),voln(*),dvol(*)
55 INTEGER NGL(*),MAT(*)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I
60C REAL
62 . rho0(mvsiz),vola(mvsiz)
63C-----------------------------------------------
64C LAGRANGIAN ONLY.
65C IF(JLAG/=0)THEN
66 DO i=lft,llt
67 rho0(i)=pm(1,mat(i))
68 ENDDO
69C
70 DO i=lft,llt
71 vola(i)=(rho0(i)/rhoa(i))*volo(i)
72 voln(i)=(rho0(i)/rhon(i))*volo(i)
73 dvol(i)=voln(i)-vola(i)
74 eint(i)=eint(i)*volo(i)
75 ENDDO
76C
77C IF(IDTMIN(1)==1)THEN
78C DO 120 I=LFT,LLT
79C IF(OFF(I) ==0.)THEN
80C VOLN(I)=1.
81C ELSEIF(VOLN(I)<=VOLMIN)THEN
82C VOLN(I)=1.
83C OFF(I)=0.
84C CALL MY_LOCK
85C WRITE(ISTDO,2000) NGL(I)
86C WRITE(IOUT ,2000) NGL(I)
87C CALL MY_FREE
88C ELSEIF(VOLN(I)<=0.0)THEN
89C CALL MY_LOCK
90C WRITE(ISTDO,1000) NGL(I)
91C WRITE(IOUT ,1000) NGL(I)
92C CALL MY_FREE
93C CALL ARRET(2)
94C ENDIF
95C 120 CONTINUE
96C ELSEIF(IDTMIN(1)==2)THEN
97C DO 130 I=LFT,LLT
98C IF(OFF(I) ==0.)THEN
99C VOLN(I)=1.
100C ELSEIF(VOLN(I)<=VOLMIN.OR.VOLN(I)<=0.0)THEN
101C VOLN(I)=1.
102C OFF(I)=0.
103C CALL MY_LOCK
104C WRITE(ISTDO,2000) NGL(I)
105C WRITE(IOUT ,2000) NGL(I)
106C CALL MY_FREE
107C ENDIF
108C 130 CONTINUE
109C ELSE
110 DO i=lft,llt
111 IF(off(i) ==zero)voln(i)=one
112 ENDDO
113C ENDIF
114C
115 RETURN
#define my_real
Definition cppsort.cpp:32