OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
multi_update_partial.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!|| multi_update_partial ../engine/source/multifluid/multi_update_partial.F
25!||--- called by ------------------------------------------------------
26!|| multi_timeevolution ../engine/source/multifluid/multi_timeevolution.f
27!||--- uses -----------------------------------------------------
28!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
29!|| initbuf_mod ../engine/share/resol/initbuf.F
30!|| multi_fvm_mod ../common_source/modules/ale/multi_fvm_mod.F90
31!||====================================================================
32 SUBROUTINE multi_update_partial(LOCAL_MATID, PM, IMAT, NG, ELBUF_TAB,
33 . IPARG, ITASK, MULTI_FVM, VOLNEW)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE initbuf_mod
38 USE elbufdef_mod
39 USE multi_fvm_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com01_c.inc"
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(IN) :: IMAT, NG, LOCAL_MATID
53 my_real, INTENT(IN) :: pm(npropm, *), volnew(*)
54 TYPE(elbuf_struct_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
55 INTEGER, INTENT(IN) :: IPARG(NPARG, *)
56 INTEGER, INTENT(IN) :: ITASK ! SMP TASK
57 TYPE(multi_fvm_struct), INTENT(INOUT) :: MULTI_FVM
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 TYPE(g_bufel_), POINTER :: GBUF
62 TYPE(l_bufel_), POINTER :: LBUF
63 INTEGER :: II, I, NEL, NFT
64 my_real :: tmp2, tmp3, tmp4, rho0, e0
65C-----------------------------------------------
66C B e g i n n i n g o f s u b r o u t i n e
67C-----------------------------------------------
68 gbuf => elbuf_tab(ng)%GBUF
69 lbuf => elbuf_tab(ng)%BUFLY(imat)%LBUF(1, 1, 1)
70 rho0 = pm(1, local_matid)
71 e0 = pm(23, local_matid)
72 nel = iparg(2, ng)
73 nft = iparg(3, ng)
74
75 DO ii = 1, nel
76 i = ii + nft
77C Volume
78 tmp4 = multi_fvm%PHASE_ALPHA(imat, i)
79C Mass
80 tmp2 = multi_fvm%PHASE_RHO(imat, i)
81C Mass * e specifique
82 tmp3 = multi_fvm%PHASE_EINT(imat, i)
83
84C Filtrage
85 IF (tmp4 / gbuf%VOL(ii) < em08) THEN
86 multi_fvm%PHASE_ALPHA(imat, i) = zero
87 multi_fvm%PHASE_RHO(imat, i) = rho0
88 multi_fvm%PHASE_EINT(imat, i) = e0
89 ELSE
90 IF (tmp2 < zero) THEN
91 multi_fvm%PHASE_RHO(imat, i) = lbuf%RHO(ii)
92 multi_fvm%PHASE_EINT(imat, i) = lbuf%EINT(ii)
93 multi_fvm%PHASE_ALPHA(imat, i) = tmp4 / volnew(ii)
94 ELSE
95C Mass density
96 multi_fvm%PHASE_RHO(imat, i) = tmp2 / tmp4
97C INternal energy
98 multi_fvm%PHASE_EINT(imat, i) = tmp3 / tmp4
99C Volume fraction
100 multi_fvm%PHASE_ALPHA(imat, i) = tmp4 / volnew(ii)
101 ENDIF
102 ENDIF
103 ENDDO
104C-----------------------------------------------
105C E n d o f s u b r o u t i n e
106C-----------------------------------------------
107 END SUBROUTINE multi_update_partial
#define my_real
Definition cppsort.cpp:32
subroutine multi_timeevolution(timers, timestep, elbuf_tab, iparg, itask, ixs, ixq, ixtg, pm, ipm, multi_fvm, ale_connectivity, vel, accele, wgrid, xgrid, dnod, nale, partsav, iparts, gresav, igrth, grth, nercvois, nesdvois, lercvois, lesdvois, itab, itabm1, current_time, stifn, fsky, iads, fskym, condn, condnsky, bufmat, func_value, pred, id_global_vois, face_vois, ebcs_tab, npf, tf, fsavsurf, matparam, wfext)
subroutine multi_update_partial(local_matid, pm, imat, ng, elbuf_tab, iparg, itask, multi_fvm, volnew)