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

Create Boundary Matrix B for Nordic TMI #170

Open
Xabier-Davila opened this issue Nov 14, 2024 · 1 comment
Open

Create Boundary Matrix B for Nordic TMI #170

Xabier-Davila opened this issue Nov 14, 2024 · 1 comment
Assignees

Comments

@Xabier-Davila
Copy link
Collaborator

Nordic TMI does not have a Boundary Matrix B

@Xabier-Davila Xabier-Davila self-assigned this Nov 14, 2024
@ggebbie
Copy link
Owner

ggebbie commented Nov 14, 2024

suggested design of code to accomplish this task

  1. Define boundary conditions using BoundaryCondition structure and boundarycondition.jl codes.
  2. Set all boundary conditions to one. There is something like "oneboundaryconditions" function in the code.
  3. Flatten the 3D field of ones on the boundary conditions into a vector.
  4. Search for indices where vector == 1. That's Brow.
  5. Bcol = 1:length(Brow)
  6. Consider whether you need a separate B matrix for each type (surface, south, north) of boundary condition.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants