Skip to content

Add Sources Module#1

Merged
lispandfound merged 15 commits intomainfrom
sources
Jul 17, 2024
Merged

Add Sources Module#1
lispandfound merged 15 commits intomainfrom
sources

Conversation

@lispandfound
Copy link
Copy Markdown
Contributor

Adds the inaugural sources module to source_modelling repo.

Copy link
Copy Markdown
Contributor

@AndrewRidden-Harper AndrewRidden-Harper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I didn't explicitly check any maths but didn't see any obvious problems when I glanced over it. Let me know if a more detailed check of the maths would be useful

source_b_global_coordinates = (
source_b.fault_coordinates_to_wgs_depth_coordinates(fault_coordinates[2:])
)
return coordinates.distance_between_wgs_depth_coordinates(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a function that either needs to be in qcore or I can copy it into this repo. I think a distance function between coordinates (like ll_dist but vectorised, more accurate, etc) is probably welcome in qcore?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this could be welcomed into qcore if it's going to be used in multiple repos

wiki/Sources.md Outdated
2. **Plane Geometry**: This a 2-dimensional source geometry consisting of a single plane. The extents of the geometry are its corners. The `qcore.sources` module uses the `Plane` class to model single plane geometry.
3. **Multi-Planar Geometry**: This is a 2-dimensional source geometry consisting of a number of connected planes. The extents of the geometry are the corners of the end fault planes. The `qcore.sources` module uses the `Fault` class to model multi-planar geometry.

Type-I fault are an instance of the the first geometry, type-2 faults
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type-1 (sorry, nitpicking!!)

@lispandfound lispandfound requested a review from joelridden July 3, 2024 04:29
Copy link
Copy Markdown
Contributor

@AndrewRidden-Harper AndrewRidden-Harper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice updates

@lispandfound lispandfound merged commit e115b7b into main Jul 17, 2024
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

Successfully merging this pull request may close these issues.

4 participants