OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
multi_ebcs.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_ebcs ../engine/source/multifluid/multi_ebcs.F
25!||--- called by ------------------------------------------------------
26!|| multi_timeevolution ../engine/source/multifluid/multi_timeevolution.F
27!||--- calls -----------------------------------------------------
28!|| multi_inlet_ebcs ../engine/source/multifluid/multi_inlet_ebcs.F
29!|| multi_nrf_ebcs ../engine/source/multifluid/multi_nrf_ebcs.F
30!|| multi_propellant_ebcs ../engine/source/multifluid/multi_propellant_ebcs.F90
31!||--- uses -----------------------------------------------------
32!|| ebcs_mod ../common_source/modules/boundary_conditions/ebcs_mod.F90
33!|| matparam_def_mod ../common_source/modules/mat_elem/matparam_def_mod.F90
34!|| multi_fvm_mod ../common_source/modules/ale/multi_fvm_mod.F90
35!|| multi_inlet_ebcs_mod ../engine/source/multifluid/multi_inlet_ebcs.F
36!|| th_surf_mod ../common_source/modules/interfaces/th_surf_mod.f
37!||====================================================================
38 SUBROUTINE multi_ebcs(ITASK, MULTI_FVM, IXS, IXQ, IXTG, XGRID, WGRID, IPM, PM,
39 . FUNC_VALUE, EBCS_TAB,NPF,TF,FSAVSURF,NSURF,TIMESTEP,
40 . NUMELS, NUMELQ, NUMELTG, NUMNOD, NCYCLE, NUMMAT, MATPARAM)
41C-----------------------------------------------
42C M o d u l e s
43C-----------------------------------------------
44 USE multi_fvm_mod
45 USE ebcs_mod
47 USE matparam_def_mod , ONLY : matparam_struct_
49C-----------------------------------------------
50C I m p l i c i t T y p e s
51C-----------------------------------------------
52#include "implicit_f.inc"
53C-----------------------------------------------
54C C o m m o n B l o c k s
55C-----------------------------------------------
56! NEBCS
57! NPEBC, NIXS
58#include "param_c.inc"
59! LISURF1
60! SNPC,STF
61#include "tabsiz_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 INTEGER,INTENT(IN) :: NUMMAT !< array size
66 TYPE(MATPARAM_STRUCT_), DIMENSION(NUMMAT), INTENT(IN) :: MATPARAM !material data structure
67 INTEGER,INTENT(IN) :: NCYCLE
68 INTEGER,INTENT(IN) :: NSURF
69 INTEGER,INTENT(IN) :: NUMELS, NUMELQ, NUMELTG, NUMNOD
70 my_real,INTENT(INOUT) :: fsavsurf(th_surf_num_channel,nsurf)
71 TYPE(multi_fvm_struct), INTENT(INOUT) :: MULTI_FVM
72 INTEGER, INTENT(IN) :: ITASK
73 INTEGER, INTENT(IN) :: IXS(NIXS, *), IXQ(NIXQ, *), IXTG(NIXTG, *)
74 my_real, INTENT(IN) :: xgrid(3, *), wgrid(3, *)
75 INTEGER, INTENT(IN) :: IPM(NPROPMI, *)
76 my_real, INTENT(IN) :: pm(npropm, *), func_value(*)
77 TYPE(t_ebcs_tab), TARGET, INTENT(IN) :: EBCS_TAB
78 INTEGER, INTENT(IN) :: NPF(SNPC)
79 my_real, INTENT(IN) :: tf(stf), timestep
80C-----------------------------------------------
81C L o c a l V a r i a b l e s
82C-----------------------------------------------
83 INTEGER :: I
84 INTEGER :: TYPE, NELEM
85 class(t_ebcs), POINTER :: ebcs
86C-----------------------------------------------
87C B e g i n n i n g o f s u b r o u t i n e
88C-----------------------------------------------
89 DO i = 1, ebcs_tab%nebcs_fvm
90 ebcs => ebcs_tab%tab(i)%poly
91 TYPE = ebcs%type
92 nelem = ebcs%nb_elem
93 SELECT TYPE (twf => ebcs)
94 TYPE IS (t_ebcs_inlet)
95C Inlet, outlet boundary condition
96 CALL multi_inlet_ebcs(itask, i, multi_fvm, nelem,
97 . twf%ielem, twf%iface, twf%fvm_inlet_data,
98 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
99 . twf%surf_id,npf,tf,fsavsurf, timestep, matparam)
100 TYPE IS(t_ebcs_fluxout)
101 CALL multi_inlet_ebcs(itask, i, multi_fvm, nelem,
102 . twf%ielem, twf%iface, twf%fvm_inlet_data,
103 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
104 . twf%surf_id,npf,tf,fsavsurf,timestep, matparam)
105 TYPE IS(t_ebcs_nrf)
106 CALL multi_nrf_ebcs(itask, i, multi_fvm, nelem,
107 . twf%ielem, twf%iface, twf%fvm_inlet_data,
108 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
109 . twf,npf,tf,fsavsurf,timestep, matparam)
110 TYPE IS(t_ebcs_propellant)
111 CALL multi_propellant_ebcs(itask, i, multi_fvm, nelem,
112 . twf%ielem, twf%iface, twf%fvm_inlet_data,
113 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
114 . twf,npf,tf,fsavsurf,timestep,nixs, nixq, nixtg, npropmi, npropm, nsurf, stf, snpc,
115 . numels, numelq, numeltg, numnod, ncycle, nummat ,matparam)
116 CLASS DEFAULT
117 END SELECT
118 ENDDO
119C-----------------------------------------------
120C E n d o f s u b r o u t i n e
121C-----------------------------------------------
122 END SUBROUTINE multi_ebcs
#define my_real
Definition cppsort.cpp:32
subroutine multi_ebcs(itask, multi_fvm, ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value, ebcs_tab, npf, tf, fsavsurf, nsurf, timestep, numels, numelq, numeltg, numnod, ncycle, nummat, matparam)
Definition multi_ebcs.F:41
subroutine multi_nrf_ebcs(itask, ebcs_id, multi_fvm, nelem, elem_list, face_list, fvm_inlet_data, ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value, ebcs, npf, tf, fsavsurf, timestep, matparam)
subroutine multi_inlet_ebcs(itask, ebcs_id, multi_fvm, nelem, elem_list, face_list, fvm_inlet_data, ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value, id_surf, npf, tf, fsavsurf, timestep, matparam)
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
integer, parameter th_surf_num_channel
number of /TH/SURF channels : AREA, VELOCITY, MASSFLOW, P A, MASS
Definition th_surf_mod.F:99