Boundary condition depending on the State #488
-
I am implementing a custom PDE class and would like to add a not-so-easy boundary condition. Is it possible in py-PDE to add a Dirichlet boundary condition with its value being a function of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
If I understand you correctly, you would like to have a custom periodic boundary condition. This should in principle be possible, although the condition would not depend on the exact value at the boundary but rather on the value of the support point next to the boundary (a distance Such conditions are currently not implemented, but this should be fairly straightforward. However, I would need to have a good term for such a condition. Do you have a suggestion? |
Beta Was this translation helpful? Give feedback.
I just pushed #492 , which should allow you to use
{"type": "value_expression", "value": "func(value)", "value_cell": -1, "user_funcs": {"func": user_defined_boundary}}
. I hope this is what you meant.