Skip to content

Commit

Permalink
Update addprocess.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-salles committed Mar 26, 2024
1 parent ced68db commit 16fb569
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gospl/tools/addprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def __init__(self):

if self.flexOn:
self.localFlex = np.zeros(self.lpoints)
self.boundflex = self.boundCond.replace('0','2')
self.boundflex = self.boundflex.replace('1','0')
self.boundflex = self.boundflex.replace('2','1')
if self.oroOn:
self.oroEPS = np.finfo(float).eps

Expand Down Expand Up @@ -124,10 +127,9 @@ def applyFlexure(self):
regNewZ[self.regOnIDs] = newZ[self.regIDs[self.regOnIDs,0]]
regNewZ = regNewZ.reshape(self.reg_ny,self.reg_nx)

# Force boundary to be all reflective
newh = flexure(regNewZ,regOldZ,self.reg_ny,self.reg_nx,
self.reg_yl,self.reg_xl,self.flex_rhos,
self.flex_rhoa,self.flex_eet,0) #int(self.boundCond))
self.flex_rhoa,self.flex_eet,int(self.boundflex))
rflexTec = (newh - regNewZ).ravel()

# Interpolate back to goSPL mesh
Expand Down

0 comments on commit 16fb569

Please sign in to comment.