potentials
This module provides a collection of one-dimensional, periodic potential energy functions. Each function is JIT-compiled for efficiency and runtime type-checked using beartype.
Each function accepts an array-like input x
of arbitrary shape and returns
a scalar or array of potential values corresponding to each element of x
.
Defined functions:
-
w_potential_1d(x): Periodic double-well potential \(\phi(x) = [2\cos(2\pi x) + 1]\,\cos(2\pi x) - 0.628279.\)
-
toy_membrane_potential_1d(x): Toy membrane potential \(\phi(x) = -\tfrac12\Bigl(\tfrac{(\cos(4\pi x)-1)^4}{4} + \cos(2\pi x)\Bigr) + 0.862700.\)
-
toy_membrane2_potential_1d(x): Parameterized periodic potential based on MD data \(\phi(x) = \phi_0 + \sum_{i=1}^N \alpha_i\,\cos(2\pi i x), \quad \phi_0 = 0.77830946.\)
-
toy_membrane3_potential_1d(x): Alternative MD-based series potential \(\phi(x) = \phi_0 + \sum_{i=1}^N \alpha_i\,\cos(2\pi i x), \quad \phi_0 = 0.26733318.\)
w_potential_1d(x)
¶
Periodic double well potential.
Source code in src/fpsl/datasets/potentials.py
37 38 39 40 41 42 43 44 45 46 |
|
toy_membrane_potential_1d(x)
¶
Periodic toy membrane potential.
Source code in src/fpsl/datasets/potentials.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
toy_membrane2_potential_1d(x)
¶
Periodic toy membrane potential based on MD.
Source code in src/fpsl/datasets/potentials.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
toy_membrane3_potential_1d(x)
¶
Periodic toy membrane potential based on MD.
Source code in src/fpsl/datasets/potentials.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|