Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Parameswaran Ajith
/
NM2025
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3520fb08
authored
Apr 23, 2025
by
Prayush Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make derivative computation explicit in demo7
parent
ca4ec884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
PDEs/Demo7_HyperbolicPDEFourier.ipynb
PDEs/Demo7_HyperbolicPDEFourier.ipynb
View file @
3520fb08
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
null
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -221,9 +221,11 @@
...
@@ -221,9 +221,11 @@
" conditions.\"\"\"\n",
" conditions.\"\"\"\n",
"\n",
"\n",
" g, Pi, Phi = u[0], u[1], u[2]\n",
" g, Pi, Phi = u[0], u[1], u[2]\n",
" gDot = -Pi\n",
" gDot = -Pi \n",
" PiDot = -Fourier.dudx_Fourier(Phi)\n",
" # PiDot = -Fourier.dudx_Fourier(Phi)\n",
" PhiDot = -Fourier.dudx_Fourier(Pi)\n",
" # PhiDot = -Fourier.dudx_Fourier(Pi)\n",
" PiDot = -info.D1 @ Phi\n",
" PhiDot = -info.D1 @ Pi\n",
"\n",
"\n",
" dudt = u.copy() # create data structure of the same shape as `u`\n",
" dudt = u.copy() # create data structure of the same shape as `u`\n",
" dudt[0] = gDot\n",
" dudt[0] = gDot\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment