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
- we already have a unidirectional mesh-particle tracing [tutorial](https://precice.org/tutorials-channel-transport-particles.html). This scenario is also available in the [tutorials repository](https://github.com/precice/tutorials/tree/develop/channel-transport-particles) and couples Nutils with MercuryDPM
6
+
- the unidirectional tutorial only couples via the fluid velocity and should run out-of-the-box, use `setup-mercurydpm.sh` to run and compile the MercuryDPM participant
7
+
- the tutorial uses OpenFOAM or Nutils, and MercuryDPM
8
+
- all Nutils simulations use Nutils version 7
9
+
- the bidirectional scenario builds upon this tutorial case
10
+
11
+
## Before starting
12
+
13
+
- make sure you have the latest develop of preCICE
14
+
15
+
## The bidirectional coupling
16
+
17
+
- the bidirectional coupling is pull request [706](https://github.com/precice/tutorials/pull/706)
18
+
- from the [tutorials](https://github.com/precice/tutorials/tree/develop/channel-bidirectional), checkout the branch `channel-bidirectional` and navigate to `~/tutorials/channel-transport-particles/`
19
+
- run the `setup-mercurydpm.sh` script again (it checks out another branch for the solver)
20
+
- the overall setup is no too much physics-motivated, using the same boundary conditions leads to the following
# COMMENT: names of the new coupling data fields in the preCICE configuration. The velocity was already there before
72
+
solid_fraction_name="Alpha"
73
+
drag_force_name="ExplicitMomentum"
66
74
data_name="Velocity"
75
+
pressure_gradient_name="PressureGradientFull"
67
76
68
77
participant.initialize()
69
78
@@ -90,13 +99,21 @@ def main():
90
99
# potentially adjust non-matching timestep sizes
91
100
dt=min(solver_dt, precice_dt)
92
101
102
+
# COMMENT: here we would need to read the solid volume fraction and the drag force from preCICE and incorporate them into the weak form. The pressure gradient would also need to be written to preCICE, but let's start with the velocity first
103
+
# Note that the read_data call takes a dt argument, which is the relative read time. For Euler backwards, it would simply be dt
0 commit comments