Using Python defined functions with dolfin

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

1 Answer

4 months ago by
Hi, maybe this could help
Please login to add an answer/comment or follow this question.

Similar posts:
Search »