Skip to content

Re-extrapolate values for particles entering the inflow zone #764

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LasNikas
Copy link
Collaborator

No description provided.

@LasNikas LasNikas requested a review from svchb April 10, 2025 15:04
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 12.50000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 69.25%. Comparing base (cd617fe) to head (64ae36d).

Files with missing lines Patch % Lines
src/schemes/boundary/open_boundary/system.jl 6.66% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #764      +/-   ##
==========================================
- Coverage   69.36%   69.25%   -0.12%     
==========================================
  Files         100      100              
  Lines        6421     6433      +12     
==========================================
+ Hits         4454     4455       +1     
- Misses       1967     1978      +11     
Flag Coverage Δ
unit 69.25% <12.50%> (-0.12%) ⬇️

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.

Comment on lines +258 to +260
extrapolate_values!(system, v, v_fluid, u, u_fluid,
semi, t; particle_iterator=system.particle_iterator,
system.cache...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extrapolation is not correct results in 0 pressure

extrapolate_values!(system, v, v_fluid, u, u_fluid,
semi, t; particle_iterator=system.particle_iterator,
system.cache...)
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
end
for particle in system.particle_iterator
velocity = current_velocity(v, system, particle)
density = particle_density(v, system, particle)
pressure = particle_pressure(v, system, particle)
@info "Extrapolated velocity for particle $particle" velocity
@info "Extrapolated density for particle $particle" density
@info "Extrapolated pressure for particle $particle" pressure
end
end

Comment on lines +389 to +390
@inline function transfer_particle!(system_new::FluidSystem, system_old, particle_old,
v_new, u_new, v_old, u_old, ::InFlow)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
@inline function transfer_particle!(system_new::FluidSystem, system_old, particle_old,
v_new, u_new, v_old, u_old, ::InFlow)
@inline function transfer_particle!(system_new, system_old::FluidSystem, particle_old,
v_new, u_new, v_old, u_old, ::BoundaryZone{InFlow})

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