OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mvoludt.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!|| mvoludt ../engine/source/airbag/mvoludt.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||====================================================================
28 SUBROUTINE mvoludt(MONVOL,VOLMON)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C C o m m o n B l o c k s
35C-----------------------------------------------
36#include "com04_c.inc"
37#include "com08_c.inc"
38#include "param_c.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER MONVOL(*)
44 . volmon(*)
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I, ITYP, K1, KK1
49C REAL
51 . dtx, dty, gama, p, v, s, rot, al
52C-----------------------------------------------
53C
54 dtx=one
55 dty=one
56 k1 = 1
57 kk1 = 0
58 DO i=1,nvolu
59 ityp=monvol(k1+1)
60C communication in resol just before mvoludt and sending to proc0 of volmon
61C avoid difference in parallel when processor does not handle all airbags
62C see formulas on min dty / max dtx
63C separate branch for the main proc (proc having updated p,v,s)
64 IF(ityp/=1)THEN
65 gama=volmon(kk1+1)
66 al=volmon(kk1+2)
67 p=volmon(kk1+12)
68 v=volmon(kk1+16)-volmon(kk1+5)
69 s=volmon(kk1+18)
70 rot=volmon(kk1+21)
71 dty=min(sqrt(one+al)-al,dty)
72 IF(rot==zero) THEN
73 dtx=dty
74 ELSE
75 dtx=max(sqrt(one+dt2**2*gama*p*s/v/rot),dtx)
76 ENDIF
77 ENDIF
78 k1 = k1 + nimv
79 kk1 = kk1 + nrvolu
80 ENDDO
81C
82 dt2=dt2*dty/dtx
83 RETURN
84 END
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine mvoludt(monvol, volmon)
Definition mvoludt.F:29