Repository navigation
Use boundary-model kernel to calculate the FSI pressure when a correction method is used - #1342
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1342 +/- ##
==========================================
+ Coverage 79.67% 80.08% +0.40%
==========================================
Files 145 147 +2
Lines 11037 11061 +24
==========================================
+ Hits 8794 8858 +64
+ Misses 2243 2203 -40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
19cf836 to
4a97b62
Compare
…rnels' into fix/fsi-hydrodynamic-boundary-kernels
efaulhaber
left a comment
There was a problem hiding this comment.
I am a bit overwhelmed by the changes and tests here, as there are too many things happening at once in this single PR. Please split future PRs if they need three NEWS.md entries.
Is there now a test that verifies that FSI is not using the TLSPH kernel? Is that checked in "Boundary kernel in pressure acceleration with corrected gradients"?
Yes, this is checked in “Boundary kernel in pressure acceleration with corrected gradients”. |
…ings - Temporarily require `correction=nothing` for the `BoundaryModelDummyParticles` of a `TotalLagrangianSPHSystem` or `RigidBodySystem`. Their correction values require the complete current hydrodynamic neighborhood, which is added in #1351. - Assemble the renormalized density gradient of `DensityDiffusionAntuono` from the uncorrected kernel gradient instead of the corrected fluid gradient, whose correction values are not computed yet when the density diffusion is updated. - Allocate the dummy-particle correction caches with the element type of the density. - Compute the kernel gradient of the boundary model once for the pressure acceleration and the continuity equation in the structure-fluid interaction. - Define `system_correction` for `BoundaryModelDummyParticles` instead of a custom `smoothing_kernel_grad` method, so that the safe and unsafe gradients are consistent.
|
/run-gpu-tests |
Summary
Fix the pressure acceleration between fluids with an asymmetric corrected kernel gradient
(
KernelCorrection,GradientCorrection,BlendedGradientCorrection,MixedKernelGradientCorrection) andTotalLagrangianSPHSystems orRigidBodySystems withBoundaryModelDummyParticles.length of the boundary model instead of the TLSPH kernel for solid mechanics. With a
smaller TLSPH support, the boundary contribution was missing. For a fluid layer with
uniform pressure on a TLSPH plate with half the support, the load was 0.67 instead of
0.98 of the continuum value.
GradientCorrectionandBlendedGradientCorrection. It used the corrected kernel gradient, i.e., multiplied eachgradient with the matrix that was being assembled. As a result,
GradientCorrectionhadno effect and
BlendedGradientCorrectiondepended on the order of the neighbors.Results with these corrections change.
DensityDiffusionAntuononow uses the uncorrected kernel gradient for the renormalizeddensity gradient, as documented. It used the corrected kernel gradient of the fluid,
whose correction values are only computed after the density diffusion in each update,
i.e., they were from the previous update and uninitialized in the first one.
Temporary restriction
For now, the
correctionof theBoundaryModelDummyParticlesof a TLSPH system or rigidbody must be
nothing. The correction values of these boundary particles are sums overtheir complete hydrodynamic neighborhood in the current configuration, including the
particles of the structure itself. The neighborhood searches of structures don't provide
this neighborhood: the TLSPH self-interaction search is frozen in the initial configuration
and uses the TLSPH kernel, and rigid bodies only search for contact. Without complete
neighborhoods, these corrections changed the pressure load on a structure by factors
between 0.5 and 2. On
main, they were ignored or failed with an error.#1351 adds these neighborhoods and lifts the restriction.
Performance
GradientCorrectionis about 15% faster, since the assembly nolonger multiplies every kernel gradient with a matrix.
once for the pressure acceleration and the continuity equation.
BoundaryModelDummyParticlesnow use the element type of thedensity instead of always
Float64, so thatFloat32simulations don't mix inFloat64.Further changes
system_correction(::BoundaryModelDummyParticles)replaces a customsmoothing_kernel_gradmethod for boundary models, so that
smoothing_kernel_gradandsmoothing_kernel_grad_unsafeof a boundary model are consistent.with
GradientCorrectionandBlendedGradientCorrectionchange.Tests
calculation with cubic-spline values. The fluid particles are inside the support of the
boundary model, but outside the support of the TLSPH kernel, so using the TLSPH kernel
fails this test.
GradientCorrectionandBlendedGradientCorrectionagainstanalytical values.
DensityDiffusionAntuonois independent of the fluid correction (fails without the fix).Float32correction caches ofBoundaryModelDummyParticles.Semidiscretization.Validation
On Julia 1.11.9 with 2 threads:
dam_break_2d.jlwith all corrections: 36/36 passed.hydrostatic water column with WCSPH and EDAC, falling rotating rigid squares):
12/12 passed.
Stack
restriction, based on Fix precomputed-search capacity for unequal particle counts #1350.