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 according 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(ax, plot_rsc, plot_labels, valid, freq_range, plot_range)[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, ranges, kind, kind_desc, plot_range, plot_rsc)[source]

Plot single band gap frequency ranges as rectangles.

sfepy.homogenization.band_gaps_app.plot_gaps(ax, plot_rsc, gaps, kinds, gap_ranges, freq_range, plot_range)[source]

Plot band gaps as rectangles.

sfepy.homogenization.band_gaps_app.plot_logs(ax, plot_rsc, plot_labels, freqs, logs, valid, freq_range, plot_range, draw_eigs=True, show_legend=True)[source]

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

sfepy.homogenization.band_gaps_app.save_raw_bg_logs(filename, logs)[source]

Save raw band gaps logs into the filename file.

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]