Equation for average centrepost temperature: This is a consistency equation (TART) author: P B Lloyd, CCFE, Culham Science Centre args : output structure : residual error; constraint value; residual error in physical units; output string; units string Equation for average centrepost temperature: This is a consistency equation (TART) #=# tfcoil #=#=# consistency and hence also optional here. Logic change during pre-factoring: err, symbol, units will be assigned only if present. tcpav : input real : average temp of TF coil inboard leg conductor (C)e tcpav2 : input real : centrepost average temperature (C) (for consistency) itart : input integer : switch for spherical tokamak (ST) models:
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(out) | :: | tmp_cc | |||
real(kind=dp), | intent(out) | :: | tmp_con | |||
real(kind=dp), | intent(out) | :: | tmp_err | |||
character(len=1), | intent(out) | :: | tmp_symbol | |||
character(len=10), | intent(out) | :: | tmp_units |
subroutine constraint_eqn_043(tmp_cc, tmp_con, tmp_err, tmp_symbol, tmp_units)
!! Equation for average centrepost temperature: This is a consistency equation (TART)
!! author: P B Lloyd, CCFE, Culham Science Centre
!! args : output structure : residual error; constraint value;
!! residual error in physical units; output string; units string
!! Equation for average centrepost temperature: This is a consistency equation (TART)
!! #=# tfcoil
!! #=#=# consistency
!! and hence also optional here.
!! Logic change during pre-factoring: err, symbol, units will be assigned only if present.
!! tcpav : input real : average temp of TF coil inboard leg conductor (C)e
!! tcpav2 : input real : centrepost average temperature (C) (for consistency)
!! itart : input integer : switch for spherical tokamak (ST) models:<UL>
!! <LI> = 0 use conventional aspect ratio models;
!! <LI> = 1 use spherical tokamak models</UL>
use tfcoil_variables, only: tcpav, tcpav2
use physics_variables, only: itart
use tfcoil_variables, only: i_tf_sup
implicit none
real(dp), intent(out) :: tmp_cc
real(dp), intent(out) :: tmp_con
real(dp), intent(out) :: tmp_err
character(len=1), intent(out) :: tmp_symbol
character(len=10), intent(out) :: tmp_units
! if the machine isn't a ST then report error
if (itart == 0) call report_error(7)
! For some reasons these lines are needed to make VMCON CONVERGE ....
if ( i_tf_sup == 0 ) then ! Copper case
tcpav = tcpav - 273.15D0
tcpav2 = tcpav2 - 273.15D0
end if
tmp_cc = 1.0D0 - tcpav/tcpav2
tmp_con = tcpav2 * (1.0D0 - tmp_cc)
tmp_err = tcpav2 * tmp_cc
tmp_symbol = '='
tmp_units = 'deg C'
! For some reasons these lines are needed to make VMCON CONVERGE ....
if ( i_tf_sup == 0 ) then ! Copper case
tcpav = tcpav + 273.15D0
tcpav2 = tcpav2 + 273.15D0
end if
end subroutine constraint_eqn_043