File:Fermi-Dirac distribution.gif

From testwiki
Jump to navigation Jump to search
    Original file (1,600 × 800 pixels, file size: 431 KB, MIME type: image/gif, looped, 76 frames, 7.6 s)
    Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Varying temperature in Fermi-Dirac distribution for chemical potential 0.55eV
    Date
    Source Own work based on: Fermi.gif: 
    Author Aspir8

    Julia 1.10.4 code

    This animation aims to provide a clearer view of the relevant function.

    using CairoMakie
    using LaTeXStrings
    
    nfermi(ϵ,T)  = 1/(exp((ϵ-μ)*eV/T/kB) + 1)
    
    eV = 1.602176634e−19
    kB = 1.380649e−23
    μ = 0.55 
    ϵ = range(.45,.65, 1000) 
    
    T = Observable(50.)
    y = @lift(nfermi.(ϵ,$T))
    
    fig = Figure(size = (800, 400),fontsize=28,linewidth=3,fonts= (; regular = "CMU Serif",bold="CMU Serif"),)
    ax = Axis(fig[1, 1], xlabel = L"Energy $\varepsilon$ [eV]",
    ylabel = L"$F(\varepsilon)$",
    xticks=LinearTicks(5),
    yticks=[0,1],)
    
    lines!(ax, ϵ, y, color = :dodgerblue)
    band!(ax,ϵ,zero.(ϵ),y,color=(:dodgerblue,0.3))
    ylims!(ax,0, 1.5)
    xlims!(ax,extrema(ϵ)...)
    hidedecorations!(ax,label=false,ticks=false,ticklabels=false)
    text!(ax, .53, 1.15, text=@lift(latexstring("\$T = $(round($T,digits=1)) \\,\\text{K}\$")),halign=:center, valign=:center,fontsize=28)
    fig
    
    ## animation
    framerate = 10
    t_iterator = exp.(range(log(2),log(375),38))
    t_iterator = [t_iterator;reverse(t_iterator)]
    record(fig, "nfermi.gif", t_iterator;
            framerate = framerate) do t
        T[]=t
    end
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
    The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

    Captions

    Varying temperature in Fermi-Dirac distribution for chemical potential 0.55eV

    Items portrayed in this file

    depicts

    1 July 2024

    image/gif

    441,126 byte

    800 pixel

    1,600 pixel

    b0fa0cbb2e1b1b7d54c4c1753e49865ef8cb893a

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current11:22, 1 July 2024Thumbnail for version as of 11:22, 1 July 20241,600 × 800 (431 KB)wikimediacommons>Aspir8better labels

    There are no pages that use this file.