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

Go to the source code of this file.

Functions/Subroutines

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, output, pred)

Function/Subroutine Documentation

◆ multi_ebcs()

subroutine multi_ebcs ( integer, intent(in) itask,
type(multi_fvm_struct), intent(inout) multi_fvm,
integer, dimension(nixs, *), intent(in) ixs,
integer, dimension(nixq, *), intent(in) ixq,
integer, dimension(nixtg, *), intent(in) ixtg,
dimension(3, *), intent(in) xgrid,
dimension(3, *), intent(in) wgrid,
integer, dimension(npropmi, *), intent(in) ipm,
dimension(npropm, *), intent(in) pm,
dimension(*), intent(in) func_value,
type(t_ebcs_tab), intent(in), target ebcs_tab,
integer, dimension(snpc), intent(in) npf,
dimension(stf), intent(in) tf,
dimension(th_surf_num_channel,nsurf), intent(inout) fsavsurf,
integer, intent(in) nsurf,
intent(in) timestep,
integer, intent(in) numels,
integer, intent(in) numelq,
integer, intent(in) numeltg,
integer, intent(in) numnod,
integer, intent(in) ncycle,
integer, intent(in) nummat,
type(matparam_struct_), dimension(nummat), intent(in) matparam,
type(output_), intent(inout) output,
logical, intent(in) pred )
Parameters
[in]nummatarray size
[in,out]outputoutput structure
[in]predpredictor step if true, corrector step if false

Definition at line 40 of file multi_ebcs.F.

43C-----------------------------------------------
44C M o d u l e s
45C-----------------------------------------------
46 USE multi_fvm_mod
47 USE ebcs_mod
49 USE matparam_def_mod , ONLY : matparam_struct_
50 USE output_mod , ONLY : output_
52 use element_mod , only : nixs,nixq,nixtg
53 !USE multi_propellant_ebcs_mod , ONLY : MULTI_PROPELLANT_EBCS
54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57#include "implicit_f.inc"
58C-----------------------------------------------
59C C o m m o n B l o c k s
60C-----------------------------------------------
61! NEBCS
62! NPEBC, NIXS
63#include "param_c.inc"
64! LISURF1
65! SNPC,STF
66#include "tabsiz_c.inc"
67C-----------------------------------------------
68C D u m m y A r g u m e n t s
69C-----------------------------------------------
70 INTEGER,INTENT(IN) :: NUMMAT !< array size
71 TYPE(MATPARAM_STRUCT_), DIMENSION(NUMMAT), INTENT(IN) :: MATPARAM !material data structure
72 INTEGER,INTENT(IN) :: NCYCLE
73 INTEGER,INTENT(IN) :: NSURF
74 INTEGER,INTENT(IN) :: NUMELS, NUMELQ, NUMELTG, NUMNOD
75 my_real,INTENT(INOUT) :: fsavsurf(th_surf_num_channel,nsurf)
76 TYPE(MULTI_FVM_STRUCT), INTENT(INOUT) :: MULTI_FVM
77 INTEGER, INTENT(IN) :: ITASK
78 INTEGER, INTENT(IN) :: IXS(NIXS, *), IXQ(NIXQ, *), IXTG(NIXTG, *)
79 my_real, INTENT(IN) :: xgrid(3, *), wgrid(3, *)
80 INTEGER, INTENT(IN) :: IPM(NPROPMI, *)
81 my_real, INTENT(IN) :: pm(npropm, *), func_value(*)
82 TYPE(t_ebcs_tab), TARGET, INTENT(IN) :: EBCS_TAB
83 INTEGER, INTENT(IN) :: NPF(SNPC)
84 my_real, INTENT(IN) :: tf(stf), timestep
85 TYPE(OUTPUT_), INTENT(INOUT) :: OUTPUT !< output structure
86 LOGICAL, INTENT(IN) :: PRED !< predictor step if true, corrector step if false
87C-----------------------------------------------
88C L o c a l V a r i a b l e s
89C-----------------------------------------------
90 INTEGER :: I
91 INTEGER :: TYPE, NELEM
92 class(t_ebcs), POINTER :: ebcs
93C-----------------------------------------------
94C B e g i n n i n g o f s u b r o u t i n e
95C-----------------------------------------------
96 DO i = 1, ebcs_tab%nebcs_fvm
97 ebcs => ebcs_tab%tab(i)%poly
98 TYPE = ebcs%type
99 nelem = ebcs%nb_elem
100 SELECT TYPE (twf => ebcs)
101 TYPE IS (t_ebcs_inlet)
102C Inlet, outlet boundary condition
103 CALL multi_inlet_ebcs(itask, i, multi_fvm, nelem,
104 . twf%ielem, twf%iface, twf%fvm_inlet_data,
105 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
106 . twf%surf_id,npf,tf,fsavsurf, timestep, matparam, output, pred)
107 TYPE IS(t_ebcs_fluxout)
108 CALL multi_inlet_ebcs(itask, i, multi_fvm, nelem,
109 . twf%ielem, twf%iface, twf%fvm_inlet_data,
110 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
111 . twf%surf_id,npf,tf,fsavsurf,timestep, matparam, output, pred)
112 TYPE IS(t_ebcs_nrf)
113 CALL multi_nrf_ebcs(itask, i, multi_fvm, nelem,
114 . twf%ielem, twf%iface, twf%fvm_inlet_data,
115 . ixs, ixq, ixtg, xgrid, wgrid, ipm, pm, func_value,
116 . twf,npf,tf,fsavsurf,timestep, matparam, output, pred)
117 TYPE IS(t_ebcs_propellant)
118! work in progress
119 write(6,*) 'MULTI_EBCS: Propellant EBCS not yet implemented'
120 write(6,*) "NUMELS=",numels,"NUMELQ=",numelq,"NUMELTG=",numeltg
121 write(6,*) "NUMNOD=",numnod,"NCYCLE=",ncycle,"NUMMAT=",nummat
122 CALL arret(2)
123! CALL MULTI_PROPELLANT_EBCS(ITASK, I, MULTI_FVM, NELEM,
124! . twf%ielem, twf%iface, twf%fvm_inlet_data,
125! . IXS, IXQ, IXTG, XGRID, WGRID, IPM, PM, FUNC_VALUE,
126! . twf,NPF,TF,FSAVSURF,TIMESTEP,NIXS, NIXQ, NIXTG, NPROPMI, NPROPM, NSURF, STF, SNPC,
127! . NUMELS, NUMELQ, NUMELTG, NUMNOD, NCYCLE, NUMMAT ,MATPARAM)
128 CLASS DEFAULT
129 END SELECT
130 ENDDO
131C-----------------------------------------------
132C E n d o f s u b r o u t i n e
133C-----------------------------------------------
#define my_real
Definition cppsort.cpp:32
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, output, pred)
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, output, pred)
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:61
integer, parameter th_surf_num_channel
number of /TH/SURF channels : AREA, VELOCITY, MASSFLOW, P A, MASS
subroutine arret(nn)
Definition arret.F:86