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
79860543
Commit
79860543
authored
5 years ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
Add htc hydro
parent
256ba017
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9804
passed
5 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wetb/hawc2/htc_extensions.py
+9
-16
9 additions, 16 deletions
wetb/hawc2/htc_extensions.py
with
9 additions
and
16 deletions
wetb/hawc2/htc_extensions.py
+
9
−
16
View file @
79860543
...
...
@@ -24,9 +24,7 @@ class HTCDefaults(object):
empty_htc
=
"""
begin simulation;
time_stop 600;
solvertype 1; (newmark)
on_no_convergence continue;
convergence_limits 1E3 1.0 1E-7; ; . to run again, changed 07/11
solvertype 2; (newmark)
begin newmark;
deltat 0.02;
end newmark;
...
...
@@ -34,15 +32,6 @@ class HTCDefaults(object):
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
begin new_htc_structure;
begin orientation;
end orientation;
begin constraint;
end constraint;
end new_htc_structure;
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
begin wind ;
density 1.225 ;
wsp 10 ;
...
...
@@ -57,12 +46,9 @@ class HTCDefaults(object):
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
begin dll;
end dll;
;
;----------------------------------------------------------------------------------------------------------------------------------------------------------------
;
begin output;
filename ./tmp;
general time;
end output;
exit;
"""
...
...
@@ -144,6 +130,13 @@ class HTCDefaults(object):
cs
.
constant__21
.
values
[
1
]
=
"
%.6E
"
%
KK1
cs
.
constant__22
.
values
[
1
]
=
"
%.6E
"
%
KK2
def
add_hydro
(
self
,
mudlevel
,
mwl
,
gravity
=
9.81
,
rho
=
1027
):
wp
=
self
.
add_section
(
"
hydro
"
).
add_section
(
'
water_properties
'
)
wp
.
mudlevel
=
mudlevel
wp
.
mwl
=
mwl
wp
.
gravity
=
gravity
wp
.
rho
=
rho
class
HTCExtensions
(
object
):
def
get_shear
(
self
):
...
...
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