File:Plot showing Maxwell-Juttner distribution (relativistic Maxwellian) for electron gas at different temperatures.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 450 pixels, file size: 145 KB)

    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: Created using CairoMakie.jl, SpecialFunctions.jl, and the Julia language
    Date
    Source Own work
    Author Hellacioussatyr

    Script used to create this plot:

    using CairoMakie
    using SpecialFunctions: besselk
    # Installed versions:
    #   [13f3f980] CairoMakie v0.15.6
    #   [276daf66] SpecialFunctions v2.6.1
    
    # nextfloat() because at γ=1, f=0 and that can't be plotted in log-space
    γs = logrange(nextfloat(1.0), 10^4, length = 1000)
    
    θs = Pair{Real,Symbol}[0.1 => :red, 1 => :green, 5 => :blue,
                           10 => :fuchsia, 50 => :orange, 100 => :black]
    
    β(γ) = √(1 - 1/γ^2)
    f(γ; θ) = (γ^2 * β(γ))/(θ * besselk(2, 1/θ)) * exp(-γ/θ)
    
    fig = Figure()
    ax = Axis(
        fig[1,1];
        title = "Maxwell–Jüttner Speed distribution for Relativistic Electron Gas",
        xlabel = "γ", ylabel = "f(γ)",
        xscale = log10, xticks = LogTicks(LinearTicks(8)),
        yscale = log10, yticks = LogTicks(LinearTicks(6)),
        xminorticks = IntervalsBetween(5), xminorticksvisible = true,
        yminorticks = IntervalsBetween(4), yminorticksvisible = true,
    )
    for (θ, color) in θs
        lines!(ax, γs, f.(γs; θ); label = string(θ), color)
    end
    axislegend(ax, "θ = kT/mₑc²";
               framevisible = false, nbanks = 3, rowgap = 0, colgap = 8)
    xlims!(ax, 0.9, 10^3.55)
    ylims!(ax, 1e-11, 10)
    
    save("Plot showing Maxwell-Juttner distribution (relativistic Maxwellian) for electron gas at different temperatures.svg", fig)
    

    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

    Plot showing Maxwell-Juttner distribution (relativistic Maxwellian) for electron gas at different temperatures

    Items portrayed in this file

    depicts

    2 November 2025

    image/svg+xml

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current03:25, 3 November 2025Thumbnail for version as of 03:25, 3 November 2025600 × 450 (145 KB)wikimediacommons>HellacioussatyrUploaded own work with UploadWizard

    There are no pages that use this file.