Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HSPM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Thomée Corentin
HSPM
Commits
68d63db8
Commit
68d63db8
authored
1 year ago
by
Thomée Corentin
Browse files
Options
Downloads
Patches
Plain Diff
Added parameters for wake definition
parent
b9fc8128
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hspm/api/core.py
+10
-0
10 additions, 0 deletions
hspm/api/core.py
hspm/src/hspm.cpp
+4
-3
4 additions, 3 deletions
hspm/src/hspm.cpp
with
14 additions
and
3 deletions
hspm/api/core.py
+
10
−
0
View file @
68d63db8
...
...
@@ -39,6 +39,16 @@ def initHSPM(cfg):
cfg
[
'
aoa
'
]
=
0
hspm
.
AoA
=
np
.
deg2rad
(
cfg
[
'
aoa
'
])
if
not
'
N_wake
'
in
cfg
:
print
(
"
HSPM Warning: N_wake not defined. Using default value of 100
"
)
cfg
[
'
N_wake
'
]
=
100
hspm
.
N_wake
=
cfg
[
'
N_wake
'
]
if
not
'
L_wake
'
in
cfg
:
print
(
"
HSPM Warning: L_wake not defined. Using default value of 5
"
)
cfg
[
'
L_wake
'
]
=
5
hspm
.
L_wake
=
cfg
[
'
L_wake
'
]
if
not
"
meshType
"
in
cfg
:
print
(
"
HSPM Warning: meshType not defined. Using default cosine mesh (CosN)
"
)
cfg
[
'
meshType
'
]
=
"
CosN
"
...
...
This diff is collapsed.
Click to expand it.
hspm/src/hspm.cpp
+
4
−
3
View file @
68d63db8
...
...
@@ -17,11 +17,12 @@ void HSPM::initHSPM()
V_y
=
V_inf
*
sin
(
AoA
);
// TODO: Temporary
this
->
L_wake
=
3
*
chord
;
this
->
N_wake
=
100
;
// TODO: Move somewhere else
this
->
x_wake
=
Eigen
::
VectorXd
::
LinSpaced
(
N_wake
+
1
,
chord
,
L_wake
+
chord
);
this
->
y_wake
=
Eigen
::
VectorXd
::
Zero
(
N_wake
+
1
);
for
(
size_t
i
=
0
;
i
<
N_wake
+
1
;
i
++
)
{
y_wake
(
i
)
=
(
x_wake
(
i
)
-
chord
)
*
tan
(
AoA
);
}
this
->
x_m_wake
=
Eigen
::
VectorXd
::
Zero
(
N_wake
);
this
->
y_m_wake
=
Eigen
::
VectorXd
::
Zero
(
N_wake
);
for
(
size_t
i
=
0
;
i
<
N_wake
;
i
++
)
{
...
...
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