# 2D Harmonic Oscillator

<figure><img src="/files/O18zByKJG1m2hGI8KZZO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uqGgrVMusvpujYbxWM1C" alt=""><figcaption></figcaption></figure>

```
Numerical Domain
(x,y) in [-1,1]x[-1,1]
Nx = Ny = 200
CFL = 0.125
Nt = 12800

Initial conditions for the quasi-classical state
omega = 10.0*pi
V = 0.5*omega**2*(x**2+y**2)
k0 = omega*0.2d0
psi = (omega/pi)**0.5* exp(-0.5*omega*((x+0.2)**2+y**2)) * exp(cmplx(0.0d0,k0*y))

Initial conditions for the elliptic trajectory
omega = 10.0*pi
V = 0.5*omega**2*(x**2+y**2)
k0 = omega*0.2d0
psi = (omega/pi)**0.5* exp(-1.0*omega*((x+0.4)**2+y**2)) * exp(cmplx(0.0d0,k0*(cos(45.0*pi/180.0)*x+sin(45.0*pi/180.0)*y)))
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://servicio-social.gitbook.io/computational-physics/time-dependent-schrodinger-equation/2d-harmonic-oscillator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
