FloSewn / TQMesh

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

[Feature request] Reading vertices from external files such as CSV files #11

Closed OpenFoam-User closed 5 months ago

OpenFoam-User commented 1 year ago

It would be much convenient to read the list of vertices from extenal files such CSV files. In my opinion, that would be much better than manually adding the vertices.

The CSV file should contains the x, and y columns or possibly the four columns: x, y, Scale parameter, and Range parameter.

Please feel free to close this if you think that defeats the purpose of using .para files in the first place. Thank you

FloSewn commented 1 year ago

Awesome idea! I will try to implement this in the near future.

Greetings Flo

FloSewn commented 1 year ago

Hey there,

I added the feature to read lists of vertices as boundary definitions in the newest release. You can check out the files "input/06_airfoil_from_csv.para" and "src/examples/06_airfoild_from_csv.cpp" to see how it works.

Thanks for mentioning your idea! :-)

Greetings Flo