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

Boundaries with index-lists instead of masks #176

Open
PhiSpel opened this issue Aug 1, 2024 · 1 comment
Open

Boundaries with index-lists instead of masks #176

PhiSpel opened this issue Aug 1, 2024 · 1 comment
Assignees

Comments

@PhiSpel
Copy link
Contributor

PhiSpel commented Aug 1, 2024

As solids often only take up a fraction of the domain space, index-lists, i.e., sparse matrix representations, should free up a lot of memory and allow the IBB implementation to work better

@MaxBille
Copy link
Collaborator

MaxBille commented Aug 6, 2024

this also works for other (solid) boundaries. Especially Halfway Bounce Back also increases speed and reduces memory consumption by using batch-indices ("index-lists"). I'm thinking about replacing all boundary-masks with batch-indices of node coordinates or node-populations coordinates depending on domain-dimensions... or we could even make this adaptive, count the number of affected nodes or population, calculate it's sparse-storage requirements (with batch-indices) and compare it to a full mask.

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