<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
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).<br>
<br>
The following is my attempt at adding a variable:<br>
<br>
<br>
<br>
In the file <i>source/physics/Hydro/HydroMain/split/PPM/Config</i> I have added the line<br>
<br>
<b>VARIABLE mprs EOSMAP: MPRS # maximum pressure<br>
</b><br>
<br>
<br>
In the file <i>source/physics/Eos/Eos.h</i> I have added the lines <br>
<br>
<b>basic EOS_MPRS Maximum pressure</b><br>
<br>
<b>#define EOS_MPRS 10</b><br>
<br>
and changed <br>
<br>
<b>quantity EOS_VARS 9</b> to read <b>quantity EOS_VARS 10</b><br>
<br>
<b>quantity EOS_NUM 22</b> to read <b>quantity EOS_NUM 23</b><br>
<br>
<b>#define EOS_VARS 9</b> to read <b>#define EOS_VARS 10<br>
</b><br>
<b>#define EOS_NUM 22</b> to read <b>#define EOS_NUM 23<br>
<br>
</b><br>
<br>
In the file <i>source/physics/Eos/EosMain/Eos_map.h </i>I have added the following lines<br>
<br>
<b>EOSMAP_MPRS </b>Maximum pressure<br>
<br>
<b>#define EOS_MAP MPRS 27</b><br>
<br>
and changed <br>
<br>
<b>#define EOSMAP_NUM_ROLES 26 </b>to read <b>#define EOSMAP_NUM_ROLES 27</b><br>
<br>
<br>
<br>
The error that I receive after running the setup script (./setup problem_name -auto) is the following:<br>
<br>
<b>Bad syntax: file physics/Hydro/HydroMain/split/PPM/Config, line 24:<br>
VARIABLE mprs EOSMAP: MPRS # maximum pressure<br>
<br>
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*$"</b><br>
<br>
If anyone is familiar with adding new variables, your help would be greatly appreciated.<br>
<br>
Thanks,<br>
<br>
Tom<br>
</div>
</body>
</html>