# sfepy.homogenization.band_gaps_app module

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

  Application for computing acoustic band gaps.

  call()

    Construct and call the homogenization engine according to options.

  plot_band_gaps(coefs)
  plot_dispersion(coefs)
  static process_options(options)

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

  static process_options_pv(options)

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

  setup_options()

sfepy.homogenization.band_gaps_app.plot_eigs(ax, plot_rsc, plot_labels, valid, freq_range, plot_range)

  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)

  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)

  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)

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

sfepy.homogenization.band_gaps_app.save_raw_bg_logs(filename, logs)

  Save raw band gaps logs into the filename file.

sfepy.homogenization.band_gaps_app.transform_plot_data(datas, plot_transform, conf)

sfepy.homogenization.band_gaps_app.try_set_defaults(obj, attr, defaults, recur=False)