Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
data_real
listlengths
256
256
data_imag
listlengths
256
256
[[0.4753483533859253,0.44175776839256287,0.4046710133552551,0.36440518498420715,0.32131025195121765,(...TRUNCATED)
[[-0.15405286848545074,-0.15283259749412537,-0.14892183244228363,-0.1423664391040802,-0.133252620697(...TRUNCATED)
[[-0.1488344520330429,-0.18018066883087158,-0.20780114829540253,-0.23148319125175476,-0.251067280769(...TRUNCATED)
[[0.10276421904563904,0.13821545243263245,0.16698455810546875,0.18878690898418427,0.2034255862236023(...TRUNCATED)
[[0.1187424510717392,0.08906985074281693,0.05584145337343216,0.019539784640073776,-0.019298834726214(...TRUNCATED)
[[0.3787868618965149,0.295202374458313,0.20814000070095062,0.11857762187719345,0.027518417686223984,(...TRUNCATED)
[[-0.5206414461135864,-0.429928183555603,-0.33599531650543213,-0.23996137082576752,-0.14295327663421(...TRUNCATED)
[[0.3735206425189972,0.40174248814582825,0.42237186431884766,0.4353889524936676,0.44087809324264526,(...TRUNCATED)
[[0.18319621682167053,0.17210090160369873,0.15679770708084106,0.13769398629665375,0.1152371466159820(...TRUNCATED)
[[0.45802250504493713,0.4729353189468384,0.4827553331851959,0.48769068717956543,0.48801401257514954,(...TRUNCATED)
[[0.8852282762527466,0.9152609705924988,0.9429228901863098,0.9678906202316284,0.9898455739021301,1.0(...TRUNCATED)
[[-0.34656521677970886,-0.36216235160827637,-0.3780001699924469,-0.3935946524143219,-0.4084669947624(...TRUNCATED)
[[-0.08874901384115219,-0.07194982469081879,-0.05756319314241409,-0.04573904722929001,-0.03657350689(...TRUNCATED)
[[0.030192159116268158,-0.0731101855635643,-0.17645978927612305,-0.27876555919647217,-0.378937482833(...TRUNCATED)
[[0.26605895161628723,0.31043434143066406,0.3549486994743347,0.39913132786750793,0.44250303506851196(...TRUNCATED)
[[0.3215287923812866,0.35362085700035095,0.37955451011657715,0.39908266067504883,0.4120400846004486,(...TRUNCATED)
[[0.3069154918193817,0.3443772494792938,0.3819555342197418,0.41955164074897766,0.45705264806747437,0(...TRUNCATED)
[[0.9022354483604431,0.8739202618598938,0.837630033493042,0.7933436036109924,0.7411323189735413,0.68(...TRUNCATED)
[[0.839209258556366,0.8244478106498718,0.8045315742492676,0.7798136472702026,0.7507125735282898,0.71(...TRUNCATED)
[[-0.42377957701683044,-0.4881538450717926,-0.5460769534111023,-0.596842348575592,-0.639840424060821(...TRUNCATED)
End of preview. Expand in Data Studio

1D Cubic Nonlinear Schrödinger Equation (NLSE)

Overview

This dataset contains numerical solutions to the 1D cubic nonlinear Schrödinger equation (NLS).

The governing equation is: iut=uxx+uu2. i u_t = u_{xx} + u |u|^2.


Initial Conditions

The initial conditions are generated as random periodic functions composed of a finite number of Fourier modes.

Each sample is defined as: u0(x)=1nmodesk=1nmodesAkei(kx+ϕk), u_0(x) = \frac{1}{\sqrt{n_{\text{modes}}}} \sum_{k=1}^{n_{\text{modes}}} A_k \, e^{i (k x + \phi_k)}, where:

  • AkU(amin,amax) A_k \sim \mathcal{U}(a_{\min}, a_{\max}) are random amplitudes,
  • ϕkU(0,2π) \phi_k \sim \mathcal{U}(0, 2\pi) are random phases.

Numerical Solver

  • Integrator: scipy.integrate.solve_ivp
  • Method: DOP853 (explicit Runge–Kutta of order 8(5,3))
  • Spatial discretization: 6th-order central finite differences
  • Boundary conditions: Periodic

Dataset details

The equations were solved on x[0,2π) x \in [0, 2\pi) with 256 points and t[0,2) t \in [0, 2) with 256 points.

The solution is stored in the fields "data_real" and "data_imag".

from datasets import load_dataset
train_dataset = load_dataset("eirikfagerbakke/nls", split="train").with_format("numpy")
u_sample = train_dataset[0]["data_real"] + 1j * train_dataset[0]["data_imag"]
Downloads last month
14