Skip to content

IISPH (Masterarbeit Noah) #751

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

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

noahstruschka
Copy link

No description provided.

@efaulhaber efaulhaber marked this pull request as draft April 7, 2025 09:39
@noahstruschka noahstruschka requested a review from efaulhaber May 27, 2025 12:46
@efaulhaber efaulhaber marked this pull request as ready for review May 28, 2025 10:04
Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 11.32812% with 227 lines in your changes missing coverage. Please review.

Project coverage is 68.43%. Comparing base (114a57b) to head (c007f16).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...chemes/fluid/implicit_incompressible_sph/system.jl 11.60% 198 Missing ⚠️
...c/schemes/fluid/implicit_incompressible_sph/rhs.jl 0.00% 18 Missing ⚠️
src/general/semidiscretization.jl 28.57% 5 Missing ⚠️
test/systems/iisph_system.jl 0.00% 5 Missing ⚠️
src/io/write_vtk.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #751      +/-   ##
==========================================
- Coverage   70.60%   68.43%   -2.17%     
==========================================
  Files         106      109       +3     
  Lines        6769     7023     +254     
==========================================
+ Hits         4779     4806      +27     
- Misses       1990     2217     +227     
Flag Coverage Δ
unit 68.43% <11.32%> (-2.17%) ⬇️

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.

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 docs and system.jl yet. I will do that in the next review to keep the reviews small. Please first incorporate these changes.

Also, please resolve open conversations after implementing the changes.

@noahstruschka noahstruschka requested a review from efaulhaber May 30, 2025 12:49
@efaulhaber
Copy link
Member

Please resolve conversations after implementing the changes. And please fix the tests.

@noahstruschka noahstruschka requested a review from efaulhaber June 14, 2025 16:17
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.

Review of the first half of system.jl.

Comment on lines 193 to 209
function initial_smoothing_length(system::ImplicitIncompressibleSPHSystem, ::Nothing)
system.smoothing_length
end

function smoothing_length(system::ImplicitIncompressibleSPHSystem, particle)
return system.smoothing_length
end

@inline each_moving_particle(system::ImplicitIncompressibleSPHSystem) = Base.OneTo(n_moving_particles(system))
@inline active_coordinates(u,
system::ImplicitIncompressibleSPHSystem) = current_coordinates(u,
system)
@inline active_particles(system::ImplicitIncompressibleSPHSystem) = eachparticle(system)

@inline function surface_tension_model(system::ImplicitIncompressibleSPHSystem)
return nothing
end
Copy link
Member

Choose a reason for hiding this comment

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

I think all of these are the default. You only need this:

Suggested change
function initial_smoothing_length(system::ImplicitIncompressibleSPHSystem, ::Nothing)
system.smoothing_length
end
function smoothing_length(system::ImplicitIncompressibleSPHSystem, particle)
return system.smoothing_length
end
@inline each_moving_particle(system::ImplicitIncompressibleSPHSystem) = Base.OneTo(n_moving_particles(system))
@inline active_coordinates(u,
system::ImplicitIncompressibleSPHSystem) = current_coordinates(u,
system)
@inline active_particles(system::ImplicitIncompressibleSPHSystem) = eachparticle(system)
@inline function surface_tension_model(system::ImplicitIncompressibleSPHSystem)
return nothing
end
@inline function active_coordinates(u, system::ImplicitIncompressibleSPHSystem)
# No buffer -> `nothing`
return active_coordinates(u, system, nothing)
end

Copy link
Author

Choose a reason for hiding this comment

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

We need them because the default return "system.cache.smoothing_length", but we do not have a cache.

Copy link
Author

Choose a reason for hiding this comment

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

Or they are using the buffer, that we also don't have in IISPH

@noahstruschka noahstruschka requested a review from efaulhaber June 17, 2025 10:48
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.

2 participants