Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to build the data for 2D unstructured mesh object #33

Merged

Conversation

yungyuc
Copy link
Member

@yungyuc yungyuc commented Dec 26, 2021

Progress:

  1. [checkin cc85814] Create a simple test function for the object creation. Copy the code from https://github.com/solvcon/solvcon/blob/8dd74fa848b8d14d7796138ce199d0ae2e70235f/solvcon/testing.py#L78
  2. [checkin 8d702eb] Port build_faces_from_cells() from SOLVCON. Copy the code from https://github.com/solvcon/solvcon/blob/8dd74fa848b8d14d7796138ce199d0ae2e70235f/libmarch/include/march/mesh/UnstructuredBlock/build_faces_from_cells.hpp. Only tested with a trivial 2D mesh.
  3. [checkin c6aeae9] Port calc_metric() from SOLVCON. Copy the code from https://github.com/solvcon/solvcon/blob/8dd74fa848b8d14d7796138ce199d0ae2e70235f/libmarch/include/march/mesh/UnstructuredBlock/calc_metric.hpp. Only tested with a trivial 2D mesh.
  4. [checkin 7e2d9e7] Port build_boundary() from SOLVCON. Copy the code from https://github.com/solvcon/solvcon/blob/8dd74fa848b8d14d7796138ce199d0ae2e70235f/libmarch/include/march/mesh/UnstructuredBlock/class.hpp#L388. Only tested with a trivial 2D mesh.
  5. [checkin adb8d3b] Port build_ghost() from SOLVCON. Copy the code from https://github.com/solvcon/solvcon/blob/8dd74fa848b8d14d7796138ce199d0ae2e70235f/libmarch/include/march/mesh/UnstructuredBlock/class.hpp#L312. Only tested with a trivial 2D mesh.

… object

This is the first step: Create a simple test function for the object creation.
@yungyuc yungyuc added the enhancement New feature or request label Dec 26, 2021
@yungyuc yungyuc self-assigned this Dec 26, 2021
@yungyuc yungyuc moved this from todo to inprogress in Support multi-dimensional unstructured mesh Dec 26, 2021
@yungyuc yungyuc changed the title Start the work to add code to build the data for 2D unstructured mesh object Add code to build the data for 2D unstructured mesh object Dec 26, 2021
@yungyuc yungyuc mentioned this pull request Dec 28, 2021
Note that the cell type ID is augmented by 1 (the valid type ID started from 0 in SOLVCON, but now it starts from 1 in modmesh).  Use of 1-based index leaves 0 to be the invalid sentinel for the type ID in modmesh.

Use the trivial triangle unit tests for build_faces_from_cells().
@yungyuc yungyuc marked this pull request as ready for review January 1, 2022 12:21
@yungyuc yungyuc merged commit c67fa51 into solvcon:project/ustmesh Jan 1, 2022
Support multi-dimensional unstructured mesh automation moved this from doing to done Jan 1, 2022
@yungyuc yungyuc deleted the feature/2d-trivial-triangles branch January 1, 2022 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant