Skip to content

Compute Normal Vectors for Boundary Particles#1036

Draft
RubberLanding wants to merge 17 commits intotrixi-framework:mainfrom
RubberLanding:BoundaryNormals
Draft

Compute Normal Vectors for Boundary Particles#1036
RubberLanding wants to merge 17 commits intotrixi-framework:mainfrom
RubberLanding:BoundaryNormals

Conversation

@RubberLanding
Copy link
Contributor

Compute Normal Vectors for Boundary Particles. Used in the Boundary Condition by Marrone et al.

…kThe normals are not yet computed fot corner particles.
Fix for the offset of the boundary normals.
…l cache.

Create cache for Marrone.
Rename the cache creation functions to be self-explanatory.
Add `particle_volume` argument to `compute_wall_velocity()`.
Add test for normals in 3D.
Update code for computing the normals for a sphere.
Add wrapper for InitialCondition again.
Formatting.
@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 99.02280% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.66%. Comparing base (9b9efbe) to head (b36c4ba).

Files with missing lines Patch % Lines
src/setups/rectangular_tank.jl 99.29% 2 Missing ⚠️
src/general/initial_condition.jl 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1036      +/-   ##
==========================================
+ Coverage   89.38%   89.66%   +0.27%     
==========================================
  Files         121      121              
  Lines        8890     9159     +269     
==========================================
+ Hits         7946     8212     +266     
- Misses        944      947       +3     
Flag Coverage Δ
total 89.66% <99.02%> (+0.27%) ⬆️
unit 66.35% <98.69%> (+0.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RubberLanding
Copy link
Contributor Author

@efaulhaber Have a look please

Copy link
Member

@efaulhaber efaulhaber left a comment

Choose a reason for hiding this comment

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

I haven't looked at the rectangular tank stuff yet.

@efaulhaber efaulhaber added the enhancement New feature or request label Jan 7, 2026
Rename `compute_normals()`  to `calculate_normals()`.
Remove argument, whether to compute the normals for spheres and rectangular tanks (always gets computed),
Add placeholder tests for sphere normals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants