Skip to content

Commit

Permalink
Removed machine-specific metadata embedded in .ipynb files
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Nov 27, 2024
1 parent a8b34b8 commit 51eea06
Show file tree
Hide file tree
Showing 83 changed files with 381 additions and 865 deletions.
53 changes: 14 additions & 39 deletions chapter1/poisson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": null,
"id": "d742586c",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -116,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "a2a0a2a1",
"metadata": {},
"outputs": [],
Expand All @@ -126,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"id": "00e54163",
"metadata": {},
"outputs": [],
Expand All @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": null,
"id": "5999c62b",
"metadata": {},
"outputs": [],
Expand All @@ -162,7 +162,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"id": "541192ee",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -196,18 +196,10 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"id": "5925c6cd",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"9.49756716724664e-07\n"
]
}
],
"outputs": [],
"source": [
"ue = sin(pi*x)*sin(pi*y)\n",
"\n",
Expand Down Expand Up @@ -236,18 +228,10 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": null,
"id": "e5c1a8b8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"9.768702410721585e-05\n"
]
}
],
"outputs": [],
"source": [
"# create the formal Norm object\n",
"h1norm = SemiNorm(u - ue, domain, kind='h1')\n",
Expand All @@ -272,18 +256,10 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": null,
"id": "d829e410",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"9.769164089397408e-05\n"
]
}
],
"outputs": [],
"source": [
"# create the formal Norm object\n",
"h1norm = Norm(u - ue, domain, kind='h1')\n",
Expand All @@ -309,9 +285,9 @@
],
"metadata": {
"kernelspec": {
"display_name": ".iga-python",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": ".iga-python"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -322,8 +298,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
62 changes: 15 additions & 47 deletions chapter2/advection-diffusion-stabilized.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "d742586c",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -102,18 +102,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "87e62069",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2*kappa*pi**2*sin(pi*x1)*sin(pi*x2) + 1.0*pi*sin(pi*x2)*cos(pi*x1)\n"
]
}
],
"outputs": [],
"source": [
"from sympde.expr import TerminalExpr\n",
"\n",
Expand All @@ -130,7 +122,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "e4bbd1a8",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -186,7 +178,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "a2a0a2a1",
"metadata": {},
"outputs": [],
Expand All @@ -196,7 +188,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "00e54163",
"metadata": {},
"outputs": [],
Expand All @@ -207,24 +199,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "5999c62b",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ranania/PYCCEL/IGA-Python/.iga-python/lib/python3.10/site-packages/sympy/matrices/repmatrix.py:90: SymPyDeprecationWarning: \n",
"\n",
"non-Expr objects in a Matrix has been deprecated since SymPy 1.9. Use\n",
"list of lists, TableForm or some other data structure instead. See\n",
"https://github.com/sympy/sympy/issues/21497 for more info.\n",
"\n",
" ).warn()\n"
]
}
],
"outputs": [],
"source": [
"# Create computational domain from topological domain\n",
"domain_h = discretize(domain, ncells=ncells, comm=None)\n",
Expand All @@ -251,7 +229,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "67b32148",
"metadata": {},
"outputs": [],
Expand All @@ -262,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "541192ee",
"metadata": {},
"outputs": [],
Expand All @@ -289,19 +267,10 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "5925c6cd",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
">>> SUPG = 0.002139370600719921\n",
">>> GLS = 0.00021873265193415864\n"
]
}
],
"outputs": [],
"source": [
"u = element_of(V, name='u')\n",
"\n",
Expand Down Expand Up @@ -335,9 +304,9 @@
],
"metadata": {
"kernelspec": {
"display_name": ".iga-python",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": ".iga-python"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -348,8 +317,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 51eea06

Please sign in to comment.