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
3a33458d
Commit
3a33458d
authored
1 year ago
by
Lacroix Martin
Committed by
Adrien Crovato
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update CUPyDO Wrapper
parent
2a47a7f4
No related branches found
Branches containing commit
Tags
v1.2.2
Tags containing commit
No related merge requests found
Pipeline
#18477
passed
1 year ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dart/api/cupydo.py
+5
-4
5 additions, 4 deletions
dart/api/cupydo.py
with
5 additions
and
4 deletions
dart/api/cupydo.py
+
5
−
4
View file @
3a33458d
...
...
@@ -24,9 +24,9 @@ import sys
class
Dart
(
FluidSolver
):
"""
DART interface for CUPyDO
"""
def
__init__
(
self
,
_module
,
_nthreads
):
def
__init__
(
self
,
p
,
_nthreads
):
# load the python module and initialize the solver
module
=
__import__
(
_module
)
module
=
__import__
(
p
[
'
cfdFile
'
]
)
params
=
module
.
getParams
()
params
[
'
Threads
'
]
=
_nthreads
from
dart.api.core
import
initDart
...
...
@@ -46,7 +46,7 @@ class Dart(FluidSolver):
self
.
saveFreq
=
sys
.
maxsize
# generic init
FluidSolver
.
__init__
(
self
)
FluidSolver
.
__init__
(
self
,
p
)
def
run
(
self
,
t1
,
t2
):
"""
Run the solver for one steady (time) iteration.
...
...
@@ -87,7 +87,7 @@ class Dart(FluidSolver):
no
=
self
.
boundary
.
nodes
[
iVertex
].
no
return
no
def
applyNodalDisplacements
(
self
,
dx
,
dy
,
dz
,
d
x_nM1
,
dy_nM1
,
dz_nM1
,
haloNodesDisplacements
,
time
):
def
applyNodalDisplacements
(
self
,
dx
,
dy
,
dz
,
d
t
,
haloNodesDisplacements
):
"""
Apply displacements coming from solid solver to f/s interface after saving
"""
self
.
morpher
.
savePos
()
...
...
@@ -139,3 +139,4 @@ class Dart(FluidSolver):
del
self
.
morpher
del
self
.
writer
del
self
.
msh
\ No newline at end of file
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