I have divided my domain into 2 sub-domains sucsessfully following the documentation.
With single domain I used to set a single value to a viscosity but now I want to define different viscosities in
different subdomains, anyone knows how to set this ?
Thanks in advance.
you can use domain-wise coefficient functions by using as list of values/functions as argument of the CoefficientFunction.
from netgen.geom2d import SplineGeometry
geo = SplineGeometry()
from ngsolve import *
mesh = Mesh(geo.GenerateMesh(maxh=0.2))
I hope that’s what you are looking for.