torchgpe.utils.potentials.LinearPotential.get_potential#

abstract LinearPotential.get_potential(X, Y, time=None)[source]#

Return the linear potential evaluated on the grid. If time dependent parameters are present, the parameter time is also specified, otherwise it is set to None.

Parameters:
  • X (torch.tensor) – The X coordinates on the adimentionalized grid where to compute the potential.

  • Y (torch.tensor) – The Y coordinates on the adimentionalized grid where to compute the potential.

  • time (float, optional) – If time dependent parameters are specified, the time at which to evaluate the potential. Defaults to None.

Returns:

The potential evaluated on the grid.

Return type:

torch.tensor