original_docstring: 
          This method returns pressure drop for specific mesh
          
docstring: This method returns pressure drop for specific mesh
docstring_tokens: This method returns pressure drop for specific mesh
code: def PlotPressureDrop(self, meshid):
          '''
          This method returns pressure drop for specific mesh
          '''
          try:
              from matplotlib.pyplot import plot, xlabel, ylabel, title, legend, savefig, close
          except ImportError:
              MatPlotLibError()
          meshid = str(meshid)
          for element in self.NetworkMesh.Elements:
              if element.Id == meshid:
                  length = element.Length
                  dof = element.GetNodeLocalDofs()
                  PressureIN = (self.Solutions[(self.DofMap.DofMap[meshid, dof[0]]),self.CardiacFreq*(self.Cycles-1):])
                  PressureOUT = (self.Solutions[(self.DofMap.DofMap[meshid, dof[1]]),self.CardiacFreq*(self.Cycles-1):])
          
          plot(self.t, (PressureIN-PressureOUT), 'b-', linewidth = 3, label = 'p1-p2')   #blue line
          plot(self.t, (PressureIN-PressureOUT)/length, 'r-', linewidth = 3, label = '(p1-p2)/L')   #blue line
          xlabel('Time ($s$)')
          ylabel('P ($Pa$)')
          title ('Pressure')    
          legend()
          savefig(self.images + meshid +'_pressureDrop.png')
          close()
          
          return (PressureIN-PressureOUT)/length
code_tokens: def PlotPressureDrop ( self , meshid ) : try : from matplotlib . pyplot import plot , xlabel , ylabel , title , legend , savefig , close except ImportError : MatPlotLibError ( ) meshid = str ( meshid ) for element in self . NetworkMesh . Elements : if element . Id == meshid : length = element . Length dof = element . GetNodeLocalDofs ( ) PressureIN = ( self . Solutions [ ( self . DofMap . DofMap [ meshid , dof [ 0 ] ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] ) PressureOUT = ( self . Solutions [ ( self . DofMap . DofMap [ meshid , dof [ 1 ] ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] ) plot ( self . t , ( PressureIN - PressureOUT ) , 'b-' , linewidth = 3 , label = 'p1-p2' ) plot ( self . t , ( PressureIN - PressureOUT ) / length , 'r-' , linewidth = 3 , label = '(p1-p2)/L' ) xlabel ( 'Time ($s$)' ) ylabel ( 'P ($Pa$)' ) title ( 'Pressure' ) legend ( ) savefig ( self . images + meshid + '_pressureDrop.png' ) close ( ) return ( PressureIN - PressureOUT ) / length
short_docstring: This method returns pressure drop for specific mesh
short_docstring_tokens: This method returns pressure drop for specific mesh
comment: '''
          This method returns pressure drop for specific mesh
          '''$SEP$#blue line$SEP$#blue line