Skip to content

Combine PST and TVF into a unified framework#884

Merged
svchb merged 13 commits intotrixi-framework:devfrom
efaulhaber:revise-pst
Aug 26, 2025
Merged

Combine PST and TVF into a unified framework#884
svchb merged 13 commits intotrixi-framework:devfrom
efaulhaber:revise-pst

Conversation

@efaulhaber
Copy link
Copy Markdown
Member

@efaulhaber efaulhaber commented Aug 17, 2025

Based on #882 and #883.

@efaulhaber efaulhaber changed the base branch from main to dev August 17, 2025 12:02
@efaulhaber efaulhaber self-assigned this Aug 17, 2025
@efaulhaber efaulhaber added the breaking changes This change will break the public API and requires a new major release label Aug 17, 2025
@efaulhaber efaulhaber mentioned this pull request Aug 17, 2025
7 tasks
@efaulhaber efaulhaber changed the base branch from dev to main August 17, 2025 12:09
@efaulhaber efaulhaber changed the base branch from main to dev August 17, 2025 12:09
Comment on lines +161 to +164
An alternative formulation is the so-called Transport Velocity Formulation (TVF)
by [Adami (2013)](@cite Adami2013).
[Ramachandran (2019)](@cite Ramachandran2019) applied the TVF also for the [EDAC](@ref edac)
scheme.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note that I just copied this section over from EDAC and changed this first paragraph. The rest of the section is unchanged, except for changes like "right hand side" to "right-hand side" and "time-step" to "time step".

Comment on lines +210 to +212
with the density ``\rho_a``, ``\rho_b`` and the pressure ``p_a``, ``p_b`` of particles ``a``
and ``b``, respectively. ``\bm{A}_a`` and ``\bm{A}_b`` are the convection tensors
for particle ``a`` and ``b``, respectively, and are given, e.g., for particle ``a``,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

And I added a few commas here.

for particle ``a`` and ``b``, respectively, and are given, e.g., for particle ``a``,
as ``\bm{A}_a = \rho v_a\left(\tilde{v}_a-v_a\right)^T``.

To apply the TVF, use the keyword argument `shifting_technique` in the constructor
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is new.

@efaulhaber efaulhaber changed the base branch from dev to main August 17, 2025 13:43
@efaulhaber efaulhaber closed this Aug 17, 2025
@efaulhaber efaulhaber reopened this Aug 17, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 17, 2025

Codecov Report

❌ Patch coverage is 16.52174% with 96 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.26%. Comparing base (38f5f07) to head (844145e).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
src/schemes/fluid/shifting_techniques.jl 11.57% 84 Missing ⚠️
src/callbacks/update.jl 0.00% 11 Missing ⚠️
...rc/schemes/fluid/entropically_damped_sph/system.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #884      +/-   ##
==========================================
+ Coverage   71.16%   71.26%   +0.10%     
==========================================
  Files         107      106       -1     
  Lines        7005     6996       -9     
==========================================
+ Hits         4985     4986       +1     
+ Misses       2020     2010      -10     
Flag Coverage Δ
unit 71.26% <16.52%> (+0.10%) ⬆️

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.

@efaulhaber efaulhaber force-pushed the revise-pst branch 2 times, most recently from 51270d9 to a118d24 Compare August 26, 2025 09:57
@efaulhaber efaulhaber changed the base branch from main to dev August 26, 2025 09:58
@efaulhaber efaulhaber marked this pull request as ready for review August 26, 2025 10:14
@efaulhaber efaulhaber requested review from LasNikas and svchb August 26, 2025 10:14
@svchb svchb merged commit b9d091c into trixi-framework:dev Aug 26, 2025
12 of 13 checks passed
LasNikas pushed a commit that referenced this pull request Aug 26, 2025
* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file
@efaulhaber efaulhaber deleted the revise-pst branch August 26, 2025 14:25
LasNikas pushed a commit that referenced this pull request Aug 27, 2025
* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file
LasNikas pushed a commit that referenced this pull request Sep 2, 2025
* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file
efaulhaber added a commit that referenced this pull request Sep 4, 2025
* add dvu_ode vector to custom quantities

