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

1 Answer


0
4 months ago by
Hi, maybe this could help

http://dolfin-adjoint2.readthedocs.io/en/latest/documentation/custom_functions.html
Please login to add an answer/comment or follow this question.

Similar posts:
Search »