[Dune] gridcheck.cc : Integral over outer normals is not always zero.
Martin Nolte
nolte at mathematik.uni-freiburg.de
Wed Mar 18 20:26:09 CET 2015
Hi Aleksejs,
the divergence theorem only holds for volumes, not for surfaces. On a surface,
the surface integral over all normals equals the integral over the mean
curvature. And this is exactly what the message states: In case of a surface
grid, the integral might be non-zero if the mean curvature of is nonzero.
If you encounter this message for a volume grid (i.e., a grid with dimgrid =
dimworld), then something went wrong. In this case, the divergence theorem holds
and, as you stated, the surface integral over all normals should be zero. Apart
from a bug in your normal implementation, this might also result from an
insufficient quadrature order. Would you consider filing a bug report in the
latter case?
Best,
Martin
PS: I am merely the author of the warning, not of the test. Originally, the test
simply failed for surface grids with element geometries of nonzero mean
curvature (which is plain wrong).
On 03/18/2015 04:23 PM, Aleksejs Fomins wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear Dune,
>
> When running the gridcheck.cc I notice I encounter the following warning:
>
> - -- Checking Intersection Iterator
> Warning: Integral over outer normals is not always zero.
> This behaviour may be correct for entities with nonzero curvature.
> Warning: Integral over outer normals is not always zero.
> This behaviour may be correct for entities with nonzero curvature.
>
> Could the person who wrote this test please explain what this means.
>
> I assume that this refers to the integral Int(vec{n} dS) over the surface of an element.
> If this is indeed the case, then this integral should be zero by divergence theorem.
> In particular, could you explain the case in which the integral would not be zero
>
> Greetings,
> Aleksejs
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iQIcBAEBAgAGBQJVCZiKAAoJEDkNM7UOEwMZmE4QAJxUe4XvnWD/MaAe+u8Qbqxd
> zcokpkAlnrQ/dfhdCJLhng16CH9EGF5vtI37Lds/lnPaX6vpv3+xfRSJcILiFTZJ
> 86aXnbDbBoClWE/Bg4y3ZA5lh0iqBJ39kSqScWCD8g6ZMqfGX2zjKNbgxDAmDz1B
> wrZuvCGtdOyRoj3dLITCFj9xAnFsKCl35ojzqfiWLnaptr54u13G+iG5vdp+JN7L
> 34J1/+jLCyASN8exSsx8knpYyso794BGKIyq5964RPj/Ee+Ak1fTHVBSBAP6ZaK1
> ijIm9m3/hniIh8U6IJ9yL/E6XDZgdiFI1SRMy/QLkbMPwvkeEo1OIXpx6b2VHsKR
> ZM+wyBIlv/3RjGN0HPk8NFDPNwF4cPhVGVENClWU+XoTCqohX1j/Itf/hRBHvBIm
> b/aHOG0KX5fP4bH8Kwh4Bi2aViT3R58a8SenMFB0lumvKhERrhgO7DSTqigk3cZ+
> HLlpfjC+kaBSFM4rxCXAjHVFAQTGblfazgRRuXY3sNIlKaOMTeN1pTf5UBstIvdf
> 7DrqxIZy76w2BTCqoBOVKMV3QFZFLlqJjrH5s5s9IibteCufgOdztXBKiOh57RUP
> tl/Oq09bmnmhMLJbrjyzeaZK0ABIYEMsI8eKbpVcKy7MC0I+U2Ejh2qwr0FuH8U5
> al6pJnB/jhCfs60/CnGb
> =llGl
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
--
Dr. Martin Nolte <nolte at mathematik.uni-freiburg.de>
Universität Freiburg phone: +49-761-203-5630
Abteilung für angewandte Mathematik fax: +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany
More information about the Dune
mailing list