Channel Flow (CHF) Module.
|
integer(i4b), parameter, public | chf_nbasepkg = 7 |
| CHF base package array descriptors. More...
|
|
character(len=lenpackagetype), dimension(chf_nbasepkg), public | chf_basepkg = ['DISV1D6', 'DFW6 ', 'CXS6 ', 'OC6 ', 'IC6 ', 'OBS6 ', 'STO6 '] |
| candidates for input and these will be loaded in the order specified. More...
|
|
integer(i4b), parameter, public | chf_nmultipkg = 50 |
| CHF multi package array descriptors. More...
|
|
character(len=lenpackagetype), dimension(chf_nmultipkg), public | chf_multipkg |
|
integer(i4b), parameter | niunit_chf = CHF_NBASEPKG + CHF_NMULTIPKG |
|
◆ chf_cr()
subroutine, public chfmodule::chf_cr |
( |
character(len=*), intent(in) |
filename, |
|
|
integer(i4b), intent(in) |
id, |
|
|
character(len=*), intent(in) |
modelname |
|
) |
| |
- Parameters
-
[in] | filename | input file |
[in] | id | consecutive model number listed in mfsim.nam |
[in] | modelname | name of the model |
Definition at line 54 of file chf.f90.
57 character(len=*),
intent(in) :: filename
58 integer(I4B),
intent(in) :: id
59 character(len=*),
intent(in) :: modelname
61 class(ChfModelType),
pointer :: this
62 class(BaseModelType),
pointer :: model
67 call addbasemodeltolist(basemodellist, model)
70 call this%initialize(
'CHF', filename, id, modelname)
73 call this%set_namfile_options()
76 call budget_cr(this%budget, this%name)
79 call this%create_packages()
◆ log_namfile_options()
Definition at line 130 of file chf.f90.
132 class(ChfModelType) :: this
133 type(ChfNamParamFoundType),
intent(in) :: found
135 write (this%iout,
'(1x,a)')
'BEGIN NAMEFILE OPTIONS'
137 if (found%print_input)
then
138 write (this%iout,
'(4x,a)')
'STRESS PACKAGE INPUT WILL BE PRINTED '// &
139 'FOR ALL MODEL STRESS PACKAGES'
142 if (found%print_flows)
then
143 write (this%iout,
'(4x,a)')
'PACKAGE FLOWS WILL BE PRINTED '// &
144 'FOR ALL MODEL PACKAGES'
147 if (found%save_flows)
then
148 write (this%iout,
'(4x,a)') &
149 'FLOWS WILL BE SAVED TO BUDGET FILE SPECIFIED IN OUTPUT CONTROL'
152 write (this%iout,
'(1x,a)')
'END NAMEFILE OPTIONS'
◆ set_namfile_options()
subroutine chfmodule::set_namfile_options |
( |
class(chfmodeltype) |
this | ) |
|
|
private |
Set pointers to IDM namefile options, then create the list file and log options.
Definition at line 88 of file chf.f90.
93 class(ChfModelType) :: this
94 type(ChfNamParamFoundType) :: found
95 character(len=LENMEMPATH) :: input_mempath
96 character(len=LINELENGTH) :: lst_fname
102 call mem_set_value(lst_fname,
'LIST', input_mempath, found%list)
103 call mem_set_value(this%inewton,
'NEWTON', input_mempath, found%newton)
104 call mem_set_value(this%inewtonur,
'UNDER_RELAXATION', input_mempath, &
105 found%under_relaxation)
106 call mem_set_value(this%iprpak,
'PRINT_INPUT', input_mempath, &
108 call mem_set_value(this%iprflow,
'PRINT_FLOWS', input_mempath, &
110 call mem_set_value(this%ipakcb,
'SAVE_FLOWS', input_mempath, found%save_flows)
113 call this%create_lstfile(lst_fname, this%filename, found%list, &
114 'CHANNEL FLOW MODEL (CHF)')
117 if (found%save_flows)
then
122 if (this%iout > 0)
then
123 call this%log_namfile_options(found)
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object
This module contains simulation variables.
character(len=linelength) idm_context
◆ chf_basepkg
character(len=lenpackagetype), dimension(chf_nbasepkg), public chfmodule::chf_basepkg = ['DISV1D6', 'DFW6 ', 'CXS6 ', 'OC6 ', 'IC6 ', 'OBS6 ', 'STO6 '] |
Definition at line 33 of file chf.f90.
33 character(len=LENPACKAGETYPE),
dimension(CHF_NBASEPKG) :: &
34 CHF_BASEPKG = [
'DISV1D6',
'DFW6 ',
'CXS6 ', &
35 'OC6 ',
'IC6 ',
'OBS6 ', &
◆ chf_multipkg
character(len=lenpackagetype), dimension(chf_nmultipkg), public chfmodule::chf_multipkg |
Definition at line 43 of file chf.f90.
43 character(len=LENPACKAGETYPE),
dimension(CHF_NMULTIPKG) :: CHF_MULTIPKG
◆ chf_nbasepkg
integer(i4b), parameter, public chfmodule::chf_nbasepkg = 7 |
CHF model base package types. Only listed packages are candidates
Definition at line 32 of file chf.f90.
32 integer(I4B),
parameter :: CHF_NBASEPKG = 7
◆ chf_nmultipkg
integer(i4b), parameter, public chfmodule::chf_nmultipkg = 50 |
CHF model multi-instance package types. Only listed packages are
Definition at line 42 of file chf.f90.
42 integer(I4B),
parameter :: CHF_NMULTIPKG = 50
◆ niunit_chf
integer(i4b), parameter chfmodule::niunit_chf = CHF_NBASEPKG + CHF_NMULTIPKG |
|
private |
Definition at line 48 of file chf.f90.
48 integer(I4B),
parameter :: NIUNIT_CHF = chf_nbasepkg + chf_nmultipkg