Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Details on incident_subdomains

Subject: CGAL users discussion list

List archive

[cgal-discuss] Details on incident_subdomains


Chronological Thread 
  • From: Dr01TSPC <>
  • To:
  • Subject: [cgal-discuss] Details on incident_subdomains
  • Date: Thu, 20 Dec 2018 12:32:08 -0600 (CST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:laTBzRH03xZ8DJgz0aSPIJ1GYnF86YWxBRYc798ds5kLTJ78psmwAkXT6L1XgUPTWs2DsrQY07qQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOTA5/m/JicJ+ka1Urw6uqRFk347ZYp2ZOOZicq/BY98XQ3dKUMZLVyxGB4Oxd4UBD/AdMepFsYfzukEAoAWjDgSrGOPvyzpIhnjq3a060+UtCx3J0xYkH90Qq3nUo9D1O70TUeCx1qXH0TLDb/ZP1Dr79YPGfBchofSWUrJxd8rc0U8vGBnegVqLrYzqISmZ2fgKs2ie6edrSOGhi3Y/pg1spjWiwt0gh4fKi44PyV3J9D91zYc0KNC+VUV1e8SrEIFKuCGfL4Z2Qt0tQ2VvuCsizL0LtoS3fC4Qx5s83BHfb+KIf5KU7RLkUeadOTZ4hHR7d7Kjnxu+7Eytx+nmWsS601tGtClIn9jWun0M1hHf8s2HReF8/kel1zaPzQfT6uRcLEAolKrbLpkhwqIwlpsTq0jMAjX5mEHog6KNeUUk//Kn6+XjYrn8upCcMIp0hhnkMqsygsy/Hfg4Mg8WUmeH9uSzzrnj8VTkT7VLlf05jrTZsIvBJckAva64AwpV0p455BqlDjem1s4YnXgdI15fdhKHlduhB1abK//xCbKzgk+njSxw7/HAJLzoRJvXfVbZl7K0UawlsnJn8CF7mcxe4pVICqBHK/v3V2f+sdXZClkyNAnikLWvM8l0yo5LATHHOaSeKq6H6QbZtNJqGPGFYcougBi4LvEk4/D0inpgwA0SeKCo2d0cb3XqRa06cXXcWmLlh5I6KUlPphA3FbW4h1iLUDoVbHG3Dfplu2MLTbm+BIKGfbiDxbyM2CDiQ89QOiZAA1qGFXqufIKBCa4B

I successfully meshed 2 co-centered spheres; with radii of 0.5 and 1.0;
but the effort raised a question. Actually 2 questions.

Background:

I edited mesh_polyhedral_complex.cpp; treating the each sphere as a
patch.

The results depend up how I define "incident_subdomains", and ranged
from segmentation fault, through mislabelled tets, to correctly labelled
tets. By "correctly" labelled, I mean the tets in each subdomain have one
id or "color".

So, I consider the labels: Outside=0, Larger sphere=1, Smaller sphere=2. To
remind myself, I saved the surface mesh for the larger sphere in
patch-01.off,
and the surface mesh for the smaller sphere in patch-12.off.

RESULTS of varying incident_subdomains:

The following assignment works, in that the volume between the smaller and
larger
spheres is red, while the volume in the smaller sphere is green.

const std::pair<int, int> incident_subdomains[] = {
std::make_pair(1, 0),
std::make_pair(2, 1),
}

The following results in a segmentation fault in the mesher:

const std::pair<int, int> incident_subdomains[] = {
std::make_pair(0, 1),
std::make_pair(2, 1),
};

The following also results in a segmentation fault in the mesher:

const std::pair<int, int> incident_subdomains[] = {
std::make_pair(0, 1),
std::make_pair(1, 2),
};

The following results in a mixture of green and red tets in the volume
between
the smaller and larger spheres, while the test inside the smaller sphere
are red.

const std::pair<int, int> incident_subdomains[] = {
std::make_pair(1, 0),
std::make_pair(1, 2),
};

So: Is there a description/explanation of how to assign input patches as
boundaries between volumes?

Is there a way to protect/freeze the surface meshes, so that I know they
are the same (node numbers and positions) on output?

Thanks,
Tim

BTW: Per a Stack Overflow discussion from ~Sept. 11, I print the output
mesh file using:

c3t3.output_to_medit(medit_file, false, true)





--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


  • [cgal-discuss] Details on incident_subdomains, Dr01TSPC, 12/20/2018

Archive powered by MHonArc 2.6.18.

Top of Page