parameters: (self, energy)
return_statement: return energy+(E-energy)*(E-energy)/(alpha+E-energy)
docstring: Given the actual potential energy of the system, return the value of the effective potential.
docstring_summary: Given the actual potential energy of the system, return the value of the effective potential.
docstring_tokens: Given the actual potential energy of the system return the value of the effective potential .
function: def getEffectiveEnergy(self, energy):
          """Given the actual potential energy of the system, return the value of the effective potential."""
          alpha = self.getAlpha()
          E = self.getE()
          if not is_quantity(energy):
              energy = energy*kilojoules_per_mole # Assume kJ/mole
          if (energy > E):
              return energy
          return energy+(E-energy)*(E-energy)/(alpha+E-energy)
function_tokens: def getEffectiveEnergy ( self , energy ) : alpha = self . getAlpha ( ) E = self . getE ( ) if not is_quantity ( energy ) : energy = energy * kilojoules_per_mole # Assume kJ/mole if ( energy > E ) : return energy return energy + ( E - energy ) * ( E - energy ) / ( alpha + E - energy )