Fixing tutorials grammar (#242)

* grammar check and sparse rephrasing
* rst created
* meta copyright adjusted
This commit is contained in:
Giuseppe Alessio D'Inverno
2024-03-05 10:43:34 +01:00
committed by GitHub
parent 15136e13f8
commit b10e02103b
23 changed files with 272 additions and 237 deletions

View File

@@ -14,7 +14,7 @@
"metadata": {},
"source": [
"In this tutorial we are going to solve the Darcy flow problem in two dimensions, presented in [*Fourier Neural Operator for\n",
"Parametric Partial Differential Equation*](https://openreview.net/pdf?id=c8P9NQVtmnO). First of all we import the modules needed for the tutorial. Importing `scipy` is needed for input output operations."
"Parametric Partial Differential Equation*](https://openreview.net/pdf?id=c8P9NQVtmnO). First of all we import the modules needed for the tutorial. Importing `scipy` is needed for input-output operations."
]
},
{
@@ -42,7 +42,7 @@
"source": [
"## Data Generation\n",
"\n",
"We will focus on solving the a specfic PDE, the **Darcy Flow** equation. The Darcy PDE is a second order, elliptic PDE with the following form:\n",
"We will focus on solving a specific PDE, the **Darcy Flow** equation. The Darcy PDE is a second-order elliptic PDE with the following form:\n",
"\n",
"$$\n",
"-\\nabla\\cdot(k(x, y)\\nabla u(x, y)) = f(x) \\quad (x, y) \\in D.\n",
@@ -233,7 +233,7 @@
"id": "6b5e5aa6",
"metadata": {},
"source": [
"## Solving the problem with a Fuorier Neural Operator (FNO)\n",
"## Solving the problem with a Fourier Neural Operator (FNO)\n",
"\n",
"We will now move to solve the problem using a FNO. Since we are learning operator this approach is better suited, as we shall see."
]

View File

@@ -4,7 +4,7 @@
# # Tutorial: Two dimensional Darcy flow using the Fourier Neural Operator
# In this tutorial we are going to solve the Darcy flow problem in two dimensions, presented in [*Fourier Neural Operator for
# Parametric Partial Differential Equation*](https://openreview.net/pdf?id=c8P9NQVtmnO). First of all we import the modules needed for the tutorial. Importing `scipy` is needed for input output operations.
# Parametric Partial Differential Equation*](https://openreview.net/pdf?id=c8P9NQVtmnO). First of all we import the modules needed for the tutorial. Importing `scipy` is needed for input-output operations.
# In[1]:
@@ -22,7 +22,7 @@ import matplotlib.pyplot as plt
# ## Data Generation
#
# We will focus on solving the a specfic PDE, the **Darcy Flow** equation. The Darcy PDE is a second order, elliptic PDE with the following form:
# We will focus on solving a specific PDE, the **Darcy Flow** equation. The Darcy PDE is a second-order elliptic PDE with the following form:
#
# $$
# -\nabla\cdot(k(x, y)\nabla u(x, y)) = f(x) \quad (x, y) \in D.
@@ -112,7 +112,7 @@ err = float(metric_err(u_test.squeeze(-1), solver.neural_net(k_test).squeeze(-1)
print(f'Final error testing {err:.2f}%')
# ## Solving the problem with a Fuorier Neural Operator (FNO)
# ## Solving the problem with a Fourier Neural Operator (FNO)
#
# We will now move to solve the problem using a FNO. Since we are learning operator this approach is better suited, as we shall see.