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

Add damping force and allow selecting the faces to create for the rectangular setup #41

Merged
merged 59 commits into from
Jan 14, 2023

Conversation

svchb
Copy link
Collaborator

@svchb svchb commented Jan 4, 2023

  • Add simple damping force term to accelerate getting to an initial at rest state
  • Allow selecting the faces that are created for the "rectangular tank setup"

@svchb svchb requested a review from efaulhaber January 5, 2023 20:05
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.

Thanks a lot for this! Faster relaxing is definitely helpful, especially with higher fluid resolutions. The faces are great for more flexibility.

examples/fluid/dam_break_2d.jl Outdated Show resolved Hide resolved
examples/fluid/dam_break_2d.jl Outdated Show resolved Hide resolved
examples/fluid/dam_break_2d.jl Outdated Show resolved Hide resolved
examples/fluid/dam_break_2d.jl Outdated Show resolved Hide resolved
examples/fluid/dam_break_3d.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
src/containers/fluid_container.jl Outdated Show resolved Hide resolved
src/setups/rectangular_tank.jl Outdated Show resolved Hide resolved
src/setups/rectangular_tank.jl Outdated Show resolved Hide resolved
src/util.jl Outdated Show resolved Hide resolved
@efaulhaber
Copy link
Member

efaulhaber commented Jan 6, 2023

I just checked, and I can't see any difference with and without relaxing. Am I doing something wrong?

Edit: Now, I tried a very large coefficient of 100.0, and it worked pretty nicely. In the relaxing step, the water immediately freezes in a position where it doesn't bounce when I restart the dam break without damping. That's really cool!

src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
src/setups/rectangular_tank.jl Outdated Show resolved Hide resolved
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.

Some more minor remarks.

examples/fluid/dam_break_3d.jl Show resolved Hide resolved
examples/fluid/falling_water_column_2d.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
@efaulhaber
Copy link
Member

The tank looks like this now with different faces missing. There are no overlapping particles.
image
image
image
image
image
image
image
image
image
image
image
image

@efaulhaber efaulhaber closed this Jan 12, 2023
@efaulhaber efaulhaber reopened this Jan 12, 2023
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.

Just one more minor detail, then we're ready to merge.

src/semidiscretization/semidiscretization.jl Outdated Show resolved Hide resolved
efaulhaber
efaulhaber previously approved these changes Jan 13, 2023
@svchb svchb merged commit 2ed2e49 into trixi-framework:main Jan 14, 2023
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.

4 participants