Open HenningScheufler opened 8 months ago
Hello Henning,
i am sorry for the late reply, currently almost everyone is ill or on holidays. We are happy that you are working with t8code. Please feel free to ask any questions.
To answer your question: you can use cmesh attributes to store arbitrary user information on each tree. So you could for example create a new struct with the infos
int tree_face;
int boundary_condition; // could also be a string or whatever you prefer
and then add one for each face to the cmesh trees via t8_cmesh_set_attribute
(https://github.com/DLR-AMR/t8code/blob/main/src/t8_cmesh.h#L267)
You can read it with the corresponding get function.
To find out whether an element's face satisfies a bc you can use t8_element_is_root_boundary
and t8_element_tree_face
from https://github.com/DLR-AMR/t8code/blob/main/src/t8_element_cxx.hxx
to determine if it's at the boundary and if so at which tree face it sits on and then get the attribute as above.
I hope that was clear and we really should write a Tutorial about attributes and bc.
Best wishes and happy holidays.
Thanks for the help. I will post the solution if i have it
Hi @HenningScheufler, just checking whether this is resolved? Can we close the issue, or do you still have issues?
Thanks for the maintaining and developing this extremely useful library.
The documentation is quite good and i was able to get started quite quickly. However, it unclear to me how i can correlate a face of a cell to a boundary condition on the coarse mesh. So i want to basically know which cell face has which boundary label (e.g. top,bot,left,right):