Skip to content

Commit be43b9b

Browse files
wallFunctions submodule updated (#217)
* wallFunctions submodule updated * update name wallfunction lib
1 parent aa47a9d commit be43b9b

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

TurbulenceModels/wallFunctions

Submodule wallFunctions updated 151 files

test-ci/1DBoundaryLayer/system/controlDict

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ maxAlphaCo 5;
5454
maxDeltaT 1e0;
5555

5656
libs (
57-
"libWilcoxOmegaWallFunction.so"
57+
"libroughWallFunctions.so"
5858
);
5959

6060
// ************************************************************************* //

test-ci/1DBoundaryLayer/test_1DBoundaryLayer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
import fluidfoam
66

77

8-
def rms(x):
9-
return np.sqrt(x.dot(x) / x.size)
8+
def rms(y, x):
9+
u = np.trapz(y**2, x)
10+
return np.sqrt(u / np.abs(x[-1]-x[0]))
1011

1112

1213
#
@@ -95,11 +96,11 @@ def rms(x):
9596
# zpprodDNS = npzfiles['arr_9']
9697

9798
u_interp = np.interp(zuw, z[:] / H, U[0, :] / Umax)
98-
rms_u = rms(u_interp - uw)
99+
rms_u = rms(u_interp[:-1] - uw[:-1], zuw[:-1])
99100
print("rms_u=", rms_u)
100101
assert rms_u <= 0.05
101102

102103
k_interp = np.interp(zkw, z[:] / H, k[:] / utau**2)
103-
rms_k = rms(k_interp - kw)
104+
rms_k = rms(k_interp[:-1] - kw[:-1], zkw[:-1])
104105
print("rms_k=", rms_k)
105106
assert rms_k <= 0.16

tutorials/RAS/1DBoundaryLayer/system/controlDict

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ maxAlphaCo 5;
5454
maxDeltaT 1e0;
5555

5656
libs (
57-
"libWilcoxOmegaWallFunction.so"
57+
"libroughWallFunctions.so"
5858
);
5959

6060
// ************************************************************************* //

tutorials/RAS/1DOscill/system/controlDict

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ maxDeltaT 5e-5;
5656
libs (
5757
"libgroovyBC.so"
5858
"libgroovyStandardBCs.so"
59-
"libWilcoxOmegaWallFunction.so"
59+
"libroughWallFunctions.so"
6060
);
6161

6262
// ************************************************************************* //

tutorials/RAS/2DChannel/system/controlDict

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ maxDeltaT 1e-3;
5656
libs (
5757
"libgroovyBC.so"
5858
"libgroovyStandardBCs.so"
59-
"libWilcoxOmegaWallFunction.so"
59+
"libroughWallFunctions.so"
6060
);
6161

6262
// ************************************************************************* //

0 commit comments

Comments
 (0)