OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spvol3.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!|| spvol3 ../engine/source/elements/sph/spvol3.F
25!||--- called by ------------------------------------------------------
26!|| spstres ../engine/source/elements/sph/spstres.F
27!||====================================================================
28 SUBROUTINE spvol3(
29 1 OFF, PM, VOLO, EINT,
30 2 RHOA, RHON, VOLN, DVOL,
31 3 NGL, MAT, LFT, LLT,
32 4 JLAG)
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
61 my_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
116 END
#define my_real
Definition cppsort.cpp:32
subroutine spvol3(off, pm, volo, eint, rhoa, rhon, voln, dvol, ngl, mat, lft, llt, jlag)
Definition spvol3.F:33