Skip to content
Snippets Groups Projects
Commit 3a33458d authored by Lacroix Martin's avatar Lacroix Martin Committed by Adrien Crovato
Browse files

Update CUPyDO Wrapper

parent 2a47a7f4
No related branches found
Tags v1.2.2
No related merge requests found
Pipeline #18477 passed
......@@ -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, dx_nM1, dy_nM1, dz_nM1, haloNodesDisplacements, time):
def applyNodalDisplacements(self, dx, dy, dz, dt, 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment