-
-
Save schymans/92f84f1a716be5b26b84f030af739175 to your computer and use it in GitHub Desktop.
Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import essm | |
class eq_test(essm.equations.Equation): | |
expr = 1 == 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div class=\"notruncate\">\n", | |
"<table class=\"table_form\">\n", | |
"<tbody>\n", | |
"<tr class =\"row-a\">\n", | |
"<td>Symbol</td>\n", | |
"<td>Name</td>\n", | |
"<td>Description</td>\n", | |
"<td>Default value</td>\n", | |
"<td>Units</td>\n", | |
"</tr>\n", | |
"<tr class =\"row-b\">\n", | |
"<td><script type=\"math/tex\">{\\gamma}</script></td>\n", | |
"<td>gamma_PT</td>\n", | |
"<td>Priestley-Taylor <script type=\"math/tex\">\\gamma</script></td>\n", | |
"<td>-</td>\n", | |
"<td> K <script type=\"math/tex\">^{-1 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-a\">\n", | |
"<td><script type=\"math/tex\">{c_{pa}}</script></td>\n", | |
"<td>c_pa</td>\n", | |
"<td>Specific heat of dry air.</td>\n", | |
"<td>1010.0</td>\n", | |
"<td>J K <script type=\"math/tex\">^{-1 }</script> kg <script type=\"math/tex\">^{-1 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-b\">\n", | |
"<td><script type=\"math/tex\">{E}</script></td>\n", | |
"<td>E_w</td>\n", | |
"<td>Wet surface evaporation\n", | |
" (E in Priestley and Taylor, 1972))\n", | |
" </td>\n", | |
"<td>-</td>\n", | |
"<td>kg m <script type=\"math/tex\">^{-2 }</script> s <script type=\"math/tex\">^{-1 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-a\">\n", | |
"<td><script type=\"math/tex\">{H}</script></td>\n", | |
"<td>H_w</td>\n", | |
"<td>Wet surface sensible heat flux (positive outwards)</td>\n", | |
"<td>-</td>\n", | |
"<td>J m <script type=\"math/tex\">^{-2 }</script> s <script type=\"math/tex\">^{-1 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-b\">\n", | |
"<td><script type=\"math/tex\">{L}</script></td>\n", | |
"<td>L_E</td>\n", | |
"<td>Latent heat</td>\n", | |
"<td>2450000.0</td>\n", | |
"<td>J kg <script type=\"math/tex\">^{-1 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-a\">\n", | |
"<td><script type=\"math/tex\">{s}</script></td>\n", | |
"<td>s_PT</td>\n", | |
"<td>Priestley-Taylor <script type=\"math/tex\">\\partial q_s/\\partial T</script></td>\n", | |
"<td>-</td>\n", | |
"<td>kg K <script type=\"math/tex\">^{-1 }</script> m <script type=\"math/tex\">^{-3 }</script> </td>\n", | |
"</tr>\n", | |
"<tr class =\"row-b\">\n", | |
"<td><script type=\"math/tex\">{T}</script></td>\n", | |
"<td>T</td>\n", | |
"<td>Temperature</td>\n", | |
"<td>-</td>\n", | |
"<td>K </td>\n", | |
"</tr>\n", | |
"</tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" Symbol Name Description Default value Units\n", | |
" ${\\gamma}$ gamma_PT Priestley-Taylor $\\gamma$ - K $^{-1 }$\n", | |
" ${c_{pa}}$ c_pa Specific heat of dry air. 1010.0 J K $^{-1 }$ kg $^{-1 }$\n", | |
" ${E}$ E_w Wet surface evaporation\n", | |
" (E in Priestley and Taylor, 1972))\n", | |
" - kg m $^{-2 }$ s $^{-1 }$\n", | |
" ${H}$ H_w Wet surface sensible heat flux (positive outwards) - J m $^{-2 }$ s $^{-1 }$\n", | |
" ${L}$ L_E Latent heat 2450000.0 J kg $^{-1 }$\n", | |
" ${s}$ s_PT Priestley-Taylor $\\partial q_s/\\partial T$ - kg K $^{-1 }$ m $^{-3 }$\n", | |
" ${T}$ T Temperature - K" | |
] | |
}, | |
"execution_count": 3, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"table(list(generate_metadata_table([E_w, H_w, L_E, c_pa, s_PT, T, gamma_PT])))" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "SageMath 7.6", | |
"language": "", | |
"name": "sagemath" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.13" | |
}, | |
"nav_menu": {}, | |
"toc": { | |
"navigate_menu": true, | |
"number_sections": true, | |
"sideBar": true, | |
"threshold": 6, | |
"toc_cell": false, | |
"toc_section_display": "block", | |
"toc_window_display": false | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment