# MethodOfLines PDESystem with Internal Systems

**URL:** <https://discourse.julialang.org/t/methodoflines-pdesystem-with-internal-systems/104409>\
**Category:** Modelling & Simulations\
**Created:** [September 29, 2023, 7:04pm UTC](https://discourse.julialang.org/t/methodoflines-pdesystem-with-internal-systems/104409 "2023-09-29T19:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnb/32/44115_2.png) [@johnb](https://discourse.julialang.org/u/johnb)\
**Post date:** [September 29, 2023, 7:04pm UTC](https://discourse.julialang.org/t/methodoflines-pdesystem-with-internal-systems/104409/1 "2023-09-29T19:04:26Z")

</div>

The definition for a PDESystem seems to show that internal systems are compatible, ([PDESystem · ModelingToolkit.jl](https://docs.sciml.ai/ModelingToolkit/stable/systems/PDESystem/#Constructors)) but it looks like discretization of the PDESystem does not look at these systems, causing errors when discretization is attempted. From what I can tell, the equations, variables, and parameters from these internal systems are not pulled into the main PDESystem in the way that they are for ODESystems on system definition from eqs, ivs, dvs, etc.  
`ODESystem(eqs, t, vars, pars; systems = [sys])`  
vs  
`PDESystem(eqs, bcs, domains, [ivs], [dvs], pars; systems = [sys])`

Are internal systems (e.g. from ModelingToolkitStandardLibrary) intended to be compatible with the PDESystem definition/discretization, or is this unsupported? The only reference to `PDESystem.systems` that I can find is in [Give PDESystem a systems field by xtalax · Pull Request #1588 · SciML/ModelingToolkit.jl · GitHub](https://github.com/SciML/ModelingToolkit.jl/pull/1588) which seems to be related to visualization of equations than added functionality.

---

<div class="post-metadata">

**Author:** ![xtalax](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xtalax/32/35293_2.png) [@xtalax](https://discourse.julialang.org/u/xtalax)\
**Post date:** [October 3, 2023, 1:13pm UTC](https://discourse.julialang.org/t/methodoflines-pdesystem-with-internal-systems/104409/2 "2023-10-03T13:13:52Z")

</div>

This is currently unsupported, but we are planning soon to provide an interface for this, can you post this in an issue?
