Hello, I have a question to compute the volume of domain.
~(previous codes)~
# Intersection between all ellipsoids and cube.
ellips_inside = all_ellips_P1 * cube
# Add components for meshing.
geo2.Add(cube-ellips_inside)
geo2.Add(ellips_inside)
geo2.Add(cube2)
# Generate the mesh.
m2 = geo2.GenerateMesh (meshsize.fine)
# Compute the volume of domain
myfunc = 1
ngsolve.Integrate(myfunc,ellips_inside,order=3)
I tried to run the code to compute the volume of domain(ellips_inside), but it didn’t work.
How can I get the volume on a specific domain?
I appreciate your help.