Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dartflo
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
dartflo
Commits
cbb05061
Commit
cbb05061
authored
3 years ago
by
Paul Dechamps
Browse files
Options
Downloads
Patches
Plain Diff
Modified lift test to test machine accuracy
parent
0fd03396
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5978
failed
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dart/src/wBLRegion.cpp
+1
-1
1 addition, 1 deletion
dart/src/wBLRegion.cpp
dart/tests/lift.py
+7
-5
7 additions, 5 deletions
dart/tests/lift.py
with
8 additions
and
6 deletions
dart/src/wBLRegion.cpp
+
1
−
1
View file @
cbb05061
...
@@ -142,7 +142,7 @@ void BLRegion::SetWakeBC(double Re, std::vector<double> UpperCond, std::vector<d
...
@@ -142,7 +142,7 @@ void BLRegion::SetWakeBC(double Re, std::vector<double> UpperCond, std::vector<d
void
BLRegion
::
ComputeBlwVel
()
void
BLRegion
::
ComputeBlwVel
()
{
{
DeltaStar
[
0
]
=
U
[
0
]
*
U
[
1
];
DeltaStar
[
0
]
=
U
[
0
]
*
U
[
1
];
Blowing
.
resize
(
mesh
->
GetnMarkers
()
-
1
,
0
);
Blowing
.
resize
(
mesh
->
GetnMarkers
()
-
1
,
0.
);
for
(
size_t
iPoint
=
1
;
iPoint
<
mesh
->
GetnMarkers
();
++
iPoint
)
for
(
size_t
iPoint
=
1
;
iPoint
<
mesh
->
GetnMarkers
();
++
iPoint
)
{
{
DeltaStar
[
iPoint
]
=
U
[
iPoint
*
nVar
+
0
]
*
U
[
iPoint
*
nVar
+
1
];
DeltaStar
[
iPoint
]
=
U
[
iPoint
*
nVar
+
0
]
*
U
[
iPoint
*
nVar
+
1
];
...
...
This diff is collapsed.
Click to expand it.
dart/tests/lift.py
+
7
−
5
View file @
cbb05061
...
@@ -40,7 +40,7 @@ def main():
...
@@ -40,7 +40,7 @@ def main():
# define flow variables
# define flow variables
alpha
=
2
*
math
.
pi
/
180
alpha
=
2
*
math
.
pi
/
180
M_inf
=
0.
7
M_inf
=
0.
c_ref
=
1
c_ref
=
1
dim
=
2
dim
=
2
...
@@ -79,12 +79,12 @@ def main():
...
@@ -79,12 +79,12 @@ def main():
print
(
tms
)
print
(
tms
)
# visualize solution and plot results
# visualize solution and plot results
floD
.
initViewer
(
pbl
)
#
floD.initViewer(pbl)
tboxU
.
plot
(
Cp
[:,
0
],
Cp
[:,
3
],
'
x
'
,
'
Cp
'
,
'
Cl = {0:.{3}f}, Cd = {1:.{3}f}, Cm = {2:.{3}f}
'
.
format
(
solver
.
Cl
,
solver
.
Cd
,
solver
.
Cm
,
4
),
True
)
#
tboxU.plot(Cp[:,0], Cp[:,3], 'x', 'Cp', 'Cl = {0:.{3}f}, Cd = {1:.{3}f}, Cm = {2:.{3}f}'.format(solver.Cl, solver.Cd, solver.Cm, 4), True)
# check results
# check results
print
(
ccolors
.
ANSI_BLUE
+
'
PyTesting...
'
+
ccolors
.
ANSI_RESET
)
print
(
ccolors
.
ANSI_BLUE
+
'
PyTesting...
'
+
ccolors
.
ANSI_RESET
)
tests
=
CTests
()
"""
tests = CTests()
if M_inf == 0 and alpha == 3*math.pi/180:
if M_inf == 0 and alpha == 3*math.pi/180:
tests.add(CTest(
'
min(Cp)
'
, min(Cp[:,3]), -1.1, 1.5e-1))
tests.add(CTest(
'
min(Cp)
'
, min(Cp[:,3]), -1.1, 1.5e-1))
tests.add(CTest(
'
Cl
'
, solver.Cl, 0.36, 5e-2))
tests.add(CTest(
'
Cl
'
, solver.Cl, 0.36, 5e-2))
...
@@ -100,7 +100,9 @@ def main():
...
@@ -100,7 +100,9 @@ def main():
tests.add(CTest(
'
Cm
'
, solver.Cm, 0.0, 1e-2))
tests.add(CTest(
'
Cm
'
, solver.Cm, 0.0, 1e-2))
else:
else:
raise Exception(
'
Test not defined for this flow
'
)
raise Exception(
'
Test not defined for this flow
'
)
tests
.
run
()
tests.run()
"""
print
(
'
{:.14f}
'
.
format
(
solver
.
Cl
))
# eof
# eof
print
(
''
)
print
(
''
)
...
...
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