This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

define/call subroutines

0 votes

Hi, when solving my coupled nonlinear PDE systems I need to extract the boundary of the domain, compute its curvature and the force there, and move mesh. I wanted to know whether I can write a subroutine for these treatments and call this subroutine. I did not find a good example in the tutorial py files. Thanks!

BTW, Maybe I shall say "define/call functions" but function has its specific meaning in Fenics so I use subroutines instead.

asked May 24, 2017 by yzhou FEniCS Novice (150 points)
...