[FLASH-USERS] How to extract data from HDF5 output and plot linear profiles

Mattia Cipriani mattia.cipriani at enea.it
Fri Feb 2 12:39:31 EST 2024


Dear Adam,

the python script worked great!
It is what I need.

All the best,
Mattia

---------------------------------------------
  Dr Mattia Cipriani, PhD
    ENEA
    FSN-PLAS-PAX
    45, Via E. Fermi
    00044 Frascati (Rome)
    Italy
    Office:  Building 12
                Room 12223
    Tel:       +39 069400 5145
    Mobile: +39 328 5552077
    Skype:  matcipriani
    Researchgate<https://www.researchgate.net/profile/Mattia-Cipriani-2>
    LinkedIn<https://www.linkedin.com/in/mattia-cipriani-0707bb2a/>
    ResearcherID AAG-9269-2021<https://publons.com/researcher/AAG-9269-2021/>
    ORCID 0000-0002-2500-605X<https://orcid.org/0000-0002-2500-605X>
---------------------------------------------




Il giorno 29 gen 2024, alle ore 16:55, Reyes, Adam <adam.reyes at rochester.edu> ha scritto:

Hi Mattia,

For an all python solution you should be able to adapt this snippet<https://flash.rochester.edu/pipermail/flash-users/2023-October/004159.html> from Lee Ellison using yt to do what you want. Alternatively you can save a 1D lineout from visit as “CURVE2D” and it will be saved as text columns.
*********************************************
Adam Reyes

<FLASH.jpg>
Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
 (he / him / his)
<FLASH-pride-sml.png>

*********************************************



On Jan 29, 2024, at 4:36 PM, Mattia Cipriani <mattia.cipriani at enea.it> wrote:

HI all,

I would like to extract the data from the HDF5 file outputs, in order to be able to plot them with matplotlib in python.
For example, I would like to be able to get linear profiles for physical quantities (density, temperature...) along specific directions and lines from 2D simulation data in cylindrical geometry.
I tried to use yt for this purpose, but it seems that plotting linear profiles from 2D cylindrical data is not implemented yet.

Any advices?

Best regards,
Mattia








________________________________


Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate e la casella di posta elettron ica da cui è stata inviata è da qualificarsi quale strumento aziendale.

La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente viet ate (art. 616 c.p, D.Lgs. n. 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679).

Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mit tente e di provvedere alla sua distruzione. Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) on ly.

Dissemination, copying, printing or use by anybody else is unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequen t amendments and GDPR UE 2016/679).

If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e -mail. Thanks.

________________________________
_______________________________________________
flash-users mailing list
flash-users at flash.rochester.edu

For list info, including unsubscribe:
https://flash.rochester.edu/mailman/listinfo/flash-users




________________________________

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate e la casella di posta elettron ica da cui è stata inviata è da qualificarsi quale strumento aziendale.

La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente viet ate (art. 616 c.p, D.Lgs. n. 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679).

Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mit tente e di provvedere alla sua distruzione. Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) on ly.

Dissemination, copying, printing or use by anybody else is unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequen t amendments and GDPR UE 2016/679).

If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e -mail. Thanks.

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240202/22dff86d/attachment.htm>


More information about the flash-users mailing list