Add plot in tutorials 1,3,4,9

This commit is contained in:
Matteo Bertocchi
2025-02-27 19:01:05 +01:00
committed by Nicola Demo
parent 14a6008437
commit 98d4e1fd76
4 changed files with 62 additions and 70 deletions

View File

@@ -137,15 +137,7 @@
"execution_count": 2,
"id": "f2608e2e",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/matte_b/PINA/pina/operators.py: DeprecationWarning: 'pina.operators' is deprecated and will be removed in future versions. Please use 'pina.operator' instead.\n"
]
}
],
"outputs": [],
"source": [
"from pina.problem import SpatialProblem\n",
"from pina.operator import grad\n",

View File

@@ -89,7 +89,7 @@ class TimeSpaceODE(SpatialProblem, TimeDependentProblem):
#
# Once the `Problem` class is initialized, we need to represent the differential equation in **PINA**. In order to do this, we need to load the **PINA** operators from `pina.operators` module. Again, we'll consider Equation (1) and represent it in **PINA**:
# In[ ]:
# In[2]:
from pina.problem import SpatialProblem