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

class domain #2

Open
philippemiron opened this issue Nov 10, 2020 · 1 comment
Open

class domain #2

philippemiron opened this issue Nov 10, 2020 · 1 comment

Comments

@philippemiron
Copy link
Owner

The physical_space class should be designed to account for nonuniform grid. I plan to create a main class defining the needed function (create_grid() and find_element()) with subclasses for:

  • uniform grid
  • nonuniform in latitude
  • nonuniform in longitude
  • totally unstructured,

to account for the specific cases.

@philippemiron
Copy link
Owner Author

philippemiron commented Oct 11, 2021

  • hexagonal grid

    • find_element(): q = (sqrt(3)/3 * x - 1/3 * y) / s and r = (2/3 * y) / s are center for hexagon of size s.
  • Voronoi triangular grid

    • find element(): find the closest seed to a point (x,y), then the triangle in that Voronoi cell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant