sfepy.homogenization.coefs_base module¶
- class sfepy.homogenization.coefs_base.CoefDummy(name, problem, kwargs)[source]¶
Dummy class serving for computing and returning its requirements.
- class sfepy.homogenization.coefs_base.CoefExprPar(name, problem, kwargs)[source]¶
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,
- class sfepy.homogenization.coefs_base.CoefNonSym(name, problem, kwargs)[source]¶
- is_sym = False¶
- static iter_sym(dim)¶
- class sfepy.homogenization.coefs_base.CoefNonSymNonSym(name, problem, kwargs)[source]¶
- is_sym = False¶
- static iter_sym(dim)¶
- class sfepy.homogenization.coefs_base.CoefSym(name, problem, kwargs)[source]¶
- is_sym = True¶
- static iter_sym(dim)¶
- class sfepy.homogenization.coefs_base.CoefSymSym(name, problem, kwargs)[source]¶
- is_sym = True¶
- static iter_sym(dim)¶
- class sfepy.homogenization.coefs_base.CorrApplyFunction(name, problem, kwargs)[source]¶
Apply a user function to components of the requirements that correspond to each other.
The user function positional arguments are problem, data (see
CorrApplyFunction.__call__()) and the requirements in the order specified in the ‘requires’ list in the corrector configuration.If there are no requirements, either ‘variables’ or ‘variable’ key must be present in the corrector configuration.
Examples
Sum correponding components of three correctors:
requirements = { ... 'corrs_sum': { 'requires': ['corrs1', 'corrs2, corrs3], 'function': lambda problem, data, a, b, c: a + b + c, 'class': CorrApplyFunction, 'save_name': 'corrs_sum', }, ... }
- class sfepy.homogenization.coefs_base.CorrEqPar(name, problem, kwargs)[source]¶
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.CorrNN(name, problem, kwargs)[source]¶
__init__() kwargs: {
‘ebcs’ : [], ‘epbcs’ : [], ‘equations’ : {}, ‘set_variables’ : None,
},
- class sfepy.homogenization.coefs_base.CorrSolution(**kwargs)[source]¶
Class for holding solutions of corrector problems.
- class sfepy.homogenization.coefs_base.MiniAppBase(name, problem, kwargs)[source]¶