Skip to content

Commit 404e5e1

Browse files
committed
Add note on pressure grad
1 parent 13e1124 commit 404e5e1

File tree

1 file changed

+3
-0
lines changed
  • channel-transport-particles/fluid-nutils

1 file changed

+3
-0
lines changed

channel-transport-particles/fluid-nutils/fluid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ def main():
112112

113113
velocity_values = gauss.eval(ns.u, **state)
114114
# COMMENT: here we would also need to write the pressure gradient to preCICE
115+
# Important note: OpenFOAM scales the pressue (and thereby also its gradient) by the fluid density, so we would
116+
# need to do the same scaling here. I set the fluid density to 1.2
115117
participant.write_data(mesh_name, data_name, vertex_ids, velocity_values)
118+
# rho_f = 1.2
116119
# participant.write_data(mesh_name, pressure_gradient_name, vertex_ids, pressure_gradient_values)
117120

118121
# do the coupling

0 commit comments

Comments
 (0)