Skip to content

Commit

Permalink
Merge pull request #4 from ShuN6211/readme_sample_code
Browse files Browse the repository at this point in the history
Readme sample code
  • Loading branch information
ShuN6211 authored Jan 3, 2023
2 parents 85cbc9d + 4499c32 commit 92fcb0b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,23 @@ You can install via [PyPI](https://pypi.org/). For example,
$ pip install sc-vortex-2d
```

## Usage
```
"""Sample python code"""
from sc_vortex_2d.vortex import VortexInstanceT03
from scipy import interpolate
instance: VortexInstanceT03 = VortexInstanceT03()
delta: interpolate.CubicSpline = instance.get_pair_potential()
e0: float = instance.get_ith_eigen_energy(0) # lowest energy level in the region of e > 0.
u0, v0 = instance.get_ith_eigen_func(0) # get wave functions
params = instance.Parameters # Parameters of the system. Enum.
```
## Link
https://webpark1378.sakura.ne.jp/

0 comments on commit 92fcb0b

Please sign in to comment.