Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Aerospace and Mechanical Engineering
blaster
Commits
d630c436
Commit
d630c436
authored
4 weeks ago
by
Paul Dechamps
Browse files
Options
Downloads
Patches
Plain Diff
(tests) Update rae 3D test
parent
fc881751
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
blast/tests/dart/t_rae2822_3D.py
+8
-8
8 additions, 8 deletions
blast/tests/dart/t_rae2822_3D.py
with
8 additions
and
8 deletions
blast/tests/dart/t_rae2822_3D.py
+
8
−
8
View file @
d630c436
...
...
@@ -45,7 +45,7 @@ def cfgInviscid(nthrds, verb):
'
Verb
'
:
verb
,
# verbosity
# Model (geometry or mesh)
'
File
'
:
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
abspath
(
__file__
),
'
../../../models/dart/rae_3.geo
'
)),
# Input file containing the model
'
Pars
'
:
{
'
spn
'
:
1.0
,
'
lgt
'
:
6.0
,
'
wdt
'
:
3.0
,
'
hgt
'
:
6.0
,
'
msN
'
:
0.0
2
,
'
msF
'
:
1
},
# parameters for input file model
'
Pars
'
:
{
'
spn
'
:
1.0
,
'
lgt
'
:
6.0
,
'
wdt
'
:
3.0
,
'
hgt
'
:
6.0
,
'
msN
'
:
0.0
3
,
'
msF
'
:
1
},
# parameters for input file model
'
Dim
'
:
3
,
# problem dimension
'
Format
'
:
'
vtk
'
,
# save format (vtk or gmsh)
# Markers
...
...
@@ -90,9 +90,9 @@ def cfgBlast(verb):
'
xtrF
'
:
[
0.
,
0.
],
# Forced transition locations
# Sections generation parameters
'
sections
'
:
{
'
wing
'
:
np
.
linspace
(
0.05
,
0.9
,
1
0
)},
# Sections on the wing
'
sections
'
:
{
'
wing
'
:
np
.
linspace
(
0.05
,
0.9
,
5
0
)},
# Sections on the wing
'
genSections
'
:
'
auto
'
,
# Section generation technique ['auto', 'file', 'vtk']
'
nPoints
'
:
2
5
0
,
# Section will have nPoints+1 points because of the duplicate TE
'
nPoints
'
:
2
0
0
,
# Section will have nPoints+1 points because of the duplicate TE
'
smooth_sections
'
:
1e-7
,
# Smoothing factor for the section generation (only used when genSections is 'auto')
# Interpolator parameters
...
...
@@ -158,11 +158,11 @@ def main():
# Test solution
print
(
ccolors
.
ANSI_BLUE
+
'
PyTesting...
'
+
ccolors
.
ANSI_RESET
)
tests
=
CTests
()
tests
.
add
(
CTest
(
'
Cl
'
,
isol
.
getCl
(),
0.1
305
,
5e-2
))
tests
.
add
(
CTest
(
'
Cd wake
'
,
vsol
.
getCdt
(),
0.011
3
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Cd integral
'
,
vsol
.
getCdf
()
+
isol
.
getCd
(),
0.017
2
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Cdf
'
,
vsol
.
getCdf
(),
0.01
15
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Iterations
'
,
len
(
aeroCoeffs
[
'
Cl
'
]),
4
,
0
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Cl
'
,
isol
.
getCl
(),
0.1
1
,
5e-2
))
tests
.
add
(
CTest
(
'
Cd wake
'
,
vsol
.
getCdt
(),
0.011
9
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Cd integral
'
,
vsol
.
getCdf
()
+
isol
.
getCd
(),
0.017
3
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Cdf
'
,
vsol
.
getCdf
(),
0.01
09
,
1e-3
,
forceabs
=
True
))
tests
.
add
(
CTest
(
'
Iterations
'
,
len
(
aeroCoeffs
[
'
Cl
'
]),
3
,
0
,
forceabs
=
True
))
tests
.
run
()
if
not
args
.
nogui
:
...
...
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