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.
CoefFMOne
(name, problem, kwargs)[source]¶ Fading memory scalar coefficients.
-
class
sfepy.homogenization.coefs_base.
CoefFMSym
(name, problem, kwargs)[source]¶ Fading memory sym coefficients.
-
class
sfepy.homogenization.coefs_base.
CoefFMSymSym
(name, problem, kwargs)[source]¶ Fading memory sym x sym coefficients.
-
class
sfepy.homogenization.coefs_base.
CoefN
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, ir, set_var, data)¶
-
static
-
class
sfepy.homogenization.coefs_base.
CoefNN
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, ir, ic, mode, set_var, data)¶
-
static
-
class
sfepy.homogenization.coefs_base.
CoefOne
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, set_var, data)¶
-
static
-
class
sfepy.homogenization.coefs_base.
CoefSymSym
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, ir, ic, mode, set_var, data)¶
-
static
-
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_surface_integrate.5.%s(q)’,
‘eq_pars’: (‘bYMp’, ‘bYMm’), ‘class’: cb.CorrEqPar,
-
class
sfepy.homogenization.coefs_base.
CorrMiniApp
(name, problem, kwargs)[source]¶ -
get_dump_name
()¶
-
get_dump_name_base
()¶
-
get_output
(corr_sol, is_dump=False, extend=True, variables=None)¶
-
get_save_name
()¶
-
get_save_name_base
()¶
-
save
(state, problem, variables=None)¶
-
setup_output
(save_format=None, dump_format=None, post_process_hook=None, file_per_var=None)¶ Instance attributes have precedence!
-
-
class
sfepy.homogenization.coefs_base.
CorrN
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, ir, set_var, data)¶
-
static
-
class
sfepy.homogenization.coefs_base.
CorrNN
(name, problem, kwargs)[source]¶ __init__() kwargs: {
‘ebcs’ : [], ‘epbcs’ : [], ‘equations’ : {}, ‘set_variables’ : None,},
-
class
sfepy.homogenization.coefs_base.
CorrOne
(name, problem, kwargs)[source]¶ -
static
set_variables_default
(variables, set_var, data)¶
-
static
-
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]¶
-
class
sfepy.homogenization.coefs_base.
PressureEigenvalueProblem
(name, problem, kwargs)[source]¶ Pressure eigenvalue problem solver for time-dependent correctors.
-
class
sfepy.homogenization.coefs_base.
TCorrectorsViaPressureEVP
(name, problem, kwargs)[source]¶ Time correctors via the pressure eigenvalue problem.
-
save
(dump_name, save_name, vec_u, vec_p, vec_dp, ts, problem)[source]¶ - saves raw correctors into hdf5 files (filename)
- saves correctors transformed to output for visualization
-