Skip to content

Commit

Permalink
Default to vloop to 0.0 for first timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-brown committed Feb 13, 2025
1 parent 23f4215 commit 60d9328
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torax/core_profile_setters.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,16 @@ def _init_psi_psidot_vloop_and_current(
geo=geo,
)
psidot_cell_var = dataclasses.replace(core_profiles.psidot, value=psidot)
# TODO: For Ip_tot BC, introduce a feature for calculating vloop_lcfs in
# final post-processing and test to check vloop equivalence between vloop BC
# and Ip_tot BC
core_profiles = dataclasses.replace(
core_profiles,
psidot=psidot_cell_var,
vloop_lcfs=(
dynamic_runtime_params_slice.profile_conditions.vloop_lcfs
if use_vloop_bc
else None
else 0.0
),
)

Expand Down

0 comments on commit 60d9328

Please sign in to comment.