How can I impose a boundary condition in a custom class without applying it to an operator? #255
Unanswered
HannoSpreeuw
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The simplest option would be to supply different boundary conditions to different differential operators, i.e., when they apply to different fields. In the case of the SIR model, there are three calls to the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for building this awesome package.
I have used the example SIR model as a starting point for my work.
From this example I got to understand how the boundary conditions are applied to the laplace operator: e.g.
s.laplace(self.bc)
.But that is a boundary condition for the laplace operator applied to the field, how do you specify a boundary condition for the field itself in the framework of the SIR example?
And how do you do that when not all fields have the same boundary conditions, contrary to the SIR example?
From this discussion I understand that
bc_ops
can used for different boundary conditions for different fields. But that discussion does not use the custom PDE class approach as in the example SIR model, so I am unable to map that to something I could use.Beta Was this translation helpful? Give feedback.
All reactions