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
2a758935
There was a problem fetching the pipeline summary.
Commit
2a758935
authored
7 years ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
test fixes
parent
35bee260
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wetb/hawc2/tests/test_files/at_time/test_rotor_name_null.dat
+0
-0
0 additions, 0 deletions
wetb/hawc2/tests/test_files/at_time/test_rotor_name_null.dat
wetb/hawc2/tests/test_htc_file.py
+8
-9
8 additions, 9 deletions
wetb/hawc2/tests/test_htc_file.py
with
8 additions
and
9 deletions
wetb/hawc2/tests/test_files/at_time/test_rotor_name_null.dat
0 → 100644
+
0
−
0
View file @
2a758935
File added
This diff is collapsed.
Click to expand it.
wetb/hawc2/tests/test_htc_file.py
+
8
−
9
View file @
2a758935
...
...
@@ -148,13 +148,12 @@ class TestHtcFile(unittest.TestCase):
htcfile
.
add_mann_turbulence
(
30.1
,
1.1
,
3.3
,
102
,
False
)
s
=
"""
begin mann;
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.10_g3.3_h0_
4096
x32x32_
1.465
x3.12x3.12_s0102u.turb;
filename_v
\t
./turb/mann_l30.1_ae1.10_g3.3_h0_
4096
x32x32_
1.465
x3.12x3.12_s0102v.turb;
filename_w
\t
./turb/mann_l30.1_ae1.10_g3.3_h0_
4096
x32x32_
1.465
x3.12x3.12_s0102w.turb;
box_dim_u
\t
4096 1.465
2;
filename_u
\t
./turb/mann_l30.1_ae1.10_g3.3_h0_
16384
x32x32_
0.366
x3.12x3.12_s0102u.turb;
filename_v
\t
./turb/mann_l30.1_ae1.10_g3.3_h0_
16384
x32x32_
0.366
x3.12x3.12_s0102v.turb;
filename_w
\t
./turb/mann_l30.1_ae1.10_g3.3_h0_
16384
x32x32_
0.366
x3.12x3.12_s0102w.turb;
box_dim_u
\t
16384 0.366
2;
box_dim_v
\t
32 3.2258;
box_dim_w
\t
32 3.2258;
std_scaling
\t
1 0.8 0.5;
"""
box_dim_w
\t
32 3.2258;
"""
for
a
,
b
in
zip
(
s
.
split
(
"
\n
"
),
str
(
htcfile
.
wind
.
mann
).
split
(
"
\n
"
)):
self
.
assertEqual
(
a
.
strip
(),
b
.
strip
())
self
.
assertEqual
(
htcfile
.
wind
.
turb_format
[
0
],
1
)
...
...
@@ -163,15 +162,15 @@ class TestHtcFile(unittest.TestCase):
def
test_add_turb_export
(
self
):
htc
=
HTCFile
()
htc
.
add_mann_turbulence
(
30.1
,
1.1
,
3.3
,
102
,
False
)
htc
.
set_time
(
100
,
700
,
0.0
2
)
htc
.
set_time
(
100
,
700
,
0.0
1
)
htc
.
add_turb_export
()
s
=
"""
begin turb_export;
filename_u
\t
export_u.turb;
filename_v
\t
export_v.turb;
filename_w
\t
export_w.turb;
samplefrq
\t
7
;
samplefrq
\t
3
;
time_start
\t
100;
nsteps
\t
3
0000.0;
nsteps
\t
6
0000.0;
box_dim_v
\t
32 3.2258;
box_dim_w
\t
32 3.2258;
end turb_export;
"""
...
...
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