Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
de0442c6
Commit
de0442c6
authored
3 weeks ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
fix dxyz in filename of add_mann_turbulence
parent
833d7ea5
No related branches found
No related tags found
1 merge request
!301
fix dxyz in filename of add_mann_turbulence
Pipeline
#73021
passed
3 weeks ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wetb/hawc2/htc_extensions.py
+1
-1
1 addition, 1 deletion
wetb/hawc2/htc_extensions.py
wetb/hawc2/tests/test_htc_file.py
+3
-3
3 additions, 3 deletions
wetb/hawc2/tests/test_htc_file.py
with
4 additions
and
4 deletions
wetb/hawc2/htc_extensions.py
+
1
−
1
View file @
de0442c6
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
wetb/hawc2/tests/test_htc_file.py
+
3
−
3
View file @
de0442c6
...
@@ -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
\t
30.1 1.1 3.3 102 0;
\t
L, alfaeps, gamma, seed, highfrq compensation
create_turb_parameters
\t
30.1 1.1 3.3 102 0;
\t
L, alfaeps, gamma, seed, highfrq compensation
filename_u
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.2
3
x3.2
3
_s0102u.turb;
filename_u
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.
1
2x3.
1
2_s0102u.turb;
filename_v
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.2
3
x3.2
3
_s0102v.turb;
filename_v
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.
1
2x3.
1
2_s0102v.turb;
filename_w
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.2
3
x3.2
3
_s0102w.turb;
filename_w
\t
./turb/mann_l30.1_ae1.1000_g3.3_h0_16384x32x32_0.366x3.
1
2x3.
1
2_s0102w.turb;
box_dim_u
\t
16384 0.3662;
box_dim_u
\t
16384 0.3662;
box_dim_v
\t
32 3.125;
box_dim_v
\t
32 3.125;
box_dim_w
\t
32 3.125;
"""
box_dim_w
\t
32 3.125;
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment