solver with subdomains in pyDolfin
What methods are there currently available in the pyDolfin interface to solve a (non)linear problem where I have several boundary domains ie:
a = (...)*ds(1) + (...)*ds(2)
L = ...
I've had a look through some of the documentation in python for VariationalProb
Thanks for any help, David.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- dbeacham
- Solved:
- 2009-12-14
- Last query:
- 2009-12-14
- Last reply:
dbeacham (blackcabbage) said : | #1 |
After reading through the tutorial on fenics.org I managed to sort this out using the following for any others who have a problem (effectively augmenting the cahn-hilliard demo with an extra argument):
class MyProblem(
def __init__(self, a, L, ext_facet_
self.a = a
self.L = L
def F(self, b, x):
def J(self, A, x):
dbeacham (blackcabbage) said : | #2 |
That should be:
class MyProblem(
def __init__(self, a, L, ext_facet_
self.a = a
self.L = L
def F(self, b, x):
def J(self, A, x):