Tutorial3 and 1 fix (#67)
This commit is contained in:
@@ -82,12 +82,11 @@ time domain where we want the solution.
|
|||||||
Summarizing, in PINA we can initialize a problem with a class which is
|
Summarizing, in PINA we can initialize a problem with a class which is
|
||||||
inherited from three base classes: ``SpatialProblem``,
|
inherited from three base classes: ``SpatialProblem``,
|
||||||
``TimeDependentProblem``, ``ParametricProblem``, depending on the type
|
``TimeDependentProblem``, ``ParametricProblem``, depending on the type
|
||||||
of problem we are considering. For reference: \* ``SpatialProblem``
|
of problem we are considering. For reference:
|
||||||
:math:`\rightarrow` spatial variable(s) presented in the differential
|
|
||||||
equation \* ``TimeDependentProblem`` :math:`\rightarrow` time
|
* ``SpatialProblem`` :math:`\rightarrow` spatial variable(s) presented in the differential equation
|
||||||
variable(s) presented in the differential equation \*
|
* ``TimeDependentProblem`` :math:`\rightarrow` time variable(s) presented in the differential equation
|
||||||
``ParametricProblem`` :math:`\rightarrow` parameter(s) presented in the
|
* ``ParametricProblem`` :math:`\rightarrow` parameter(s) presented in the differential equation
|
||||||
differential equation
|
|
||||||
|
|
||||||
Write the problem class
|
Write the problem class
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ The problem is written in the following form:
|
|||||||
:raw-latex:`\begin{equation}
|
:raw-latex:`\begin{equation}
|
||||||
\begin{cases}
|
\begin{cases}
|
||||||
\Delta u(x,y,t) = \frac{\partial^2}{\partial t^2} u(x,y,t) \quad \text{in } D, \\\\
|
\Delta u(x,y,t) = \frac{\partial^2}{\partial t^2} u(x,y,t) \quad \text{in } D, \\\\
|
||||||
u(x, y, t=0) = \sin(\pi x)\sin(\pi y)\cos(\sqrt{2}\pi), \\\\
|
u(x, y, t=0) = \sin(\pi x)\sin(\pi y), \\\\
|
||||||
u(x, y, t) = 0 \quad \text{on } \Gamma_1 \cup \Gamma_2 \cup \Gamma_3 \cup \Gamma_4,
|
u(x, y, t) = 0 \quad \text{on } \Gamma_1 \cup \Gamma_2 \cup \Gamma_3 \cup \Gamma_4,
|
||||||
\end{cases}
|
\end{cases}
|
||||||
\end{equation}`
|
\end{equation}`
|
||||||
|
|||||||
2
tutorials/tutorial3/tutorial.ipynb
vendored
2
tutorials/tutorial3/tutorial.ipynb
vendored
@@ -24,7 +24,7 @@
|
|||||||
"\\begin{equation}\n",
|
"\\begin{equation}\n",
|
||||||
"\\begin{cases}\n",
|
"\\begin{cases}\n",
|
||||||
"\\Delta u(x,y,t) = \\frac{\\partial^2}{\\partial t^2} u(x,y,t) \\quad \\text{in } D, \\\\\\\\\n",
|
"\\Delta u(x,y,t) = \\frac{\\partial^2}{\\partial t^2} u(x,y,t) \\quad \\text{in } D, \\\\\\\\\n",
|
||||||
"u(x, y, t=0) = \\sin(\\pi x)\\sin(\\pi y)\\cos(\\sqrt{2}\\pi), \\\\\\\\\n",
|
"u(x, y, t=0) = \\sin(\\pi x)\\sin(\\pi y), \\\\\\\\\n",
|
||||||
"u(x, y, t) = 0 \\quad \\text{on } \\Gamma_1 \\cup \\Gamma_2 \\cup \\Gamma_3 \\cup \\Gamma_4,\n",
|
"u(x, y, t) = 0 \\quad \\text{on } \\Gamma_1 \\cup \\Gamma_2 \\cup \\Gamma_3 \\cup \\Gamma_4,\n",
|
||||||
"\\end{cases}\n",
|
"\\end{cases}\n",
|
||||||
"\\end{equation}\n",
|
"\\end{equation}\n",
|
||||||
|
|||||||
2
tutorials/tutorial3/tutorial.py
vendored
2
tutorials/tutorial3/tutorial.py
vendored
@@ -12,7 +12,7 @@
|
|||||||
# \begin{equation}
|
# \begin{equation}
|
||||||
# \begin{cases}
|
# \begin{cases}
|
||||||
# \Delta u(x,y,t) = \frac{\partial^2}{\partial t^2} u(x,y,t) \quad \text{in } D, \\\\
|
# \Delta u(x,y,t) = \frac{\partial^2}{\partial t^2} u(x,y,t) \quad \text{in } D, \\\\
|
||||||
# u(x, y, t=0) = \sin(\pi x)\sin(\pi y)\cos(\sqrt{2}\pi), \\\\
|
# u(x, y, t=0) = \sin(\pi x)\sin(\pi y), \\\\
|
||||||
# u(x, y, t) = 0 \quad \text{on } \Gamma_1 \cup \Gamma_2 \cup \Gamma_3 \cup \Gamma_4,
|
# u(x, y, t) = 0 \quad \text{on } \Gamma_1 \cup \Gamma_2 \cup \Gamma_3 \cup \Gamma_4,
|
||||||
# \end{cases}
|
# \end{cases}
|
||||||
# \end{equation}
|
# \end{equation}
|
||||||
|
|||||||
Reference in New Issue
Block a user