to_dolfin_expression#
- cuqipy_fenics.utilities.to_dolfin_expression(value, **expression_kwargs)#
Converts a value to a dolfin.Expression. The value should be a callable, dolfin.Expression or a number. expression_kwargs are passed to the dolfin.Expression constructor if the value is a callable. An example of the keyword arguments is the degree argument for dolfin.Expression which is used to specify the element (polynomial) degree of the expression.