Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Vloop boundary condition for the psi equation
Vloop (= dpsi_edge/dt) can be a useful BC for scenarios where the voltage swing of the central solenoid is directly controlled (e.g. in a fully non-inductive scenario, Vloop = 0). Summary of changes: - Added new BC for the psi equation, set by profile_conditions.use_vloop_lcfs_boundary_condition and profile_conditions.vloop_lcfs. - Supports the theta method - Can be combined with any of the psi initialisation methods: - Prescribed psi + Ip_tot rescaling - Psi from geometry file - Psi from geometry file + Ip_tot rescaling - Psi from nu formula + Ip_tot rescaling - Added vloop_lcfs to state.CoreProfiles, which is a direct copy from psidot.face_value()[-1]. - The Vloop BC required minor modifications to compute_boundary_conditions: - Renamed to compute_boundary_conditions_for_t_plus_dt - Pass in dynamic_runtime_params_slice for t and t_plus_dt - Pass in core_profiles_t - Added psi_right_bc and vloop_lcfs to output.
- Loading branch information