cfs-energy / cfspopcon

POPCONs (Plasma OPerating CONtours)
https://cfspopcon.readthedocs.io/en/latest/
MIT License
22 stars 14 forks source link

B_pol_omp neglects shaping #44

Open tbody-cfs opened 4 months ago

tbody-cfs commented 4 months ago

B_pol_omp = constants.mu_0 plasma_current / (2.0 np.pi * minor_radius)

should be

poloidal_circumference = 2.0 * np.pi * dataset.minor_radius * (1 + 0.55 * (dataset.elongation_psi95 - 1)) * (1 + 0.08 * dataset.triangularity_psi95**2)
B_pol_avg = ureg.mu_0 * dataset.plasma_current / poloidal_circumference

B_pol_omp = 16.0 / 9.0 * dataset.major_radius / (dataset.major_radius + dataset.minor_radius) * B_pol_avg
github-actions[bot] commented 1 month ago

This issue has not seen any activity in the past 60 days. It is now marked as stale and will be closed in 7 days if no further activity is registered.