ufl.formatting package¶
Submodules¶
ufl.formatting.ufl2unicode module¶
UFL to unicode.
- class ufl.formatting.ufl2unicode.Expression2UnicodeHandler(argument_names=None, coefficient_names=None, colorama_bold=False)[source]¶
 Bases:
MultiFunctionConvert expressions to unicode.
- class ufl.formatting.ufl2unicode.PrecedenceRules[source]¶
 Bases:
MultiFunctionAn enum-like class for C operator precedence levels.
- bessel_function(o)¶
 Return precedence of a call.
- cell_avg(o)¶
 Return precedence of a restriced.
- cofactor(o)¶
 Return precedence of a mathop.
- component_tensor(o)¶
 Return the highest precendence.
- cross(o)¶
 Return precedence of a product.
- derivative(o)¶
 Return precedence of a mathop.
- deviatoric(o)¶
 Return precedence of a mathop.
- division(o)¶
 Return precedence of a product.
- dot(o)¶
 Return precedence of a product.
- facet_avg(o)¶
 Return precedence of a restriced.
- ge(o)¶
 Return precedence of a lt.
- gt(o)¶
 Return precedence of a lt.
- index_sum(o)¶
 Return precedence of an add.
- indexed(o)¶
 Return precedence of a call.
- inner(o)¶
 Return precedence of a product.
- le(o)¶
 Return precedence of a lt.
- list_tensor(o)¶
 Return the highest precendence.
- math_function(o)¶
 Return precedence of a call.
- max_value(o)¶
 Return precedence of a call.
- min_value(o)¶
 Return precedence of a call.
- ne(o)¶
 Return precedence of an eq.
- operator(o)¶
 Return precedence of a lowest.
- outer(o)¶
 Return precedence of a product.
- skew(o)¶
 Return precedence of a mathop.
- sym(o)¶
 Return precedence of a mathop.
- terminal(o)¶
 Return the highest precendence.
- trace(o)¶
 Return precedence of a mathop.
- class ufl.formatting.ufl2unicode.UC[source]¶
 Bases:
objectAn enum-like class for unicode characters.
- Gamma = 'Γ'¶
 
- Omega = 'Ω'¶
 
- bold_math_A = '𝐀'¶
 
- bold_math_a = '𝐚'¶
 
- circled_times = '⊗'¶
 
- combining_overline = '̅'¶
 
- combining_right_arrow_above = '⃗'¶
 
- cross_product = '⨯'¶
 
- division_slash = '∕'¶
 
- dot = '⋅'¶
 
- element_of = '∈'¶
 
- epsilon = 'ε'¶
 
- for_all = '∀'¶
 
- gamma = 'γ'¶
 
- ge = '≥'¶
 
- gt = '>'¶
 
- integral = '∫'¶
 
- integral_contour = '∮'¶
 
- integral_double = '∬'¶
 
- integral_surface = '∯'¶
 
- integral_triple = '∭'¶
 
- integral_volume = '∰'¶
 
- le = '≤'¶
 
- left_angled_bracket = '⟨'¶
 
- left_double_angled_bracket = '⟪'¶
 
- left_white_square_bracket = '⟦'¶
 
- logical_and = '∧'¶
 
- logical_not = '¬'¶
 
- logical_or = '∨'¶
 
- lt = '<'¶
 
- nabla = '∇'¶
 
- nary_product = '∏'¶
 
- ne = '≠'¶
 
- not_element_of = '∉'¶
 
- omega = 'ω'¶
 
- partial = '∂'¶
 
- right_angled_bracket = '⟩'¶
 
- right_double_angled_bracket = '⟫'¶
 
- right_white_squared_bracket = '⟧'¶
 
- sqrt = '√'¶
 
- subscript_digits = ['₀', '₁', '₂', '₃', '₄', '₅', '₆', '₇', '₈', '₉']¶
 
- subscript_equals = '₌'¶
 
- subscript_left_paren = '₍'¶
 
- subscript_minus = '₋'¶
 
- subscript_plus = '₊'¶
 
- subscript_right_paren = '₎'¶
 
- sum = '∑'¶
 
- superscript_digits = ['⁰', '¹', '²', '³', '⁴', '⁵', '⁶', '⁷', '⁸', '⁹']¶
 
- superscript_equals = '⁼'¶
 
- superscript_left_paren = '⁽'¶
 
- superscript_minus = '⁻'¶
 
- superscript_plus = '⁺'¶
 
- superscript_right_paren = '⁾'¶
 
- thin_space = '\u2009'¶
 
- transpose = 'ᵀ'¶
 
- ufl.formatting.ufl2unicode.expression2unicode(expression, argument_names=None, coefficient_names=None)[source]¶
 Generate Unicode string for a UFL expression.
- ufl.formatting.ufl2unicode.form2unicode(form, formdata)[source]¶
 Generate Unicode string for a UFL form.
Module contents¶
Formatting.