some improvement
This commit is contained in:
parent
116e49485a
commit
333af94f51
|
@ -61,8 +61,6 @@
|
||||||
|
|
||||||
<h1>HELIOSmatics</h1>
|
<h1>HELIOSmatics</h1>
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1 id='reactionName' style="color: #1363A7"> 24F(d,p)25F@10MeV/u</h1>
|
<h1 id='reactionName' style="color: #1363A7"> 24F(d,p)25F@10MeV/u</h1>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
@ -164,7 +162,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
<td><input type="text" id='Ex2' name="Ex" size="8" value="0" enterkeyhint="done"/></td>
|
<td><input type="text" id='Ex2' name="Ex" size="8" value="1" enterkeyhint="done"/></td>
|
||||||
<td><input type="text" id='theta2' name="thetaCM" size="8" value="40" enterkeyhint="done"/></td>
|
<td><input type="text" id='theta2' name="thetaCM" size="8" value="40" enterkeyhint="done"/></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@ -374,8 +372,12 @@ function addRow() {
|
||||||
let table = document.getElementById("ExTable");
|
let table = document.getElementById("ExTable");
|
||||||
let nRow = table.rows.length;
|
let nRow = table.rows.length;
|
||||||
let row = table.insertRow(nRow-1);
|
let row = table.insertRow(nRow-1);
|
||||||
row.innerHTML = '<td><input type="text" name="Ex" size="8" value=\"' + (nRow-2) + '\" id=\"Ex' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
|
|
||||||
<td><input type="text" name="thetaCM" size="8" value=\"10\" id=\"theta' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
|
let energy = Math.random()*Math.min(heavy[4], heavy[5], heavy[6]);
|
||||||
|
let angle = Math.floor(Math.random() * 30) + 10;
|
||||||
|
|
||||||
|
row.innerHTML = '<td><input type="text" name="Ex" size="8" value=\"' + energy.toFixed(3) + '\" id=\"Ex' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
|
||||||
|
<td><input type="text" name="thetaCM" size="8" value=\"' + angle + '\" id=\"theta' + (nRow-1) + '\" enterkeyhint=\"done\"/></td> \
|
||||||
<td></td> \
|
<td></td> \
|
||||||
<td></td> \
|
<td></td> \
|
||||||
<td></td> \
|
<td></td> \
|
||||||
|
@ -727,10 +729,10 @@ function PlotEZ(){
|
||||||
yRange = [0, haha2];
|
yRange = [0, haha2];
|
||||||
|
|
||||||
let layout = {
|
let layout = {
|
||||||
xaxis: {range: xRange, title: "Z [mm]", mirror : "allticks", linewidth : "1"},
|
xaxis: {range: xRange, title: { text : "Z [mm]", standoff : 1}, mirror : "allticks", linewidth : "1"},
|
||||||
yaxis: {range: yRange, title: "Energy [MeV]" , mirror : "allticks", linewidth : "1"},
|
yaxis: {range: yRange, title: "Energy [MeV]" , mirror : "allticks", linewidth : "1"},
|
||||||
title: reactionName,
|
title: reactionName,
|
||||||
margin: { l: 40, r: 40, b : 40, t : 40},
|
margin: { l: 40, r: 40, b : 60, t : 40},
|
||||||
legend: {yanchor:"top", xanchor:"left", x:"0.01",y:"0.99" }
|
legend: {yanchor:"top", xanchor:"left", x:"0.01",y:"0.99" }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -865,11 +867,11 @@ function PlotRZ(){
|
||||||
let yyy = [0, parseInt(document.getElementById('rRange').value)];
|
let yyy = [0, parseInt(document.getElementById('rRange').value)];
|
||||||
|
|
||||||
let layout = {
|
let layout = {
|
||||||
xaxis: {range: xxx, title: "Z [mm]", mirror : "allticks", linewidth : "1"},
|
xaxis: {range: xxx, title: { text : "Z [mm]", standoff : 1}, mirror : "allticks", linewidth : "1"},
|
||||||
yaxis: {range: yyy, title: "R [mm]" , mirror : "allticks", linewidth : "1"},
|
yaxis: {range: yyy, title: "R [mm]" , mirror : "allticks", linewidth : "1"},
|
||||||
title: reactionName,
|
title: reactionName,
|
||||||
showlegend : true,
|
showlegend : true,
|
||||||
margin: { l: 40, r: 40, b : 40, t : 40},
|
margin: { l: 40, r: 40, b : 60, t : 40},
|
||||||
legend: { yanchor:"top", xanchor:"left", x:"0.01",y:"0.99"}
|
legend: { yanchor:"top", xanchor:"left", x:"0.01",y:"0.99"}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>DWBA and Monte Carlo Simulation</h1>
|
||||||
|
|
||||||
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user