reduce the upload file size to be 10k, add instruction.html and simpleSim.html

This commit is contained in:
Ryan@fsunuc 2022-12-09 18:31:19 -05:00
parent a674bd3cd5
commit 56c1d0f9f3
4 changed files with 123 additions and 13 deletions

View File

@ -6,7 +6,7 @@ import subprocess
cgitb.enable() cgitb.enable()
cgi.maxlen=1024 * 1024 cgi.maxlen=10 * 1024
form = cgi.FieldStorage() form = cgi.FieldStorage()

View File

@ -54,17 +54,7 @@
<section> <section>
<nav> <nav>
<p> <p> &nbsp; &nbsp; &nbsp; &nbsp; Intructions is <a href="instruction.html" target="uploaded">Here.</a></p>
<ul>
<li>The kenimatic calculation is documented in <a href="https://wiki.anl.gov/wiki_heliosdaq/images/3/3f/Kinematics_of_HELIOS.pdf" >Here</a>.</li>
<li>The DWBA calucation is using Ptolemy. <a href="https://www.phy.anl.gov/theory/research/ptolemy/">Here</a> for more detail. </li>
<li>For kinematic simulation, only the reactionConfig.txt, detectorGeo.txt, and Ex.txt are needed.</li>
<li>For DWBA calculation, only the DWBA file is needed.</li>
<li>When the DWBA file is presented, the kinematic simulation will use the DWBA result and also the excitation energy. i.e. the user provide Ex.txt will not be used.</li>
<li>This page is created and hosted by FSU</li>
</ul>
</p>
<!-- ////////////////////////////////////////// --> <!-- ////////////////////////////////////////// -->
<table> <table>
@ -126,7 +116,7 @@
<td><input type = "file" name = "filename4" /> </td> <td><input type = "file" name = "filename4" /> </td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right" width="200">DWBA.in File ^ </th> <td style="text-align:right" width="200">*.in File ^ </th>
<td><input type = "file" name = "filename4a" /> </td> <td><input type = "file" name = "filename4a" /> </td>
</tr> </tr>
<tr> <tr>
@ -140,6 +130,10 @@
</table> </table>
</form> </form>
<p>
&nbsp; &nbsp; &nbsp; &nbsp; Simplfied Input : <a href="simpleSim.html" target="uploaded">Click Here.</a>
</p>
<p></p><!-- ////////////////////////////////////////// --> <p></p><!-- ////////////////////////////////////////// -->
<form action = "get_nuclear_data.py" method = "POST" target = "NuclearData"> <form action = "get_nuclear_data.py" method = "POST" target = "NuclearData">
<table> <table>

14
instruction.html Normal file
View File

@ -0,0 +1,14 @@
<h1>Intructions:</h1>
<p>
<ul>
<li>The kenimatic calculation is documented in <a href="https://wiki.anl.gov/wiki_heliosdaq/images/3/3f/Kinematics_of_HELIOS.pdf" >Here</a>.</li>
<li>The DWBA calucation is using Ptolemy. <a href="https://www.phy.anl.gov/theory/research/ptolemy/">Here</a> for more detail. </li>
<li>File name can be customized.</li>
<li>For kinematic simulation, only the reactionConfig.txt, detectorGeo.txt, and Ex.txt are needed.</li>
<li>For DWBA calculation, only the DWBA file is needed.</li>
<li>When the DWBA file is presented, the kinematic simulation will use the DWBA result and also the excitation energy. i.e. the user provide Ex.txt will not be used.</li>
<li>User can use a customs in File for DWBA calculation. Once the in File exist, it ignores the DWBA file.</li>
<li>This page is created and hosted by FSU</li>
</ul>
</p>

102
simpleSim.html Normal file
View File

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> I am working on it. </h1>
<form action = "simpleInput.py" method = "POST" target = "uploaded">
<h3>Reaction:</h3>
<table>
<tr>
<td>Beam </td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "beam_A" size="5"/></td>
<td style="text-align:right">Z:</td>
<td><input type = "text" name = "beam_Z" size="5"/></td>
<td style="text-align:right">Ex:</td>
<td><input type = "text" name = "beam_Ex" size="5"/></td>
<td style="text-align:left">MeV</td>
</tr>
<tr>
<td>Target</td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "target_a" size="5"/></td>
<td style="text-align:right">Z:</td>
<td><input type = "text" name = "target_z" size="5"/></td>
</tr>
<tr>
<td>Light recoil</td>
<td style="text-align:right">A:</td>
<td><input type = "text" name = "lRecoil_a" size="5"/></td>
<td style="text-align:right">Z:</td>
<td><input type = "text" name = "lRecoil_z" size="5"/></td>
</tr>
<tr>
<td>Beam Energy</td>
<td></td>
<td><input type = "text" name = "KEA" size="5"/></td>
<td style="text-align:left">MeV/u</td>
</tr>
</table>
<h3>Detector:</h3>
<table>
<tr>
<input type="radio" id="helios" name="SSType" value="HELIOS"/><label for="helios">HELIOS</label>
<br><input type="radio" id="solaris" name="SSType" value="SOLARIS"/><label for="solaris">SOLARIS</label>
</tr>
<tr>
<td>B-field </td>
<td><input type = "text" name = "Bfield" size="5"/></td>
<td style="text-align:left">T</td>
</tr>
<tr>
<td>Array Pos.</td>
<td><input type = "text" name = "posArray" size="5"/></td>
<td style="text-align:left">mm (negative for upstream)</td>
</tr>
<tr>
<td>Recoil Pos.</td>
<td><input type = "text" name = "posRecoil" size="5"/></td>
<td style="text-align:left">mm (negative for upstream)</td>
</tr>
</table>
<h3>DWBA and Ex List:</h3>
<p> How to allow as many as Ex??? may be hard coded for 5 max?</p>
<p> May be just on/off, and selection of GOP? the L transfer should put in Ex List? </p>
<table>
<tr>
<td>Incomming</td>
<td>Outgoing</td>
</tr>
<tr>
<td>
<input type="radio" id="op1" name="GOP1" value="An"/><label for="op1">An.</label>
<br><input type="radio" id="op2" name="GOP1" value="Kai"/><label for="p[2">Kai</label>
</td>
<td>
<input type="radio" id="op1" name="GOP2" value="An"/><label for="op1">An.</label>
<br><input type="radio" id="op2" name="GOP2" value="Kai"/><label for="p[2">Kai</label>
</td>
</tr>
</table>
<h3> Plot config:</h3>
<p> click boxes...</p>
<input type = "submit" value = "Submit and Run Simulation" />
</form>
</body>
</html>