Skip to content

Commit 32b2671

Browse files
authored
volume-coupled-flow: add y and z components in source term (#544)
1 parent 36f2019 commit 32b2671

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

changelog-entries/544.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fixed the [volume-coupled flow tutorial](https://precice.org/tutorials-volume-coupled-flow.html) to correctly assign all components of the read velocity field.

volume-coupled-flow/fluid-openfoam/constant/fvOptions

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ codedSource
2727
for(auto cell : cells)
2828
{
2929
fld[cell].x() = U_vol[cell].x();
30+
fld[cell].y() = U_vol[cell].y();
31+
fld[cell].z() = U_vol[cell].z();
3032
}
3133
#};
3234

@@ -39,4 +41,4 @@ codedSource
3941
#{
4042
return;
4143
#};
42-
}
44+
}
Loading

0 commit comments

Comments
 (0)