Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dartflo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
dartflo
Compare revisions
d889057249998fad1fa448a4a1607451dcbd8449 to 8abc697061f99e9ad193c01276d091867af7ba9a
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
am-dept/dartflo
Select target project
No results found
8abc697061f99e9ad193c01276d091867af7ba9a
Select Git revision
Branches
adri
feat_2order
feat_amr
master
paul
Tags
v1.0.0
v1.1.0
v1.2.0
v1.2.1
v1.2.2
v1.3.0
Swap
Target
am-dept/dartflo
Select target project
Paul.Dechamps/dartflo
1 result
d889057249998fad1fa448a4a1607451dcbd8449
Select Git revision
Branches
adri
feat_2order
feat_amr
master
paul
Tags
v1.0.0
v1.1.0
v1.2.0
v1.2.1
v1.2.2
v1.3.0
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
(feat) Add tol setters in Solver
· 447d4ce3
Paul Dechamps
authored
1 month ago
Verified
447d4ce3
(feat) Change blowing data structure from list to dict in the core api
· 8abc6970
Paul Dechamps
authored
1 month ago
Verified
8abc6970
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dart/api/core.py
+16
-7
16 additions, 7 deletions
dart/api/core.py
dart/src/wSolver.h
+2
-0
2 additions, 0 deletions
dart/src/wSolver.h
with
18 additions
and
7 deletions
dart/api/core.py
View file @
8abc6970
...
...
@@ -203,21 +203,30 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
_pbl
.
add
(
dart
.
Wake
(
_msh
,
[
cfg
[
'
Wakes
'
][
i
],
cfg
[
'
Wakes
'
][
i
]
+
'
_
'
,
cfg
[
'
Fluid
'
]]))
# 2.5D
_pbl
.
add
(
dart
.
Kutta
(
_msh
,
[
cfg
[
'
Tes
'
][
i
],
cfg
[
'
Wakes
'
][
i
]
+
'
_
'
,
cfg
[
'
Wings
'
][
i
],
cfg
[
'
Fluid
'
]]))
# add transpiration (blowing) boundary conditions
_blw
=
{}
if
viscous
:
if
_dim
==
2
:
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wing
'
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wake
'
])
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
"
Wing
"
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
"
Wake
"
])
_pbl
.
add
(
_blwb
)
_pbl
.
add
(
_blww
)
_blw
=
[[
_blwb
,
_blww
]]
print
(
f
'
Adding blowing boundary
{
cfg
[
"
Wing
"
]
}
'
)
_blw
[
cfg
[
'
Wing
'
]]
=
{
'
wing
'
:
_blwb
,
'
wake
'
:
_blww
}
else
:
_blw
=
[]
for
ibody
in
range
(
len
(
cfg
[
'
Wings
'
])):
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wings
'
][
ibody
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wakes
'
][
ibody
])
print
(
f
'
Adding blowing boundary
{
cfg
[
"
Wings
"
][
ibody
]
}
'
)
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
"
Wings
"
][
ibody
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
"
Wakes
"
][
ibody
])
_pbl
.
add
(
_blwb
)
_pbl
.
add
(
_blww
)
_blw
.
append
([
_blwb
,
_blww
])
_blw
[
cfg
[
"
Wings
"
][
ibody
]]
=
{
'
wing
'
:
_blwb
,
'
wake
'
:
_blww
}
if
'
Fuselage
'
in
cfg
:
print
(
f
'
Adding blowing boundary
{
cfg
[
"
Fuselage
"
]
}
'
)
_blwf
=
dart
.
Blowing
(
_msh
,
cfg
[
"
Fuselage
"
])
_pbl
.
add
(
_blwf
)
_blw
[
cfg
[
"
Fuselage
"
]]
=
{
'
fuselage
'
:
_blwf
}
else
:
_blw
=
None
...
...
This diff is collapsed.
Click to expand it.
dart/src/wSolver.h
View file @
8abc6970
...
...
@@ -81,6 +81,8 @@ public:
void
save
(
tbox
::
MshExport
*
mshWriter
,
std
::
string
const
&
suffix
=
""
);
int
getRow
(
size_t
i
)
const
{
return
rows
[
i
];
};
void
setRelTol
(
double
const
rtol
)
{
relTol
=
rtol
;
}
void
setAbsTol
(
double
const
atol
)
{
absTol
=
atol
;
}
protected
:
void
computeFlow
();
...
...
This diff is collapsed.
Click to expand it.