代码主要包括三个部分
第一:定义PDE约束constrain.py
import firedrake as fd
from fireshape import PdeConstraint
class NavierStokesSolver(PdeConstraint):
"""Incompressible Navier-Stokes as PDE constraint."""
def __init__(self, mesh_m, viscosity):
代码主要包括三个部分
第一:定义PDE约束constrain.py
import firedrake as fd
from fireshape import PdeConstraint
class NavierStokesSolver(PdeConstraint):
"""Incompressible Navier-Stokes as PDE constraint."""
def __init__(self, mesh_m, viscosity):