Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omas_plot: New plot_equilibrium_summary_and_quality_and_core_profiles in support of CAKE visualization #322

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

smithsp
Copy link
Member

@smithsp smithsp commented Nov 12, 2024

I added a new plot to show the cross section, the fitted kinetic profiles, and the pressure constraints, along with the convergence error as a function of time, to highlight the work of kinetic EFITs (like CAKE in IRI).
image

This branch can be tested with:

from omas.omas_machine import machine_to_omas
from omas.machine_mappings.d3d import thomson_scattering_hardware
from omas import ODS
from matplotlib import pyplot as plt
ods = ODS()
shot6 = 201734
thomson_scattering_hardware(ods, shot6)

eshot = 20173402
options = {'EFIT_tree':  'EFIT'}#, "EFIT_run_id": run_id}
machine_to_omas(ods, 'd3d',eshot, "equilibrium.time", 
                               options=options)
machine_to_omas(ods, 'd3d',eshot, "equilibrium.time_slice.*", 
                               options=options)
machine_to_omas(ods, 'd3d',eshot, "wall.*", options=options)

pshot = 201734002
poptions = {'PROFILES_tree':'OMFIT_PROFS'}
machine_to_omas(ods, 'd3d',pshot, "core_profiles.*", options=poptions)
fig = plt.figure(figsize=[18,5])
ods.plot_equilibrium_summary_and_quality_and_core_profiles(fig=fig)
fig.tight_layout(rect=[0,0,1,0.9])
plt.show()

@AreWeDreaming may object to the changes to the core_profiles_global_quantities function.

@smithsp smithsp force-pushed the eq_summary_core_p_plot branch from 4f8974c to 3b2b82f Compare November 12, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant