WARPXM v1.10.0
|
Child of Density1D for arbitrary density functions. More...
Child of Density1D for arbitrary density functions.
Public Member Functions | |
def | __init__ (self, x, n) |
Calculates density profile attributes. | |
![]() | |
def | __init__ (self, x, **density_kwargs) |
Calculates initial density profile and it's attributes. | |
def | calc_fourier_coeff (self, N=10) |
Calculate fourier coefficients of the density profile. | |
def | plot_fourier_coeff (self, N=10) |
Plot fourier coefficents on bar graph. | |
def | reconstruct (self) |
Calculates reconstruction of density profile using Fourier coeff. | |
def | calc_error (self, ord=None) |
Uses numpy.linalg.norm() to calculate error norm of fourier approx. | |
def | plot_reconstruction (self, N, ord=None) |
Plot set of reconstructions along with orginal profile. | |
Public Attributes | |
x | |
a | |
n | |
n_min | |
n_max | |
n_avg | |
chi | |
coeff | |
n_recon | |
![]() | |
x | |
a | |
n | |
n_min | |
n_max | |
n_avg | |
chi | |
coeff | |
n_recon | |
N | |
Protected Member Functions | |
def | _density_func (self) |
Not used as density vector is passed in at object initiation. | |
def | _density_func (self, **density_kwargs) |
Populates density array with constant value. | |
def warpy.post_processing.band_diagrams.density_profiles.Density1DArb.__init__ | ( | self, | |
x, | |||
n | |||
) |
Calculates density profile attributes.
x | List of x values |
n | List of density values. Must be same size as x. |
Reimplemented from warpy.post_processing.band_diagrams.density_profiles.Density1D.
|
protected |
Not used as density vector is passed in at object initiation.
Reimplemented from warpy.post_processing.band_diagrams.density_profiles.Density1D.
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.a |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.chi |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.coeff |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.n |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.n_avg |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.n_max |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.n_min |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.n_recon |
warpy.post_processing.band_diagrams.density_profiles.Density1DArb.x |