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
86f5fd63
Verified
Commit
86f5fd63
authored
2 months ago
by
Paul Dechamps
Browse files
Options
Downloads
Patches
Plain Diff
(feat) Added warning when inviscid and viscous freestream Mach numbers are different
parent
b18ce465
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
BLASTER v1.0
Pipeline
#51053
passed
2 months ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
blast/interfaces/blSolversInterface.py
+8
-0
8 additions, 0 deletions
blast/interfaces/blSolversInterface.py
blast/src/blDriver.h
+2
-0
2 additions, 0 deletions
blast/src/blDriver.h
blast/src/blSolver.h
+1
-0
1 addition, 0 deletions
blast/src/blSolver.h
with
11 additions
and
0 deletions
blast/interfaces/blSolversInterface.py
+
8
−
0
View file @
86f5fd63
...
...
@@ -3,6 +3,7 @@ import blast
import
fwk
import
tbox
from
blast.interfaces.blDataStructure
import
Group
from
fwk.coloring
import
ccolors
class
SolversInterface
:
"""
...
...
@@ -45,6 +46,8 @@ class SolversInterface:
if
'
nSections
'
not
in
self
.
cfg
:
self
.
cfg
[
'
nSections
'
]
=
len
(
self
.
cfg
[
'
sections
'
])
if
self
.
getMinf
()
!=
self
.
vSolver
.
getMinf
():
print
(
ccolors
.
ANSI_YELLOW
,
'
Warning: Inviscid and viscous freestream Mach numbers are different
'
,
ccolors
.
ANSI_RESET
)
# Initialize data structures.
self
.
iBnd
=
[
Group
(
'
iWing
'
if
iReg
==
0
else
'
iWake
'
,
self
.
getnDim
())
for
iReg
in
range
(
2
)]
...
...
@@ -459,6 +462,11 @@ class SolversInterface:
"""
raise
NotImplementedError
(
'
SolverInterface - getAoA not implemented
'
)
def
getMinf
(
self
)
->
float
:
"""
Get freestream Mach number
"""
raise
NotImplementedError
(
'
SolverInterface - getMinf not implemented
'
)
def
getCl
(
self
)
->
float
:
"""
Get lift coefficient
"""
...
...
This diff is collapsed.
Click to expand it.
blast/src/blDriver.h
+
2
−
0
View file @
86f5fd63
...
...
@@ -2,6 +2,7 @@
#define BLDRIVER_H
#include
"blBoundaryLayer.h"
#include
"blSolver.h"
#include
"blast.h"
#include
"wObject.h"
#include
"wTimers.h"
...
...
@@ -50,6 +51,7 @@ public:
// Getters.
double
getAverageTransition
(
size_t
const
iRegion
)
const
;
double
getRe
()
const
{
return
Re
;
}
double
getMinf
()
const
{
return
tSolver
->
getMinf
();
}
std
::
vector
<
std
::
vector
<
double
>>
getSolution
(
size_t
iSec
);
// Setters.
...
...
This diff is collapsed.
Click to expand it.
blast/src/blSolver.h
+
1
−
0
View file @
86f5fd63
...
...
@@ -34,6 +34,7 @@ public:
// Getters.
double
getCFL0
()
const
{
return
CFL0
;
}
double
getMinf
()
const
{
return
Minf
;
}
unsigned
int
getmaxIt
()
const
{
return
maxIt
;
}
unsigned
int
getitFrozenJac
()
const
{
return
itFrozenJac0
;
}
...
...
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