Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SU2-python 2.0 #1359

Merged
merged 3 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SU2_PY/FSI_tools/FSIInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,8 @@ def interpolateSolidPositionOnFluidMesh(self, FSI_config):
if myid == self.rootProcess:
for iProc in self.fluidInterfaceProcessors:
sendBuff = {}
for key in self.FluidHaloNodeList[iProc].keys(): # The key is the SU2 global
globalIndex = self.fluidIndexing[key] # This is the interface global, not the SU2 global
for key in self.FluidHaloNodeList[iProc].keys(): # The keys are the SU2 global IDs of the interface nodes
globalIndex = self.fluidIndexing[key] # These are the interface global IDs, not the SU2 global IDs
DispX = self.fluidInterface_array_DispX_recon[globalIndex]
DispY = self.fluidInterface_array_DispY_recon[globalIndex]
DispZ = self.fluidInterface_array_DispZ_recon[globalIndex]
Expand Down
9 changes: 6 additions & 3 deletions SU2_PY/SU2_Nastran/pysu2_nastran.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,8 @@ def __temporalIteration(self,time):
self.a += (1-self.alpha_f)/(1-self.alpha_m)*self.qddot
else:
if self.ImposedMotionToSet:
if self.Config["RESTART_SOL"] == "NO": # If yes we already set it in the __setRestart function
if self.Config["RESTART_SOL"] == "NO":
# If yes we already set it in the __setRestart function
self.timeStartCoupling = time
iImposedFunc = 0
for imode in self.Config["IMPOSED_MODES"].keys():
Expand Down Expand Up @@ -1004,8 +1005,9 @@ def getNumberOfSolidInterfaceNodes(self, markerID):

return len(self.markers[markerID])

def getVertexGlobalIndex(self, markerID, iVertex): # TODO This solver is serial, thus global=local
def getVertexGlobalIndex(self, markerID, iVertex):

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

def getInterfaceNodePosInit(self, markerID, iVertex):
Expand Down Expand Up @@ -1035,6 +1037,7 @@ def getInterfaceNodeVelNm1(self, markerID, iVertex):

def IsAHaloNode(self, markerID, iVertex):

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