* add for fluid and boundary

* fix tests

* fix tests

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Combine PST and TVF into a unified framework (#884)

* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Combine PST and TVF into a unified framework (#884)

* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file

* fix tests

* fix doctests

* implement suggestions

* fix tests

* fix tests

* implement suggestions

* fix

* fix

---------

Co-authored-by: LasNikas <niklas.nehe@web.de>
Co-authored-by: Sven Berger <berger.sven@gmail.com>
Co-authored-by: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com>
efaulhaber added a commit that referenced this pull request Sep 8, 2025
* swap extrapolation

* swap density pressure

* adapt docs

* rm example

* fix missing nhs update

* implement different mirror methods

* add docs

* fix tests

* fix typos

* add docs

* add tests

* apply formatter

* add `average_velocity!` for `BoundaryModelLastiwka`

* fix

* add interpolation functions

* restructure again

* fix gpu bugs

* remove unnecessary argument

* fix gpu again

* fix gpu

* implement suggestions

* fix

* add comments

* implement suggestions

* first prototype: NOT VALIDATED YET

* fix avg vel in LastiwkaModel

* fix avg in mirroring

* fix tests

* adapt example file

* fix allocations

* fix gpu

* first GPU working prototype

* improve API

* fix tests

* rm export

* fix

* fix type stability

* implement suggestions

* rm ref

* format

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* fix merge bugs

* supersede #852

* supersede #850

* fix

* rename boundary models

* fix?

* fix tests

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* fix characteristics

* revise pipe flow example

* fix include bug

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Combine PST and TVF into a unified framework (#884)

* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file

* add doc strings

* implement suggestions

* remove duplicated system

* rm unnecessary variable

* apply formatter

* set pressure for WCSPH

* setter for open boundary

* rename reference values

* fix gpu tests

* fix sign

* implement suggestions

* fix unit tests

* revise doc strings

* add NEWS entry

* update NEWS

---------

Co-authored-by: LasNikas <niklas.nehe@web.de>
Co-authored-by: Sven Berger <berger.sven@gmail.com>
Co-authored-by: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com>
svchb added a commit that referenced this pull request Sep 12, 2025
* Integrate write2json for initial metadata export

* Remove old `write_meta_data` parameter from VTK writing functions and callbacks

* Add `solver_name` to metadata and format files

* update `write2json.jl` to match merge

* rename file

* update references

* rename function

* Refactor write2vtk!

* formatting

* refactor functions

* implement suggestions

* fix bugs

* add add_meta_data! function for `system::ParticlePackingSystem`

* relocate `add_meta_data!` to `system.jl`

* formatting

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* dispatch `FluidSystem`

* Write one unified metadata file for all systems

* improve JSON-file structure

* improve consistency

* Enhance structure of the JSON-File

* Fix `rho0` in `AkinciFreeSurfaceCorrection`

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Refactor metadata handling

* Add settable filename

* Add filename display to SolutionSavingCallback output

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* add function for `ParticlePackingSystem`

* improve structure

* Formatting Code

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* fix failing tests

* Rename 'tlsph' to 'place_on_shell' (#814)

* rename

* format

* forgot some

* format

* naming

* forgot some more

* fix test

* incorporate review comments

* format

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>

* Combine PST and TVF into a unified framework (#884)

* Combine PST and TVF into a unified framework

* Require update callback for PST

* Fix WCSPH

* Update PST only in callback

* Fix EDAC

* Update docs

* Fix alle example files

* Fix tests

* Fix periodic channel

* Fix docs

* Update news

* Fix tests

* Fix example file

* improve structure and fixing problems

* add `shifting_technique` to `io.jl`

* change filename of the JSON-File

* add suggestions

* Enhance data handling for `OpenBoundarySPHSystem`

* correct formatting issue

* Remove autoinfiltrate

* rename `number_of_threads`

---------

Co-authored-by: Niklas Neher <73897120+LasNikas@users.noreply.github.com>
Co-authored-by: Sven Berger <berger.sven@gmail.com>
Co-authored-by: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes This change will break the public API and requires a new major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants