SfePy NTC

Previous topic

sfepy.discrete.iga.utils module

Next topic

sfepy.homogenization.coefficients module

This Page

sfepy.homogenization.band_gaps_app module

class sfepy.homogenization.band_gaps_app.AcousticBandGapsApp(conf, options, output_prefix, **kwargs)[source]

Application for computing acoustic band gaps.

call()[source]

Construct and call the homogenization engine accoring to options.

plot_band_gaps(coefs)[source]
plot_dispersion(coefs)[source]
static process_options(options)[source]

Application options setup. Sets default values for missing non-compulsory options.

static process_options_pv(options)[source]

Application options setup for phase velocity computation. Sets default values for missing non-compulsory options.

setup_options()[source]
sfepy.homogenization.band_gaps_app.plot_eigs(fig_num, plot_rsc, plot_labels, valid, freq_range, plot_range, show=False, clear=False, new_axes=False)[source]

Plot resonance/eigen-frequencies.

valid must correspond to freq_range

resonances : red masked resonances: dotted red

sfepy.homogenization.band_gaps_app.plot_gap(ax, ii, f0, f1, kind, kind_desc, gmin, gmax, plot_range, plot_rsc)[source]

Plot a single band gap as a rectangle.

sfepy.homogenization.band_gaps_app.plot_gaps(fig_num, plot_rsc, gaps, kinds, freq_range, plot_range, show=False, clear=False, new_axes=False)[source]

Plot band gaps as rectangles.

sfepy.homogenization.band_gaps_app.plot_logs(fig_num, plot_rsc, plot_labels, freqs, logs, valid, freq_range, plot_range, draw_eigs=True, show_legend=True, show=False, clear=False, new_axes=False)[source]

Plot logs of min/middle/max eigs of a mass matrix.

sfepy.homogenization.band_gaps_app.transform_plot_data(datas, plot_transform, conf)[source]
sfepy.homogenization.band_gaps_app.try_set_defaults(obj, attr, defaults, recur=False)[source]