MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / exprToStr

Function exprToStr

tests/MMS/hw/mms.py:52–54  ·  view source on GitHub ↗

Convert a sympy expression to a string for BOUT++ input

(expr)

Source from the content-addressed store, hash-verified

50
51
52def exprToStr(expr):
53 """Convert a sympy expression to a string for BOUT++ input"""
54 return str(expr).replace("**", "^") # Replace exponent operator
55
56
57####

Callers 10

mms.pyFile · 0.90
mms.pyFile · 0.90
mms.pyFile · 0.90
mms.pyFile · 0.90
mms.pyFile · 0.70
mms.pyFile · 0.50
mms.pyFile · 0.50
mms-slab3d.pyFile · 0.50
mms-slab2d.pyFile · 0.50
mms.pyFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected