Skip to content

3-d slab implementations using contours #910

@lhy11009

Description

@lhy11009

@MFraters @danieldouglas92 @alarshi I think this is coming together. I'll use the issue to discuss the key technical steps for the implementation.

The problem is, we are given a slab surface described by depth contours. So each contour is a given depth and composed of a list of points by x and y coordinates. And then we want to query for a mesh in the model domain, for each point in the mesh, figuring out the nearest point on the surface, and the distance of the nearest point from the trench (the contour at 0 depth).

I am basically done with the Python implementation. I don't guarantee this works for every scenario. But it could already handle some sort of complexities.

To move forward, it would be helpful for us to take a look at the steps and their results and provide me with some feedback on:

  1. Whether some of the steps could be simplified, or if there is a better approach.
  2. Are there any complexities that cannot be handled by these steps?
  3. Suggest other test contours or query points?

Also, feel free to take a direct look at the jupyter notebook:
https://github.com/lhy11009/HaMaGeoLib/blob/main/notebooks/experiments/code_implementation/WBContour.ipynb
This could be run by setting the local_dir to one of your system paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions