sfepy.terms.terms_multilinear module

class sfepy.terms.terms_multilinear.ECauchyStressTerm(*args, **kwargs)[source]
Call signature

de_cauchy_stress

(material, parameter)

arg_shapes = {'material': 'S, S', 'parameter': 'D'}
arg_types = ('material', 'parameter')
get_function(mat, parameter, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
name = 'de_cauchy_stress'
class sfepy.terms.terms_multilinear.EConvectTerm(*args, **kwargs)[source]
Call signature

de_convect

(virtual, state)

(parameter_1, parameter_2)

arg_shapes = {'parameter_1': 'D', 'parameter_2': 'D', 'state': 'D', 'virtual': ('D', 'state')}
arg_types = (('virtual', 'state'), ('parameter_1', 'parameter_2'))
get_function(virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('weak', 'eval')
name = 'de_convect'
class sfepy.terms.terms_multilinear.EDivGradTerm(*args, **kwargs)[source]
Call signature

de_div_grad

(opt_material, virtual, state)

(opt_material, parameter_1, parameter_2)

arg_shapes = [{'opt_material': '1, 1', 'virtual': ('D', 'state'), 'state': 'D', 'parameter_1': 'D', 'parameter_2': 'D'}, {'opt_material': None}]
arg_types = (('opt_material', 'virtual', 'state'), ('opt_material', 'parameter_1', 'parameter_2'))
get_function(mat, virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('weak', 'eval')
name = 'de_div_grad'
class sfepy.terms.terms_multilinear.EDivTerm(*args, **kwargs)[source]
Call signature

de_div

(opt_material, virtual)

(opt_material, parameter)

arg_shapes = [{'opt_material': '1, 1', 'virtual': ('D', None), 'parameter': 'D'}, {'opt_material': None}]
arg_types = (('opt_material', 'virtual'), ('opt_material', 'parameter'))
get_function(mat, virtual, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('weak', 'eval')
name = 'de_div'
class sfepy.terms.terms_multilinear.EDotTerm(*args, **kwargs)[source]
Call signature

de_dot

(opt_material, virtual, state)

(opt_material, parameter_1, parameter_2)

arg_shapes = [{'opt_material': '1, 1', 'virtual': (1, 'state'), 'state': 1, 'parameter_1': 1, 'parameter_2': 1}, {'opt_material': None}, {'opt_material': '1, 1', 'virtual': ('D', 'state'), 'state': 'D', 'parameter_1': 'D', 'parameter_2': 'D'}, {'opt_material': 'D, D'}, {'opt_material': None}]
arg_types = (('opt_material', 'virtual', 'state'), ('opt_material', 'parameter_1', 'parameter_2'))
get_function(mat, virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
integration = 'by_region'
modes = ('weak', 'eval')
name = 'de_dot'
class sfepy.terms.terms_multilinear.EIntegrateOperatorTerm(*args, **kwargs)[source]
Call signature

de_integrate

(opt_material, virtual)

arg_shapes = [{'opt_material': '1, 1', 'virtual': (1, None)}, {'opt_material': None}]
arg_types = ('opt_material', 'virtual')
get_function(mat, virtual, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
integration = 'by_region'
name = 'de_integrate'
class sfepy.terms.terms_multilinear.ELaplaceTerm(*args, **kwargs)[source]
Call signature

de_laplace

(opt_material, virtual, state)

(opt_material, parameter_1, parameter_2)

arg_shapes = [{'opt_material': '1, 1', 'virtual': (1, 'state'), 'state': 1, 'parameter_1': 1, 'parameter_2': 1}, {'opt_material': None}]
arg_types = (('opt_material', 'virtual', 'state'), ('opt_material', 'parameter_1', 'parameter_2'))
get_function(mat, virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('weak', 'eval')
name = 'de_laplace'
class sfepy.terms.terms_multilinear.ELinearElasticTerm(*args, **kwargs)[source]
Call signature

de_lin_elastic

(material, virtual, state)

(material, parameter_1, parameter_2)

arg_shapes = {'material': 'S, S', 'parameter_1': 'D', 'parameter_2': 'D', 'state': 'D', 'virtual': ('D', 'state')}
arg_types = (('material', 'virtual', 'state'), ('material', 'parameter_1', 'parameter_2'))
get_function(mat, virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('weak', 'eval')
name = 'de_lin_elastic'
class sfepy.terms.terms_multilinear.ENonPenetrationPenaltyTerm(*args, **kwargs)[source]
Call signature

de_non_penetration_p

(material, virtual, state)

arg_shapes = {'material': '1, 1', 'state': 'D', 'virtual': ('D', 'state')}
arg_types = ('material', 'virtual', 'state')
get_function(mat, virtual, state, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
integration = 'surface'
name = 'de_non_penetration_p'
class sfepy.terms.terms_multilinear.EScalarDotMGradScalarTerm(*args, **kwargs)[source]
Call signature

de_s_dot_mgrad_s

(material, virtual, state)

(material, state, virtual)

arg_shapes = [{'material': 'D, 1', 'virtual/grad_state': (1, None), 'state/grad_state': 1, 'virtual/grad_virtual': (1, None), 'state/grad_virtual': 1}]
arg_types = (('material', 'virtual', 'state'), ('material', 'state', 'virtual'))
get_function(mat, var1, var2, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('grad_state', 'grad_virtual')
name = 'de_s_dot_mgrad_s'
class sfepy.terms.terms_multilinear.EStokesTerm(*args, **kwargs)[source]
Call signature

de_stokes

(opt_material, virtual, state)

(opt_material, state, virtual)

(opt_material, parameter_v, parameter_s)

arg_shapes = [{'opt_material': '1, 1', 'virtual/grad': ('D', None), 'state/grad': 1, 'virtual/div': (1, None), 'state/div': 'D', 'parameter_v': 'D', 'parameter_s': 1}, {'opt_material': None}]
arg_types = (('opt_material', 'virtual', 'state'), ('opt_material', 'state', 'virtual'), ('opt_material', 'parameter_v', 'parameter_s'))
get_function(coef, vvar, svar, mode=None, term_mode=None, diff_var=None, **kwargs)[source]
modes = ('grad', 'div', 'eval')
name = 'de_stokes'
class sfepy.terms.terms_multilinear.ETermBase(*args, **kwargs)[source]
build_expression(texpr, *eargs, diff_var=None)[source]
can_backend = {'dask_single': <module 'dask.array' from '/home/eldaran/.local/lib/python3.8/site-packages/dask/array/__init__.py'>, 'dask_threads': <module 'dask.array' from '/home/eldaran/.local/lib/python3.8/site-packages/dask/array/__init__.py'>, 'jax': <module 'jax.numpy' from '/home/eldaran/.local/lib/python3.8/site-packages/jax/numpy/__init__.py'>, 'jax_vmap': <module 'jax.numpy' from '/home/eldaran/.local/lib/python3.8/site-packages/jax/numpy/__init__.py'>, 'numpy': <module 'numpy' from '/home/eldaran/.local/lib/python3.8/site-packages/numpy/__init__.py'>, 'numpy_loop': <module 'numpy' from '/home/eldaran/.local/lib/python3.8/site-packages/numpy/__init__.py'>, 'numpy_qloop': <module 'numpy' from '/home/eldaran/.local/lib/python3.8/site-packages/numpy/__init__.py'>, 'opt_einsum': <module 'opt_einsum' from '/home/eldaran/.local/lib/python3.8/site-packages/opt_einsum/__init__.py'>, 'opt_einsum_dask_single': <module 'dask.array' from '/home/eldaran/.local/lib/python3.8/site-packages/dask/array/__init__.py'>, 'opt_einsum_dask_threads': <module 'dask.array' from '/home/eldaran/.local/lib/python3.8/site-packages/dask/array/__init__.py'>, 'opt_einsum_loop': <module 'opt_einsum' from '/home/eldaran/.local/lib/python3.8/site-packages/opt_einsum/__init__.py'>, 'opt_einsum_qloop': <module 'opt_einsum' from '/home/eldaran/.local/lib/python3.8/site-packages/opt_einsum/__init__.py'>}
clear_cache()[source]
static function_silent(out, eval_einsum, *args)[source]
static function_timer(out, eval_einsum, *args)[source]
get_eval_shape(*args, **kwargs)[source]
get_fargs(*args, **kwargs)[source]
get_normals(arg)[source]
get_operands(diff_var)[source]
get_paths(expressions, operands)[source]
layout_letters = 'cqgvd0'
make_function(texpr, *args, diff_var=None)[source]
set_backend(backend='numpy', optimize=True, layout=None, **kwargs)[source]
set_verbosity(verbosity=None)[source]
verbosity = 0
class sfepy.terms.terms_multilinear.ExpressionArg(**kwargs)[source]
static from_term_arg(arg, term, cache)[source]
get_dofs(cache, expr_cache, oname)[source]
class sfepy.terms.terms_multilinear.ExpressionBuilder(n_add, cache)[source]
add_arg_dofs(iin, ein, name, n_components, iia=None)[source]
add_bf(iin, ein, name, cell_dependent=False)[source]
add_bfg(iin, ein, name)[source]
add_constant(name, cname)[source]
add_eye(iic, ein, name, iia=None)[source]
add_material_arg(arg, ii, ein)[source]
add_psg(iic, ein, name, iia=None)[source]
add_state_arg(arg, ii, ein, modifier, diff_var)[source]
add_virtual_arg(arg, ii, ein, modifier)[source]
apply_layout(layout, operands, defaults=None, verbosity=0)[source]
build(texpr, *args, diff_var=None)[source]
get_expressions(subscripts=None)[source]
static join_subscripts(subscripts, out_subscripts)[source]
letters = 'defgh'
make_eye(size)[source]
make_psg(dim)[source]
print_shapes(subscripts, operands)[source]
transform(subscripts, operands, transformation='loop', **kwargs)[source]
sfepy.terms.terms_multilinear.append_all(seqs, item, ii=None)[source]
sfepy.terms.terms_multilinear.collect_modifiers(modifiers)[source]
sfepy.terms.terms_multilinear.find_free_indices(indices)[source]
sfepy.terms.terms_multilinear.get_einsum_ops(eargs, ebuilder, expr_cache)[source]
sfepy.terms.terms_multilinear.get_loop_indices(subs, loop_index)[source]
sfepy.terms.terms_multilinear.get_output_shape(out_subscripts, subscripts, operands)[source]
sfepy.terms.terms_multilinear.get_sizes(indices, operands)[source]
sfepy.terms.terms_multilinear.get_slice_ops(subs, ops, loop_index)[source]
sfepy.terms.terms_multilinear.parse_term_expression(texpr)[source]