[Dune] Gridcheck asks for geometry.local() outside the element?
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Thu Feb 26 17:34:20 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear Jö,
For curvilinear geometries global->local mapping is not defined outside the element.
If I understand correctly, if someone asks me for a global coordinate strongly outside the element, then I could return a whatever local coordinate that is strongly outside the element, eg (-100, 0, 0). I hope that people only care if the coordinate is inside or outside the element and do not care of the actual local coordinate if they know it is outside.
Because if this is not the case, we have a serious design problem.
Thanks for your reply
Aleksejs
On 26/02/15 17:25, Jö Fahlke wrote:
> Am Thu, 26. Feb 2015, 16:58:38 +0100 schrieb Aleksejs Fomins:
>> I am now trying to make the gridcheck run with curvilinear grid.
>>
>> It seems that at some point gridcheck calls the geometry.local() method for one of tetrahedra in the provided mesh. And it calls the method with a global coordinate that is clearly outside the element. I previously assumed this was an illegal action, so I throw an error there...
>>
>> Questions:
>> 1) Is this expected behaviour of gridcheck?
>> 2) If yes, what is the expected return value?
>> 3) If no, then the problem is elsewhere. To search for it, I need debug output. Does gridcheck have debug output and if yes how to switch it on?
>
> Without having looked at what the grid check does: It is kind-of legal to
> stuff a coordinate outside the element into local(). This can happen
> e.g. during a hierarchic search, when you try to find the element that
> contains a certain Coordinate. You (as a grid implementor) can
> however declare that this is not supported for your grid, as hierarchic search
> is just a utility class.
>
> Another instance where local() receives outside coordinates is due to rounding
> errors. You should allow that, but you can take advantage of the fact that
> these coordinate will only be very slightly outside.
>
> If you can smoothly extend the local() mapping to the outside of the element,
> then you should return the result according to this smooth extension.
> Otherwise you probably already have singularities on the boundary of the
> element, and we have to think about that some more.
>
> Regards,
> Jö.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJU70sMAAoJEDkNM7UOEwMZ8KQQAMW6OUNtZQ61SVMBizpmdNLS
ZdlYiAuu5XwHXdxn3Q6Zw4Ayw6NUt+wPITzIQoka800ZpxQLY4HdZLLgUEYfEhlD
I0Z6AQ0QkxqjlEEUWK5Wh86TgAyEMpgr0m1frhmnmMbE1Kjk/JdiPffZh1O3dGpC
AtNZCR8O9kaiSkQn2S4Pvq83Vv28t8U/RI6O8QOSKyWFmDe9Y+VZ6CIA+k1a0ifY
rf2i83/SF52D0AbAcElCwPQ0dRXMqznArmphdFT1bkxZu0YImXa+K7SOws2LQ6l0
nKMXmrClXLG0rlG2dCe9WrOx2wWfSuKzoo4yRkZmJEq+myPCd97RjKmLYUwWQw/2
DcUHNWnGBcPi2O8fPWgW3Efzj+yvq+ES0oLRoRyMMCy+84XekR3u1vGuTYkZzGFm
ZfO15lk4otxZcWO7CIwKImeHhBjRhLW6d7blggeHQ9LYq4SIk6qJMQxdeSH0HiAi
uUWtikcP9aFsfnWEy6H4VQXsTHuzkNPK57qLMk9TahuAXT1cT333r0nt4F6qxVRK
kKEUxFNj7qVdm/kN2/qXCIAiHi+COvEkXpyu4Cx2OaqhSiZyfwOTnZVCmcgA1uEI
rKI3Ie7cgs6FHib81LZlh8RQ4Aoxj0+BZYQGJulWjhjyt7jCrOgOq0LZ7/1lL0km
DfiKr4uJFNEGoSpxpKuW
=QHx4
-----END PGP SIGNATURE-----
More information about the Dune
mailing list