-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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.
Please resolve conversations after implementing the changes. And please fix the tests. |
…mt, Formatierungen mit JuliaFormatter angepasst
There was a problem hiding this 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
.
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 |
There was a problem hiding this comment.
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:
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.