### Using Python defined functions with dolfin

110
views
0
4 months ago by
Is there a way to use a python defined function, i.e.:
def func(x):
# blah
return result
with dolfin?  This would be in place of directly writing things with the Expression() method.  The point is to allow me to more easily define and inspect such functions using Python methods (i.e., matpoltlib) before substituting them into the dolfin code.
Community: FEniCS Project