Skip to content

ARLQCI/NoiseTAI

Repository files navigation

NoiseTAI.jl

Stable Dev CI Coverage

Generate synthetic random vibration time series with a prescribed acceleration Power Spectral Density (PSD), for use in Trapped Atom Interferometer (TAI) noise simulations.

Installation

using Pkg
Pkg.add(url="https://github.com/ARLQCI/NoiseTAI.jl")

Usage

Load a target PSD from a two-column ASCII file (Hz, a²/Hz), generate a waveform with the matching spectral shape, and write the result:

using NoiseTAI:
    PSDData,
    AccelerationTrace,
    AccelerationSpectrum,
    write_acceleration_trace,
    write_acceleration_spectrum
using Random: Xoshiro

psd = PSDData("acc_plane.dat")

tlist = collect(range(0; step=6.5e-6, length=2^15))

# tlist[end] == 0.2129855 # seconds

trace = AccelerationTrace(
	psd;
    tlist,
    f_band_min = 2.05,
    f_band_max = 1025.0,
    n_oscillators = 50000,
    rng = Xoshiro(9)
)

spectrum = AccelerationSpectrum(trace)

write_acceleration_trace(trace, "trace.dat")
write_acceleration_spectrum(spectrum, "spectrum.dat")

See the documentation for the full API reference and input file format.

About

Generate noisy acceleration traces for the Tractor Atomic Interferometer

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors