You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+23
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,29 @@
3
3
TrixiParticles.jl follows the interpretation of [semantic versioning (semver)](https://julialang.github.io/Pkg.jl/dev/compatibility/#Version-specifier-format-1)
4
4
used in the Julia ecosystem. Notable changes will be documented in this file for human readability.
5
5
6
+
## Version 0.2.7
7
+
8
+
### Features
9
+
10
+
- Adds the classic **Continuum Surface Force (CSF)** model based on Morris 2000 (#584), which computes
11
+
surface tension as a **body force** proportional to curvature and directed along the interface normal.
12
+
This method is efficient and accurate for capillary effects but does not explicitly conserve momentum.
13
+
14
+
- Added the classic **Continuum Surface Stress (CSS)** model based on Morris 2000 (#584), which is
15
+
a **momentum-conserving** approach that formulates surface tension as the **divergence of a stress tensor**.
16
+
However, it requires additional computation and stabilization to handle **high-density interfaces** and reduce numerical instabilities.
17
+
18
+
- Implement `BoundaryZone` to allow for bidirectional flow (#623)
Copy file name to clipboardExpand all lines: docs/src/systems/fluid.md
+180-32
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,22 @@
1
+
1
2
# [Fluid Models](@id fluid_models)
2
-
Currently available fluid methods are the [weakly compressible SPH method](@ref wcsph) and the [entropically damped artificial compressibility for SPH](@ref edac).
3
+
4
+
Currently available fluid methods are the [weakly compressible SPH method](@ref wcsph) and the
5
+
[entropically damped artificial compressibility for SPH](@ref edac).
3
6
This page lists models and techniques that apply to both of these methods.
4
7
5
8
## [Viscosity](@id viscosity_wcsph)
6
9
7
-
TODO: Explain viscosity.
10
+
Viscosity is a critical physical property governing momentum diffusion within a fluid.
11
+
In the context of SPH, viscosity determines how rapidly velocity gradients are smoothed out,
12
+
influencing key flow characteristics such as boundary layer formation, vorticity diffusion,
13
+
and dissipation of kinetic energy. It also helps determine whether a flow is laminar or turbulent
14
+
under a given set of conditions.
15
+
16
+
Implementing viscosity correctly in SPH is essential for producing physically accurate results,
17
+
and different methods exist to capture both numerical stabilization and true viscous effects.
18
+
19
+
### API
8
20
9
21
```@autodocs
10
22
Modules = [TrixiParticles]
@@ -18,71 +30,207 @@ Modules = [TrixiParticles]
18
30
Pages = [joinpath("general", "corrections.jl")]
19
31
```
20
32
21
-
33
+
---
22
34
23
35
## [Surface Normals](@id surface_normal)
36
+
37
+
### Overview of surface normal calculation in SPH
38
+
39
+
Surface normals are essential for modeling surface tension as they provide the directionality
40
+
of forces acting at the fluid interface. They are calculated based on the particle properties and
41
+
their spatial distribution.
42
+
43
+
#### Color field and gradient-based surface normals
44
+
45
+
The surface normal at a particle is derived from the color field, a scalar field assigned to particles
46
+
to distinguish between different fluid phases or between fluid and air. The color field gradients point
47
+
towards the interface, and the normalized gradient defines the surface normal direction.
48
+
49
+
The simplest SPH formulation for a surface normal, ``n_a`` is given as
### Akinci-based intra-particle force surface tension and wall adhesion model
32
-
The work by Akinci proposes three forces:
33
-
- a cohesion force
34
-
- a surface area minimization force
35
-
- a wall adhesion force
87
+
## [Surface Tension](@id surface_tension)
36
88
37
-
The classical model is composed of the curvature minimization and cohesion force.
89
+
Surface tension is a key phenomenon in fluid dynamics, influencing the behavior of droplets, bubbles, and fluid interfaces.
90
+
In SPH, surface tension is modeled as forces arising due to surface curvature and relative particle movement, ensuring realistic
91
+
simulation of capillary effects, droplet coalescence, and fragmentation.
92
+
93
+
The surface tension coefficient ``\sigma`` is a physical parameter that quantifies the energy required to increase the surface area
94
+
of a fluid by a unit amount. A higher value of ``\sigma`` indicates that the fluid resists changes to its surface area more strongly,
95
+
causing droplets or bubbles to assume shapes (often spherical) that minimize their surface. In practice, ``\sigma`` can be measured
96
+
experimentally through techniques such as the pendant drop method, the Wilhelmy plate method, or the du Noüy ring method,
97
+
each of which relates a measurable force or change in shape to the fluid’s surface tension. For pure substances,
98
+
tabulated reference values of ``\sigma`` at given temperatures are commonly used, while for mixtures or complex fluids,
99
+
direct experimental measurements or values can be estimated from empirical equation (see [Poling](@cite Poling2001) or [Lange](@cite Lange2005)).
100
+
In the following table some values are shown for reference. The values marked with a '~' are complex mixtures that are estimated by an empirical equation (see [Poling](@cite Poling2001)).
101
+
102
+
|**Fluid**|**Surface Tension (``\sigma``) [N/m at 20°C]**|
The method described by [Morris](@cite Morris2000) estimates curvature by combining particle color gradients (see [`surface_normal`](@ref)) and smoothing functions to derive surface normals.
179
+
The computed curvature is then used to determine forces acting perpendicular to the interface.
180
+
While this method provides accurate surface tension forces, it does not explicitly conserve momentum.
181
+
182
+
In the Morris model, surface tension is computed based on local interface curvature ``\kappa`` and the unit surface normal ``\hat{n}.``
183
+
By estimating ``\hat{n}`` and ``\kappa`` at each particle near the interface, the surface tension force for particle a can be written as:
This formulation focuses directly on geometric properties of the interface, making it relatively straightforward to implement when a reliable interface detection
190
+
(e.g., a color function) is available. However, accurately estimating ``\kappa`` and ``n`` may require fine resolutions.
0 commit comments