Skip to content
Snippets Groups Projects
Commit de0442c6 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

fix dxyz in filename of add_mann_turbulence

parent 833d7ea5
No related branches found
No related tags found
1 merge request!301fix dxyz in filename of add_mann_turbulence
Pipeline #73021 passed
...@@ -55,7 +55,7 @@ class HTCDefaults(object): ...@@ -55,7 +55,7 @@ class HTCDefaults(object):
if filenames is None: if filenames is None:
import numpy as np import numpy as np
dxyz = tuple(np.array(box_dimension) / (np.array(no_grid_points) - 1)) dxyz = tuple(np.array(box_dimension) / np.array(no_grid_points))
from wetb.wind.turbulence import mann_turbulence from wetb.wind.turbulence import mann_turbulence
filenames = ["./turb/" + mann_turbulence.name_format % filenames = ["./turb/" + mann_turbulence.name_format %
((L, ae23, Gamma, high_frq_compensation) + no_grid_points + dxyz + (seed, uvw)) ((L, ae23, Gamma, high_frq_compensation) + no_grid_points + dxyz + (seed, uvw))
......
...@@ -159,9 +159,9 @@ class TestHtcFile(unittest.TestCase): ...@@ -159,9 +159,9 @@ class TestHtcFile(unittest.TestCase):
htcfile.add_mann_turbulence(30.1, 1.1, 3.3, 102, False) htcfile.add_mann_turbulence(30.1, 1.1, 3.3, 102, False)
s = """begin mann; s = """begin mann;
create_turb_parameters\t30.1 1.1 3.3 102 0;\tL, alfaeps, gamma, seed, highfrq compensation create_turb_parameters\t30.1 1.1 3.3 102 0;\tL, alfaeps, gamma, seed, highfrq compensation
filename_u\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.23x3.23_s0102u.turb; filename_u\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.12x3.12_s0102u.turb;
filename_v\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.23x3.23_s0102v.turb; filename_v\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.12x3.12_s0102v.turb;
filename_w\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.23x3.23_s0102w.turb; filename_w\t./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.12x3.12_s0102w.turb;
box_dim_u\t16384 0.3662; box_dim_u\t16384 0.3662;
box_dim_v\t32 3.125; box_dim_v\t32 3.125;
box_dim_w\t32 3.125;""" box_dim_w\t32 3.125;"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment