FloSewn / TQMesh

A simple two-dimensional mesh generator with triangular and quadrilateral elements in C++
MIT License
57 stars 16 forks source link

Not an issue: Couple of questions #4

Open roozbehg opened 2 years ago

roozbehg commented 2 years ago

Hi Florian,

First off, thanks for the great work. I have an free FEM code and want to integrate your mesh generation code in it. I have couple of questions:

1- is it possible to use TQMesh to mesh domain with internal material lines (not internal hole)? in FEM most of the time different materials is separated by lines. 2- is it possible to specify number of division on the boundary lines (i.e. number of segments) and make sure program uses the specified points and prevent it from generating new points on the boundary line? 3- currently I'm using "Triangle" library developed by prof. Shewchuk. Using this code I'll be able to specify marker for each closed region in the domain and program will assign the same id to the mesh inside the region. The same can be done for the initial nodes and edges. I see that in your code user will be able to do the same for the boundary by specifying the marker but can it be done for the region and etc?

thank you again.

-Roozbeh

FloSewn commented 2 years ago

Hey Roozbeh,

thanks for your interest! Regarding your questions 1 & 2: Internal lines and the specification of the actual number of vertices on boundary segments is currently not supported. But this sounds really useful - so I will try to implement it :-)

Concerning question 3: Currently it is only possible to create a domain with one single exterior boundary - this basically means, you can only create one single enclosed domain. I am planning to extend this for multiple domains and in that case, it will also include the possibility to specify markers for elements or interior edges.

Again - thanks for your interest :-)

Greetings Flo

roozbehg commented 2 years ago

Thanks Flo for the response!

Zqinghaohh commented 2 months ago

ssible to specify number of division on the boundary lines (i.e. number of segments) and make sure program uses the specified points and prevent it from generating new points on the boundary line?

Could I ask if we can specify the number of segments on the boundary now? (regarding the question 2)

FloSewn commented 2 months ago

Hey Zqinghaohh,

So far, it is not possible to specify the number of segments on a boundary.

But thanks for your comment - I actually forgot to put this idea on my to-do list and I will try to implement it as soon as possible.

Greetings Flo