fluidsim.solvers.sw1l.output

Output SW1L (fluidsim.solvers.sw1l.output)

class fluidsim.solvers.sw1l.output.OutputBaseSW1L(sim)[source]

Bases: fluidsim.base.output.base.OutputBasePseudoSpectral

static _complete_info_solver(info_solver)[source]

Complete the ParamContainer info_solver with child classes to be instantiated under sim.output.

This is a static method!

static _complete_params_with_default(params, info_solver)[source]

This static method is used to complete the params container.

linear_eigenmode_from_values_1k(self, ux_fft, uy_fft, eta_fft, kx, ky)[source]

Compute the linear eigenmodes for a single wavenumber.

omega_from_wavenumber(self, k)[source]

Evaluates the dispersion relation and returns the linear frequency

\[\omega = \sqrt{f ^ 2 + (ck)^2}\]
compute_enstrophy_fft(self)[source]

Calculate enstrophy from vorticity in the spectral space.

compute_PV_fft(self)[source]

Compute Ertel and Charney (QG) potential vorticity.

\[\zeta_{er} = \frac{f + \zeta}{1 + \eta}\]
\[\zeta_{ch} = \zeta - f \eta\]
compute_PE_fft(self)[source]

Compute Ertel and Charney (QG) potential enstrophy.

compute_CharneyPE_fft(self)[source]

Compute Charney (QG) potential enstrophy.

compute_energies(self)[source]

Compute kinetic, available potential and rotational kinetic energies.

compute_energiesKA(self)[source]

Compute K.E. and A.P.E.

compute_energy(self)[source]

Compute total energy by summing K.E. and A.P.E.

compute_enstrophy(self)[source]

Compute total enstrophy.

compute_lin_energies_fft(self)[source]

Compute quadratic energies decomposed into contributions from potential vorticity (\(q\)), divergence (\(\nabla.\mathbf u\)), and ageostrophic variable (\(a\)).

print_stdout

spatial_means

spect_energy_budget

spectra

normal_mode

Normal mode decomposition for SW1L solvers (fluidsim.solvers.sw1l.output.normal_mode) =================================================

Functions

linear_eigenmode_from_values_1k(ux_fft, …)

Compute q, d, a (fft) for a single wavenumber.

Classes

OutputBaseSW1L(sim)

OutputSW1L(sim)