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

Unit vectors are not defined as normals #193

Open
gthyagi opened this issue May 4, 2024 · 4 comments
Open

Unit vectors are not defined as normals #193

gthyagi opened this issue May 4, 2024 · 4 comments

Comments

@gthyagi
Copy link
Contributor

gthyagi commented May 4, 2024

Hi @lmoresi,

In the following snippet, normals are not defined:

class boundary_normals(Enum):

I have two questions regarding this
Q1) Is this necessary to define normals? Normals are defined for all other meshes.
Q2) Don't see where these boundary_normals are used in discretisation.py?

self.boundary_normals = boundary_normals

@lmoresi
Copy link
Member

lmoresi commented May 4, 2024 via email

@lmoresi
Copy link
Member

lmoresi commented May 26, 2024

Not sure about the title of this issue and what we want to do about this. @julesghub and I chatted about all things to do with boundaries and there is clear scope to make this less fragile.

@lmoresi
Copy link
Member

lmoresi commented Jun 4, 2024

I suggest that we insist on a python class of some kind for boundary conditions that has any additional information that we need for our purposes in UW. Rather than mesh.boundaries.Upper.name, we just pass in the mesh.boundaries.Upper boundary to our routines.

This class could also contain boundary normals (if analytic functions are available) and UW would fall back to the PETSc ones otherwise.

@gthyagi
Copy link
Contributor Author

gthyagi commented Jun 4, 2024

Agree

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

2 participants