Recently I used process for modeling a machine using NBI for heating.
But NBI path shows very strange result after singlerun, so I checked MFILE.DAT.
I found that radius_beam_tangency and radius_beam_tangency_max have initial values(0.0), not calculated values in build.py.
I checked calculate_beam_port_size() function, found that output radius_beam_tangency and radius_beam_tangency_max were not assigned to original variables.
So I added
current_drive_variables.radius_beam_tangency = radius_beam_tangency
current_drive_variables.radius_beam_tangency_max = radius_beam_tangency_max
between if statement and return and it worked well.
I'm not good at python, so can someone fix this issue more clearly?