[FLASH-USERS] How to add new output variables

Hansen, Eddie ehansen at pas.rochester.edu
Wed Apr 2 09:42:18 EDT 2025


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

For list info, including unsubscribe:
https://flash.rochester.edu/mailman/listinfo/flash-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20250402/5a116a6f/attachment.htm>


More information about the flash-users mailing list