Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
waves
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
Dechamps Paul
waves
Commits
ca62dcef
Commit
ca62dcef
authored
5 years ago
by
AmauryBilocq
Browse files
Options
Downloads
Patches
Plain Diff
Trial to find the stagnation point
parent
cdb4bd20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flow/viscous/solver.py
+9
-1
9 additions, 1 deletion
flow/viscous/solver.py
with
9 additions
and
1 deletion
flow/viscous/solver.py
+
9
−
1
View file @
ca62dcef
...
...
@@ -20,6 +20,14 @@ class Solver():
def
run
(
self
):
'''
Solve BLE
'''
# define tangential velocity in 2D
vt
=
self
.
v
[:,
0
]
+
self
.
v
[:,
1
]
# define stagnation point
stag
=
np
.
argmin
(
abs
(
self
.
v
[:,
1
]))
#define the stagnation point
print
'
Stag is
'
print
stag
print
len
(
self
.
boundary
.
nodes
)
print
'
--- I am a fake BL solver and I am setting dummy blowing velocities! ---
'
# 6th order fitting of delta_star for naca 0012 at alpha = 0, from XFoil
a
=
0.000054925976379640116
...
...
@@ -32,4 +40,4 @@ class Solver():
for
i
in
range
(
0
,
self
.
nE
):
x
=
0.5
*
(
self
.
boundary
.
groups
[
0
].
tag
.
elems
[
i
].
nodes
[
0
].
pos
.
x
[
0
]
+
self
.
boundary
.
groups
[
0
].
tag
.
elems
[
i
].
nodes
[
1
].
pos
.
x
[
0
])
# CAUTION: a positive velocity will result in a suction!
self
.
u
[
i
]
=
-
(
b
+
2
*
c
*
x
+
3
*
d
*
x
*
x
*
+
4
*
e
*
x
*
x
*
x
+
5
*
f
*
x
*
x
*
x
*
x
+
6
*
g
*
x
*
x
*
x
*
x
*
x
)
# ue = d(delta_star) / dx
self
.
u
[
i
]
=
-
(
b
+
2
*
c
*
x
+
3
*
d
*
x
*
x
+
4
*
e
*
x
*
x
*
x
+
5
*
f
*
x
*
x
*
x
*
x
+
6
*
g
*
x
*
x
*
x
*
x
*
x
)
# ue = d(delta_star) / dx
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