Limit the stress of the vacuum vessel that occurs when the TF coil quenches. author: Timothy Nunn, UKAEA args : output structure : residual error; constraint value; residual error in physical units; output string; units string Logic change during pre-factoring: err, symbol, units will be assigned only if present. fmaxvvstress : input real : f-value for constraint on maximum VV stress max_vv_stress : input real : Maximum permitted stress of the VV (Pa) vv_stress_quench : input real : Stress of the VV (Pa)
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_065(tmp_cc, tmp_con, tmp_err, tmp_symbol, tmp_units)
!! Limit the stress of the vacuum vessel that occurs when the TF coil quenches.
!! author: Timothy Nunn, UKAEA
!! args : output structure : residual error; constraint value;
!! residual error in physical units; output string; units string
!! Logic change during pre-factoring: err, symbol, units will be assigned only if present.
!! fmaxvvstress : input real : f-value for constraint on maximum VV stress
!! max_vv_stress : input real : Maximum permitted stress of the VV (Pa)
!! vv_stress_quench : input real : Stress of the VV (Pa)
use constraint_variables, only: fmaxvvstress
use tfcoil_variables, only: max_vv_stress
use sctfcoil_module, only: vv_stress_quench
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
tmp_cc = 1.0d0 - fmaxvvstress * max_vv_stress / vv_stress_quench
tmp_con = max_vv_stress
tmp_err = max_vv_stress * tmp_cc
tmp_symbol = '<'
tmp_units = 'Pa'
end subroutine constraint_eqn_065