Skip to content

Commit 8ee4f24

Browse files
committed
starting working on a heat toolbox jupyter notebook
1 parent 3c899c2 commit 8ee4f24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

heat.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"cells":[{"cell_type":"code","metadata":{"tags":[],"cell_id":"00000-aa110087-441f-47c6-aa12-de21ebe0ef12","output_cleared":false,"source_hash":"51e0de3","execution_millis":1,"execution_start":1604869034510},"source":"# Heat Toolbox Notebook","outputs":[],"execution_count":null},{"cell_type":"code","source":"import sys\nimport feelpp\nfrom feelpp.toolboxes.heat import *\n\ne=feelpp.Environment(sys.argv,opts=toolboxes_options(\"heat\"))\ne.setConfigFile('cases/modules/heat/examples/2Dbuilding/thermo2d.cfg')\n\nf=heat(dim=2,order=1)\nf.init()\n#f.printAndSaveInfo()\nif f.isStationary():\n f.solve()\n f.exportResults()\nelse: \n if not f.doRestart():\n f.exportResults( f.timeInitial() )\n while not f.timeStepBase().isFinished():\n if f.worldComm().isMasterRank():\n print(\"============================================================\\n\")\n print(\"time simulation: \", f.time(), \"s \\n\")\n print(\"============================================================\\n\")\n f.solve()\n f.exportResults()\n f.updateTimeStep()\n\n\n","metadata":{"tags":[],"cell_id":"00001-f2d86b63-6ff3-4051-9e5c-546d13cfdf9c","output_cleared":false,"source_hash":"14846395","execution_millis":1694,"execution_start":1604869385357},"outputs":[{"output_type":"error","ename":"KernelInterrupted","evalue":"Execution interrupted by the Jupyter kernel.","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mKernelInterrupted\u001b[0m: Execution interrupted by the Jupyter kernel."]}],"execution_count":null}],"nbformat":4,"nbformat_minor":2,"metadata":{"orig_nbformat":2,"deepnote_notebook_id":"83a63edd-d54d-4a79-adea-b05cd379a185","deepnote_execution_queue":[]}}

0 commit comments

Comments
 (0)