Module containing routines to perform a parameter scan author: P J Knight, CCFE, Culham Science Centre None This module contains routines to perform a parameter scan over a range of values of a particular scanning variable. !
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | ipnscns | = | 1000 | Maximum number of scan points |
integer, | public, | parameter | :: | ipnscnv | = | 81 | Number of available scan variables |
integer, | public, | parameter | :: | noutvars | = | 84 | |
integer, | public, | parameter | :: | width | = | 110 | |
integer, | public | :: | scan_dim | 1-D or 2-D scan switch (1=1D, 2=2D) |
|||
integer, | public | :: | isweep | Number of scan points to calculate |
|||
integer, | public | :: | isweep_2 | Number of 2D scan points to calculate |
|||
integer, | public | :: | nsweep | Switch denoting quantity to scan:
inlet_temp_liq' : Inlet temperature of blanket liquid metal coolant/breeder (K)
<LI> 69 outlet_temp_liq' : Outlet temperature of blanket liquid metal coolant/breeder (K)
blpressure_liq' : Blanket liquid metal breeder/coolant pressure (Pa)
<LI> 71 n_liq_recirc' : Selected number of liquid metal breeder recirculations per day
bz_channel_conduct_liq' : Conductance of liquid metal breeder duct walls (A V-1 m-1)
<LI> 73 pnuc_fw_ratio_dcll' : Ratio of FW nuclear power as fraction of total (FW+BB)
|
|||
integer, | public | :: | nsweep_2 | nsweep_2 /3/ : switch denoting quantity to scan for 2D scan: |
|||
real(kind=dp), | public, | dimension(ipnscns) | :: | sweep | sweep(ipnscns) /../: actual values to use in scan |
||
real(kind=dp), | public, | dimension(ipnscns) | :: | sweep_2 | sweep_2(ipnscns) /../: actual values to use in 2D scan |
||
logical, | public | :: | first_call_1d | ||||
logical, | public | :: | first_call_2d |
Initialise module variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iscan | Scan point number |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iscan | |||
integer, | intent(in) | :: | ifail | |||
integer, | intent(in) | :: | noutvars_ | |||
integer, | intent(in) | :: | ipnscns_ | |||
real(kind=dp), | intent(out), | dimension(noutvars_,ipnscns_) | :: | outvar |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | iscan | |||
real(kind=dp), | intent(in), | dimension(:,:) | :: | outvar |
Routine to call 2-D scan author: J Morris, UKAEA, Culham Science Centre
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iscan | |||
integer, | intent(in) | :: | iscan_1 | |||
integer, | intent(in) | :: | iscan_2 | |||
integer, | intent(out) | :: | iscan_R |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ifail | |||
integer, | intent(in) | :: | iscan_1 | |||
integer, | intent(in) | :: | iscan_R | |||
integer, | intent(in) | :: | iscan | |||
integer, | intent(in) | :: | noutvars_ | |||
integer, | intent(in) | :: | ipnscns_ | |||
real(kind=dp), | intent(out), | dimension(noutvars_,ipnscns_) | :: | outvar | ||
real(kind=dp), | intent(out), | dimension(ipnscns_) | :: | sweep_1_vals | ||
real(kind=dp), | intent(out), | dimension(ipnscns_) | :: | sweep_2_vals |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | iscan | |||
real(kind=dp), | intent(in), | dimension(:,:) | :: | outvar | ||
real(kind=dp), | intent(in), | dimension(:) | :: | sweep_1_vals | ||
real(kind=dp), | intent(in), | dimension(:) | :: | sweep_2_vals |
Routine to select first scan case author: J Morris, UKAEA, Culham Science Centre
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nwp | |||
real(kind=dp), | intent(in), | dimension(:) | :: | swp | ||
integer, | intent(in) | :: | iscn | |||
character(len=25), | intent(out) | :: | vlab | |||
character(len=25), | intent(out) | :: | xlab |
Called after calling the optimising equation solver from Python. author: P J Knight, CCFE, Culham Science Centre ifail : input integer : error flag
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ifail |