parameters: (self, TimeIter, time, varCoordNorm, FSIConv)
docstring: Write the FSI history file of the computaion.
docstring_summary: Write the FSI history file of the computaion.
docstring_tokens: Write the FSI history file of the computaion .
function: def writeFSIHistory(self, TimeIter, time, varCoordNorm, FSIConv):
          """
          Write the FSI history file of the computaion.
          """
  
          if self.have_MPI:
            myid = self.comm.Get_rank()
          else:
            myid = 0
  
          if myid == self.rootProcess:
            if self.unsteady:
              if TimeIter == 0:
                histFile = open('FSIhistory.dat', "w")
                histFile.write("TimeIter\tTime\tFSIRes\tFSINbIter\n")
              else:
                histFile = open('FSIhistory.dat', "a")
              if FSIConv:
                histFile.write(str(TimeIter) + '\t' + str(time) + '\t' + str(varCoordNorm) + '\t' + str(self.FSIIter+1) + '\n')
              else:
                histFile.write(str(TimeIter) + '\t' + str(time) + '\t' + str(varCoordNorm) + '\t' + str(self.FSIIter) + '\n')
              histFile.close()
            else:
              if self.FSIIter == 0:
                histFile = open('FSIhistory.dat', "w")
                histFile.write("FSI Iter\tFSIRes\n")
              else :
                histFile = open('FSIhistory.dat', "a")
              histFile.write(str(self.FSIIter) + '\t' + str(varCoordNorm) + '\n')
              histFile.close()
  
  
          self.MPIBarrier()
function_tokens: def writeFSIHistory ( self , TimeIter , time , varCoordNorm , FSIConv ) : if self . have_MPI : myid = self . comm . Get_rank ( ) else : myid = 0 if myid == self . rootProcess : if self . unsteady : if TimeIter == 0 : histFile = open ( 'FSIhistory.dat' , "w" ) histFile . write ( "TimeIter\tTime\tFSIRes\tFSINbIter\n" ) else : histFile = open ( 'FSIhistory.dat' , "a" ) if FSIConv : histFile . write ( str ( TimeIter ) + '\t' + str ( time ) + '\t' + str ( varCoordNorm ) + '\t' + str ( self . FSIIter + 1 ) + '\n' ) else : histFile . write ( str ( TimeIter ) + '\t' + str ( time ) + '\t' + str ( varCoordNorm ) + '\t' + str ( self . FSIIter ) + '\n' ) histFile . close ( ) else : if self . FSIIter == 0 : histFile = open ( 'FSIhistory.dat' , "w" ) histFile . write ( "FSI Iter\tFSIRes\n" ) else : histFile = open ( 'FSIhistory.dat' , "a" ) histFile . write ( str ( self . FSIIter ) + '\t' + str ( varCoordNorm ) + '\n' ) histFile . close ( ) self . MPIBarrier ( )