Skip to content

Commit ac042cb

Browse files
authored
Merge pull request #1359 from Nicola-Fonzi/publish
Update SU2-python 2.0
2 parents c488eda + 968df05 commit ac042cb

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

SU2_PY/FSI_tools/FSIInterface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,8 @@ def interpolateSolidPositionOnFluidMesh(self, FSI_config):
12391239
if myid == self.rootProcess:
12401240
for iProc in self.fluidInterfaceProcessors:
12411241
sendBuff = {}
1242-
for key in self.FluidHaloNodeList[iProc].keys(): # The key is the SU2 global
1243-
globalIndex = self.fluidIndexing[key] # This is the interface global, not the SU2 global
1242+
for key in self.FluidHaloNodeList[iProc].keys(): # The keys are the SU2 global IDs of the interface nodes
1243+
globalIndex = self.fluidIndexing[key] # These are the interface global IDs, not the SU2 global IDs
12441244
DispX = self.fluidInterface_array_DispX_recon[globalIndex]
12451245
DispY = self.fluidInterface_array_DispY_recon[globalIndex]
12461246
DispZ = self.fluidInterface_array_DispZ_recon[globalIndex]

SU2_PY/SU2_Nastran/pysu2_nastran.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@ def __temporalIteration(self,time):
855855
self.a += (1-self.alpha_f)/(1-self.alpha_m)*self.qddot
856856
else:
857857
if self.ImposedMotionToSet:
858-
if self.Config["RESTART_SOL"] == "NO": # If yes we already set it in the __setRestart function
858+
if self.Config["RESTART_SOL"] == "NO":
859+
# If yes we already set it in the __setRestart function
859860
self.timeStartCoupling = time
860861
iImposedFunc = 0
861862
for imode in self.Config["IMPOSED_MODES"].keys():
@@ -1004,8 +1005,9 @@ def getNumberOfSolidInterfaceNodes(self, markerID):
10041005

10051006
return len(self.markers[markerID])
10061007

1007-
def getVertexGlobalIndex(self, markerID, iVertex): # TODO This solver is serial, thus global=local
1008+
def getVertexGlobalIndex(self, markerID, iVertex):
10081009

1010+
# This solver is serial, thus global=local
10091011
return self.markers[markerID][iVertex]
10101012

10111013
def getInterfaceNodePosInit(self, markerID, iVertex):
@@ -1035,6 +1037,7 @@ def getInterfaceNodeVelNm1(self, markerID, iVertex):
10351037

10361038
def IsAHaloNode(self, markerID, iVertex):
10371039

1040+
# There are no halo nodes in this solver as it is serial
10381041
iPoint = self.markers[markerID][iVertex]
1039-
halo = False # TODO when in parallel we will need to define this
1042+
halo = False
10401043
return halo

0 commit comments

Comments
 (0)