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
  • Campaign of calculations

Campaign of calculations · Changes

Page history
Create Campaign of calculations authored May 23, 2021 by Gabriel Wlazłowski's avatar Gabriel Wlazłowski
Hide whitespace changes
Inline Side-by-side
Campaign-of-calculations.md 0 → 100644
View page @ bc4d7d4c
# Input file and repeated tags
If in the `input` file the same tag appears more than once the code will apply the value that appears as last. For example:
``` bash
temperature 0.01 # requested temperature in units of eF, default T=0
energyconveps 1.0e-6 # energy convergence epsilon
npartconveps 1.0e+6 # number of particles convergence epsilon
linearmixing 0.5 # mixing parameter (alpha) for linear mixing, default=0.5
muchange 0.0 # coefficient for changing chemical potential, default=0.5
mumaxchange 0.05 # maximal amount that chemical potential can change between iterations, in units of Fermi energy
maxiters 200 # maximum number of iterations, default=10000
temperature 0.02 # ... AND AGAIN TEMPERATURE ...
referencekF 1.0 # reference kF, otherwise max density will be used to calculate it automatically as kF=(3pi^2 n)^(1/3)
aBdG -0.9 # scattering length for BDG mode, used only when FUNCTIONAL==BDG
temperature 0.03 # ... AND AGAIN TEMPERATURE ... THIS ONE WILL BE USES IN CALCS!
```
Here, the `temperature` is provided three times, and finally, the value `0.03` will be in the calculation.
# Executing campaign of calculations
The common situation is that we want to execute series calculations for various input parameters. As examples let us consider the case, where we would like to repeat the same calculations for temperatures 0.01, 0.02, 0.03. We can do it within the single script as follow:
```bash
# input.txt contains common settings for all runs
# T=0.01
echo "temperature 0.01" >> input.txt
echo "outprefix T0.01" >> input.txt
mpirun -np 20 ./st-wslda-2d input.txt
# T=0.02
echo "temperature 0.02" >> input.txt
echo "outprefix T0.02" >> input.txt
# I can use previous result as a starting point
echo "inprefix T0.01" >> input.txt
echo "inittype 5" >> input.txt
mpirun -np 20 ./st-wslda-2d input.txt
# T=0.03
echo "temperature 0.03" >> input.txt
echo "outprefix T0.03" >> input.txt
# I can use previous result as a starting point
echo "inprefix T0.02" >> input.txt
echo "inittype 5" >> input.txt
mpirun -np 20 ./st-wslda-2d input.txt
```
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