-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solidify some interface for create_system
#3
Comments
We need to perform an additional step, which is to link the internal PDEs with BCs at nodes. I think we can follow How do we specialize equations for different node types though? Metadata! If you can supply boundary conditions for the node types (one per node type), and then list which nodes belong to which type, the discretizer can handle it downstream.
|
Upon further reflection, stuffing everything into metadata seems laborious, and we ought to rather implement "factories" for the different network components. The tough part is determining how to create the factories so that we can instantiate the objects and then connect them later...especially considering there isn't a guaranteed number of connections per node..or can we just build this into the factory? Something like:
Really comes down to interfaces - what do we know when we call a factory, what do we expect when we call |
This seems to work...
The symbolic variables defined inside This is nice though, as we can make factories that themselves construct objects with programmatically defined |
From MTK, a "component"
We can ask for edge equations, and have components that return
These |
Look to
MethodOfLines.jl
for inspiration. What function do they call to obtain aODEProblem
?dx,dt
? Is it an input? Is it inherited from the method?The text was updated successfully, but these errors were encountered: