Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wslda wslda
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wtools
  • wsldawslda
  • Wiki
  • st wslda examples

Last edited by Gabriel Wlazłowski Feb 20, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

st wslda examples

  • Example 1: Unitary Fermi Gas is confided in a 1D (smooth) squared well
  • Example 2: Soliton in the unitary Fermi gas.
  • Archival examples

Example 1: Unitary Fermi Gas is confided in a 1D (smooth) squared well

Target: generate solution in a 1D potential well V_{\textrm{ext}}(x,y,z)\rightarrow V_{\textrm{ext}}(x), with bulk density corresponding k_F=1.

Code: st-wslda-1d

Settings:

  • only-trap_predefines.h
  • only-trap_problem-definition.h
  • only-trap_logger.h
  • only-trap_input.txt

Output:

  • only-trap.stdout

Simple plotting script:

import numpy as np
import matplotlib.pyplot as plt
from wdata.io import WData, Var

data = WData.load("only-trap.wtxt")

fig, ax = plt.subplots()
ax.plot(data.xyz[0], data.rho_a[-1]*2, color='red', label=r'density', lw=3.0) # plot last frame [-1]
ax.set(xlabel='x', ylabel=r'$n(x)$')
ax2 = ax.twinx()  # instantiate a second axes that shares the same x-axis
ax2.plot(data.xyz[0], np.angle(data.delta[-1])/np.pi, color='blue', label=r'arg. of phase', lw=2.0, ls="--") # plot last frame [-1]
ax2.set(ylabel=r'$V_{ext}(x)$')
fig.legend(loc="upper left", bbox_to_anchor=(0.3,0.3), bbox_transform=ax.transAxes)
fig.savefig("only-trap.png")

only-trap

Example 2: Soliton in the unitary Fermi gas.

Target: on top of the Example 1 imprint soliton.

Code: st-wslda-1d

Settings:

  • soliton-x0_predefines.h
  • soliton-x0_problem-definition.h
  • soliton-x0_logger.h
  • soliton-x0_input.txt

Output:

  • soliton-x0.stdout

Simple plotting script:

import numpy as np
import matplotlib.pyplot as plt
from wdata.io import WData, Var

data = WData.load("soliton-x0.wtxt")

fig, ax = plt.subplots()
ax.plot(data.xyz[0], data.rho_a[-1]*2, color='red', label=r'density', lw=3.0) # plot last frame [-1]
ax.set(xlabel='x', ylabel=r'$n(x)$')
ax2 = ax.twinx()  # instantiate a second axes that shares the same x-axis
ax2.plot(data.xyz[0], np.angle(data.delta[-1])/np.pi, color='blue', label=r'arg. of phase', lw=2.0, ls="--") # plot last frame [-1]
ax2.set(ylabel=r'$Arg[\Delta](x)/\pi$')
fig.legend(loc="upper left", bbox_to_anchor=(0.15,0.3), bbox_transform=ax.transAxes)
fig.savefig("soliton-x0.png")

soliton-x0

Archival examples

For other examples you can see here.

Clone repository
  • API version
  • Automatic interpolations
  • Auxiliary tools
  • Browsing the code
  • Broyden algorithm
  • C and CUDA
  • Campaign of calculations
  • Checking correctness of settings
  • Chemical potentials control
  • Code & Results quality
  • Common failures of static codes
  • Common failures of time dependent codes
  • Computation domain
  • Configuring GPU machine
  • Constraining densities and potentials
View All Pages