Subject: CGAL users discussion list
List archive
[cgal-discuss] Runtime Error: Postcondition Violation (min power distance to q and r)
Chronological Thread
- From: "Walker Andreas" <>
- To: "" <>
- Subject: [cgal-discuss] Runtime Error: Postcondition Violation (min power distance to q and r)
- Date: Sun, 16 Feb 2020 14:00:57 +0000
- Accept-language: de-CH, en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:G0tksxFV5XGHm3031fVKuJ1GYnF86YWxBRYc798ds5kLTJ7zr8+wAkXT6L1XgUPTWs2DsrQY0raQ7PyrBDxIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MRq7oR/Tu8QZjodvKqU8wQbVr3VVfOhb2WxnKVWPkhjm+8y+5oRj8yNeu/Ig885PT6D3dLkmQLJbETorLXk76NXkuhffQwSP4GAcUngNnRpTHwfF9hD6UYzvvSb8q+FwxTOVPczyTbAzRDSi86JmQwLmhSsbKzI09nzch8pth6xZvR2hvQRyzY7Kbo+IKPpwcKDTfdIGSmROUclcTDBBApq5b4cTE+YNIfhUoo/grFUOtxu+AgysCfvhxjBInHD22a463Po7EQrbwQctA9QOv2nOrNrrLqgSSu65x7TPwDrZYfJZwzP96IvWfRA7uvyMRq5wcdfMxkYxEQPFkk+cppL5PzOV1+UBqXSU7+p5WO+plmUppQZxoj21ycctjInEnp4ayl/e+iV92oo1Ise4SEF9bNW5E5VQrzmXO5ZoTs4mWW1kpSg3xqMctZKmeCUHy44rywPbZvGIa4SF4BDuWPyRLDp7nn5odrayiwy8/EWk0uH8WNe73VVWoidAl9TBuH8A2AfN5sWCS/Zw/luu1DaK2g3X9u1JIUU5mKrFJ5Mj3LE9kIcYv17ZES/sgkr2ibebdkU69eis7OTqerDmqYWdN49whQHyLLkiltClDesmLggOX2ma9f6g273j5UH5QbNKgeMqkqTBrZzWO8AWqrSkDwJbzIov8QuzAjOl3dgCgHUKKF1IdAqCj4fzOlHOJP74De24g1SpiDpk3f7HMaflApXOMHfDiqzsfa1h605B1QU809Zf545OBr4fPPLzWk7wuMbEAR85KwC02froCM1h1oMCXmKCGrOWMKzIvl+M/+4gPuiMZJQJtzbgMPgl/OXjjWQ5mF8YZammx4EbaHG+HvR8IkWWe2DggtkbETRCgg1rBuflgVnHXT9IbGupRIo94Cs6AcSoF82LEouiibjE0CagFYBNfUhHDEqNGDHmbdPXde0LbXfYHcZlkTEeHfCITYM72Bi1/keuwqVuKunZ4AUDqY/v2d5poeDPlQN0/jwiXJfV6H2EU2whxjBAfDQxxq0q+RUhmGfG6rBxhrljLfIW/+lAC1hoLoLBw+F8F5b/RgLTONyJGg7/H4eWRAopR9d0+OcgJkZwH9L73kLG1iuuDOVMz/qGGJwmtKncjSCodpRNjk3e3axktGEIB85GNGmonKl6rleBHJLUn0ifi+CnaaQOmiXNpj+O
Hello,
I am working on a project where I require a periodic mesh for a structure
which I use later on in a (mechanical) FEM - context. I generate this mesh
with a code very similar to the one presented at
https://doc.cgal.org/latest/Periodic_3_mesh_3/Periodic_3_mesh_3_2mesh_implicit_shape_8cpp-example.html
- which usually works like a charm. The function I use is a 3D-Interpolation
from Grid - Data from a decomposition simulation (this simulation is not my
own work).
Now this works when the grid data is taken from earlier stages of said
simulation, when the 3D-field shows rather fine-grained structures and the
values are regularly distributed within the allowed range (which is between 0
and 1). The structure I'm concerned with is typically "lamellar" i.e.
consists of many connected lamellae which are rather fine and thin at this
point. Now I move to later stages where these lamellae become rather thick
(and fewer). Also, the function values get very close to 0 and 1 and have a
steep gradient inbetween. Further on, there are also some numerical artifacts
around these gradients, making the isosurfaces a bit rough around the
grid-points (not sure if that's of any relevance here).
Now when I try to use the exact same code for such a case I get the following
error at runtime:
what(): CGAL ERROR: postcondition violation!
Expr: min_power_distance_to_r < 0.5 && min_power_distance_to_q < 0.5
File:
/opt/libraries/cgal-4.14.1/include/CGAL/Periodic_3_mesh_triangulation_3.h
Line: 521
Aborted (core dumped)
It took me a while to find a set of mesh criteria under which the code runs
successfully and produces output, which however only work for rather coarse
meshes. (To be specific, the cell size needs to be rather large (about twice
the lamella thickness) and the cell radius to edge ratio higher than 3.5.
My question is: what causes this error? What can be done to avoid it? Are
there any features of the input data that cause it?
Thank you in advance and please excuse the lengthy question with the probably
unnecessary details
Best Regards,
Andreas Walker
Master Thesis Student
m&m Lab
MAVT, ETHZ
- [cgal-discuss] Runtime Error: Postcondition Violation (min power distance to q and r), Walker Andreas, 02/16/2020
Archive powered by MHonArc 2.6.18.