Define subdomains depending on parameters
6 months ago by
For this purpose, I want to use the class DiricheltBoundary and define the 'inside'-function such that it returns 'true' on \(\Omega-\Omega_0\) and 'false' on \(\Omega_0\).
Now my problem is, that \(\Omega_0\) depends on a previously computed dolfin::Function 'f', i.e. \( \omega\in\Omega_0 \Leftrightarrow f(\omega)<0 \).
Anybody knows how to implement this in Fenics-C++? Can I somehow incooperate a dolfin::Function as an argument to the 'inside'-function of DiricheltBoundary or is there another workaround?
Community: FEniCS Project
Please login to add an answer/comment or follow this question.