[FLASH-USERS] How to add new output variables

Mattia Cipriani mattia.cipriani at enea.it
Thu Apr 3 05:30:43 EDT 2025


Dear Eddie,

thank you very much, I will follow your advices.
Are the built-in output variables documented somewhere in the manuals?
It would be good to have a list for future reference.

All the best,
Mattia

---------------------------------------------
  Dr Mattia Cipriani, PhD
    ENEA
    NUC-PLAS-FIPI
    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 2 apr 2025, alle ore 15:42, Hansen, Eddie <ehansen at pas.rochester.edu> ha scritto:

Hi Mattia,

FLASH has the variables ‘ye’ and ‘sumy’ which you could use to get average ionization state zbar = ye/sumy. Just add ‘ye’ and ‘sumy’ to your list of plot_var’s in your par file if you want these in the plt files.

In general, you can add your own variable by adding a line like this in your simulation’s Config file:
VARIABLE ZBAR

Then, somewhere in the code (usually Simulation_adjustEvolution), you would define what gets saved to ZBAR_VAR. This is typically done within a set of do loops, and then:
solnData(ZBAR_VAR, I, j, k) = some_value

--
Eddie Hansen
Applications Group Leader
Flash Center for Computational Science


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of Mattia Cipriani <mattia.cipriani at enea.it>
Date: Tuesday, April 1, 2025 at 4:58 PM
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: [FLASH-USERS] How to add new output variables
Dear all,

I would like to add a new variable for the output of my simulations, similar to “dens”, “pres”, “tele” etc.
How can I tell FLASH to output another variable, for example the ionization state at each point of the numerical grid?
I looked at the manual and on the website, but I could not find any answer to this, but I may have missed it.

Thank you for your help.

Best regards,
Mattia



________________________________

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

La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate (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 mittente 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) only.

Dissemination, copying, printing or use by anybody else is unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequent 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<mailto: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 elettronica da cui è stata inviata è da qualificarsi quale strumento aziendale.

La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate (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 mittente 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) only.

Dissemination, copying, printing or use by anybody else is unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequent 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/20250403/4c75a613/attachment-0001.htm>


More information about the flash-users mailing list