Code generator for BOUT++ in python. Example:
import pybout
f = pybout.Field("f")
g = pybout.Field("g")
f.ddt = g
g.ddt = -f
model = pybout.PhysicsModel(f, g)
print(str(model)) # Generates C++ code
Code generator for BOUT++ in python. Example:
import pybout
f = pybout.Field("f")
g = pybout.Field("g")
f.ddt = g
g.ddt = -f
model = pybout.PhysicsModel(f, g)
print(str(model)) # Generates C++ code