# sfepy.homogenization.coefs_base module

class sfepy.homogenization.coefs_base.CoefDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefDimDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefDimSym(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefDummy(name, problem, kwargs)

  Dummy class serving for computing and returning its requirements.

class sfepy.homogenization.coefs_base.CoefEval(name, problem, kwargs)

  Evaluate expression.

class sfepy.homogenization.coefs_base.CoefExprPar(name, problem, kwargs)

  The coefficient which expression can be parametrized via ‘expr_pars’, the dimension is given by the number of parameters.

  Example:

  > ‘expression’: ‘dw_surface_ndot.5.Ys(mat_norm.k%d, corr1)’, ‘expr_pars’: [ii for ii in range(dim)], ‘class’: cb.CoefExprPar,

  static set_variables_default(variables, ir, set_var, data)

class sfepy.homogenization.coefs_base.CoefMN(name, problem, kwargs)
  get_coef(row, col, volume, problem, data)
  static set_variables_default(variables, ir, ic, mode, set_var, data, dtype)

class sfepy.homogenization.coefs_base.CoefN(name, problem, kwargs)
  get_coef(row, volume, problem, data)
  static set_variables_default(variables, ir, ic, mode, set_var, data, dtype)

class sfepy.homogenization.coefs_base.CoefNonSym(name, problem, kwargs)
  is_sym = False
  static iter_sym(dim)

class sfepy.homogenization.coefs_base.CoefNonSymNonSym(name, problem, kwargs)
  is_sym = False
  static iter_sym(dim)

class sfepy.homogenization.coefs_base.CoefNone(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefOne(name, problem, kwargs)
  static set_variables_default(variables, set_var, data, dtype)

class sfepy.homogenization.coefs_base.CoefSum(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefSym(name, problem, kwargs)
  is_sym = True
  static iter_sym(dim)

class sfepy.homogenization.coefs_base.CoefSymDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CoefSymSym(name, problem, kwargs)
  is_sym = True
  static iter_sym(dim)

class sfepy.homogenization.coefs_base.CorrDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CorrDimDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CorrEqPar(name, problem, kwargs)

  The corrector which equation can be parametrized via ‘eq_pars’, the dimension is given by the number of parameters.

  Example:

  > ‘equations’: ‘dw_diffusion.5.Y(mat.k, q, p) =

  >   dw_integrate.5.%s(q)’,

  > ‘eq_pars’: (‘bYMp’, ‘bYMm’), ‘class’: cb.CorrEqPar,

class sfepy.homogenization.coefs_base.CorrEval(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CorrMiniApp(name, problem, kwargs)
  get_output(corr_sol, is_dump=False, extend=True, variables=None, var_map=None)
  get_save_name(save_format='.h5', stamp='')
  get_save_name_base()
  save(state, problem, variables=None, ts=None, var_map=None)
  setup_output(save_formats=None, post_process_hook=None, split_results_by=None)

    Instance attributes have precedence!

class sfepy.homogenization.coefs_base.CorrN(name, problem, kwargs)
  static set_variables_default(variables, ir, set_var, data)

class sfepy.homogenization.coefs_base.CorrNN(name, problem, kwargs)

  __init__() kwargs: {

  > ‘ebcs’ : [], ‘epbcs’ : [], ‘equations’ : {}, ‘set_variables’ : None,

  },

  static set_variables_default(variables, ir, ic, set_var, data)

class sfepy.homogenization.coefs_base.CorrOne(name, problem, kwargs)
  static set_variables_default(variables, set_var, data)

class sfepy.homogenization.coefs_base.CorrSetBCS(name, problem, kwargs)

class sfepy.homogenization.coefs_base.CorrSolution(**kwargs)

  Class for holding solutions of corrector problems.

  get_output(is_dump=False, var_map=None)
  get_ts_val(step)
  iter_solutions()
  iter_time_steps()

class sfepy.homogenization.coefs_base.MiniAppBase(name, problem, kwargs)
  static any_from_conf(name, problem, kwargs)
  init_solvers(problem)

    Setup solvers. Use local options if these are defined, otherwise use the global ones.

    For linear problems, assemble the matrix and try to presolve the linear system.

  process_options()

    Setup application-specific options.

    Subclasses should implement this method as needed.

    Returns:
      app_options Struct instance

        The application options.

class sfepy.homogenization.coefs_base.OnesDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.ShapeDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.ShapeDimDim(name, problem, kwargs)

class sfepy.homogenization.coefs_base.TSTimes(name, problem, kwargs)

  Coefficient-like class, returns times of the time stepper.

class sfepy.homogenization.coefs_base.VolumeFractions(name, problem, kwargs)

  Coefficient-like class, returns volume fractions of given regions within the whole domain.