Skip to content
Snippets Groups Projects
Select Git revision
  • 3f559fd17289f9753b03837f1844d10fc3460722
  • master default
  • dune-tkr-article
  • p/lh188/test-assembler-bug
  • mention-makefunction
  • temp/test-CI-with-subgrid-enabled
  • releases/2.5-1
  • releases/2.4-2
  • improve_grid
  • experimental/test-core-ci
  • feature/dune-functions-assemblers
  • feature/DG-Transferoperator-Assembler
  • debug/functionspacebasistest
  • releases/2.4-1
  • feature/dune-functions-assembler-with-skeleton
  • feature/elastictensor-interface
  • releases/2.3-2
  • maxka/conformingbasis
  • releases/2.3-1
  • subgridassembler-rework
  • releases/2.2-1
  • dune-tkr-article-patched
  • dune-tkr-article-base
  • subversion->git
24 results

massassembler.hh

Blame
  • Forked from agnumpde / dune-fufem
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.html 2.02 KiB
    <!-- HTML and Pyodide related sections are borrowed from Hendrik Weimer -->
    
    <!doctype html>
    <html>
      <head>
        <meta charset="utf-8">
        <title>Three-body simulator</title>
        <link rel="stylesheet" href="site.css">
      </head>
      <body>
        <style>
           body { font-size: 100%; font-family: monospace;}
           .mtable table td tr { display: block; border-collapse: collapse;}
           .mtable td { vertical-align: top; }
           input { width: 180px; font-size: 100%; }
           .error { color: red; font-size: 75%; }
           .potential { width: 250px; }
           .controls td { padding-left: 10px; padding-right: 10px;}
           table.controls { border-radius: 8px; background: #c2c2c2;}
           p.status { font-size: 100%; }
           p.observables { font-size: 100%;}
        </style>
        <table class="mtable" style="width: 100%; max-width: 1024px;">
          <tbody>
    	<tr>
    	  <td id="parent" style="width: 60%;">
    	    <p id="status" class="status">Loading Pyodide...</p>  
    	    <canvas id="canvas" style="width: 100%;"></canvas>
    	    <table class="controls">
    	      <tr>
    		<td>x<sub>0</sub></td>
    		<td>x<sub>1</sub></td>
    		<td>x<sub>2</sub></td>
    	      </tr>
    	      <tr>
    		<td><input id="x0" value="-1.5" ></td>
    		<td><input id="x1" value="0" ></td>
    		<td><input id="x2" value="2.0" ></td>
    	      </tr>
    	      <tr>
    		<td><p class="error" id="errorx0"></p></td>
    		<td><p class="error" id="errorx1"></p></td>
    		<td><p class="error" id="errorx2"></p></td>
                  </tr>
    	    </table>
    	  </td>
    	  <td style="width: 100%;">
    	    <table>
    	      <tr>
    		<td>
                      <p class="observables" id="obs">
    		</td>
    	      </tr>
    	    </table>
    	  </td>
    	</tr>
          </tbody>
        </table>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
          <script type="text/javascript">
          async function main() {
            let pyodide = await loadPyodide();
          await pyodide.loadPackage(["numpy", "scipy"]);
          pyodide.runPython(await (await fetch("threebody.py")).text());
          }
          main();
        </script>
      </body>
    </html>