Visualize Function over a Region
Visualize solutions to a 3D Poisson equation over a ball with Dirichlet boundary conditions.
In[1]:=
usol = NDSolveValue[{\!\(
\*SubsuperscriptBox[\(\[Del]\), \({x, y, z}\), \(2\)]\(u[x, y,
z]\)\) == 1, DirichletCondition[u[x, y, z] == x y z, True]},
u, {x, y, z} \[Element] Ball[]];
In[2]:=
SliceDensityPlot3D[
usol[x, y, z], {"XStackedPlanes",
"ZStackedPlanes"}, {x, y, z} \[Element] Ball[],
PlotTheme -> "Marketing"]
Out[2]=