committed by
GitHub
parent
6a4febb33a
commit
78ed2a67a2
@@ -1,6 +1,12 @@
|
||||
Tutorial: Two dimensional Wave problem with hard constraint
|
||||
===========================================================
|
||||
|
||||
|Open In Colab|
|
||||
|
||||
.. |Open In Colab| image:: https://colab.research.google.com/assets/colab-badge.svg
|
||||
:target: https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial3/tutorial.ipynb
|
||||
|
||||
|
||||
In this tutorial we present how to solve the wave equation using hard
|
||||
constraint PINNs. For doing so we will build a costum ``torch`` model
|
||||
and pass it to the ``PINN`` solver.
|
||||
@@ -9,6 +15,15 @@ First of all, some useful imports.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
## routine needed to run the notebook on Google Colab
|
||||
try:
|
||||
import google.colab
|
||||
IN_COLAB = True
|
||||
except:
|
||||
IN_COLAB = False
|
||||
if IN_COLAB:
|
||||
!pip install "pina-mathlab"
|
||||
|
||||
import torch
|
||||
|
||||
from pina.problem import SpatialProblem, TimeDependentProblem
|
||||
|
||||
Reference in New Issue
Block a user