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
Commits
d8890572
Verified
Commit
d8890572
authored
1 month ago
by
Paul Dechamps
Browse files
Options
Downloads
Patches
Plain Diff
(feat) API returns blowing boundaries for multiple bodies config
parent
b47b18e9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#52203
passed
1 month ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dart/api/core.py
+12
-8
12 additions, 8 deletions
dart/api/core.py
ext/amfe
+1
-1
1 addition, 1 deletion
ext/amfe
with
13 additions
and
9 deletions
dart/api/core.py
+
12
−
8
View file @
d8890572
...
...
@@ -207,14 +207,19 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
if
_dim
==
2
:
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wing
'
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wake
'
])
_pbl
.
add
(
_blwb
)
_pbl
.
add
(
_blww
)
_blw
=
[[
_blwb
,
_blww
]]
else
:
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wings
'
][
0
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wakes
'
][
0
])
_pbl
.
add
(
_blwb
)
_pbl
.
add
(
_blww
)
_blw
=
[]
for
ibody
in
range
(
len
(
cfg
[
'
Wings
'
])):
_blwb
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wings
'
][
ibody
])
_blww
=
dart
.
Blowing
(
_msh
,
cfg
[
'
Wakes
'
][
ibody
])
_pbl
.
add
(
_blwb
)
_pbl
.
add
(
_blww
)
_blw
.
append
([
_blwb
,
_blww
])
else
:
_blwb
=
None
_blww
=
None
_blw
=
None
# Direct (forward) solver creation
# NB: more solvers/options are available but we restrict the user's choice to the most efficient ones
...
...
@@ -247,8 +252,7 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
'
mrf
'
:
_mrf
,
'
pbl
'
:
_pbl
,
'
bnd
'
:
_bnd
,
'
blwb
'
:
_blwb
,
'
blww
'
:
_blww
,
'
blw
'
:
_blw
,
'
sol
'
:
_sol
,
'
adj
'
:
_adj
}
This diff is collapsed.
Click to expand it.
amfe
@
f21f433c
Compare
c7a0c45e
...
f21f433c
Subproject commit
c7a0c45eb3067aaad7d2bbff1eed4dbab6fcb7a
8
Subproject commit
f21f433cc9000e049f34dde6f864842094ff9b2
8
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