[FLASH-USERS] adding a new variable in FLASH4
Papatheodore, Thomas Leslie
tpapathe at utk.edu
Mon Aug 27 17:27:11 EDT 2012
Hello,
I'm trying to add a new variable into FLASH but I have been unsuccessful. The simulation I'm running is a modified version of the Cellular problem (the hydrodynamics are evolved using split PPM and the equation of state is Helmholtz).
The following is my attempt at adding a variable:
In the file source/physics/Hydro/HydroMain/split/PPM/Config I have added the line
VARIABLE mprs EOSMAP: MPRS # maximum pressure
In the file source/physics/Eos/Eos.h I have added the lines
basic EOS_MPRS Maximum pressure
#define EOS_MPRS 10
and changed
quantity EOS_VARS 9 to read quantity EOS_VARS 10
quantity EOS_NUM 22 to read quantity EOS_NUM 23
#define EOS_VARS 9 to read #define EOS_VARS 10
#define EOS_NUM 22 to read #define EOS_NUM 23
In the file source/physics/Eos/EosMain/Eos_map.h I have added the following lines
EOSMAP_MPRS Maximum pressure
#define EOS_MAP MPRS 27
and changed
#define EOSMAP_NUM_ROLES 26 to read #define EOSMAP_NUM_ROLES 27
The error that I receive after running the setup script (./setup problem_name -auto) is the following:
Bad syntax: file physics/Hydro/HydroMain/split/PPM/Config, line 24:
VARIABLE mprs EOSMAP: MPRS # maximum pressure
input doesn't match regular expression "VARIABLE\s+(?P<varname>\w+)(\s+)?(?:(TYPE:\s*(?P<type>GENERIC|PER_VOLUME|PER_MASS)|EOSMAP(INOUT)?:\s*(?P<eosmap>pres|PRES|dens|DENS|eint|EINT|temp|TEMP|gamc|GAMC|game|GAME|ener|ENER|velx|VELX|vely|VELY|velz|VELZ|sumy|SUMY|ye|YE|entr|ENTR|pres1|PRES1|pres2|PRES2|pres3|PRES3|eint1|EINT1|eint2|EINT2|eint3|EINT3|temp1|TEMP1|temp2|TEMP2|temp3|TEMP3|e1|E1|e2|E2|e3|E3|sele|SELE)|EOSMAPIN:\s*(?P<eosmapin>pres|PRES|dens|DENS|eint|EINT|temp|TEMP|gamc|GAMC|game|GAME|ener|ENER|velx|VELX|vely|VELY|velz|VELZ|sumy|SUMY|ye|YE|entr|ENTR|pres1|PRES1|pres2|PRES2|pres3|PRES3|eint1|EINT1|eint2|EINT2|eint3|EINT3|temp1|TEMP1|temp2|TEMP2|temp3|TEMP3|e1|E1|e2|E2|e3|E3|sele|SELE)|EOSMAPOUT:\s*(?P<eosmapout>pres|PRES|dens|DENS|eint|EINT|temp|TEMP|gamc|GAMC|game|GAME|ener|ENER|velx|VELX|vely|VELY|velz|VELZ|sumy|SUMY|ye|YE|entr|ENTR|pres1|PRES1|pres2|PRES2|pres3|PRES3|eint1|EINT1|eint2|EINT2|eint3|EINT3|temp1|TEMP1|temp2|TEMP2|temp3|TEMP3|e1|E1|e2|E2|e3|E3|sele|SELE))\s*)*\s*$"
If anyone is familiar with adding new variables, your help would be greatly appreciated.
Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20120827/23f2ac72/attachment.htm>
More information about the flash-users
mailing list