Skip to content

Matrix PDEs #131

@seadra

Description

@seadra

Any chance this NeuralPDE.jl can be eventually used with (complex) matrix PDEs?

Currently,

eq  = Dxx(u(x,y,θ)) + Dyy(u(x,y,θ)) ~ -sin(pi*x)*sin(pi*y)*[0 1; 0 1]

gives an error

MethodError: no method matching ~(::Operation, ::Array{Operation,2})

Closest candidates are:

~(::Expression, !Matched::Expression) at /home/user/.julia/packages/ModelingToolkit/jYRzA/src/equations.jl:38

~(::Expression, !Matched::Number) at /home/user/.julia/packages/ModelingToolkit/jYRzA/src/equations.jl:39

~(::Number, !Matched::Expression) at /home/user/.julia/packages/ModelingToolkit/jYRzA/src/equations.jl:40

Stacktrace:

[1] top-level scope at In[17]:7

I have two questions:

  • I assume this is a limitation ModelingToolkit, but maybe there an alternative way to define the PDEs with NeuralPDE.jl as a workaround?
  • After a workaround or a proper fix in ModelingToolkit, will NeuralPDE.jl still require additional work to support a complex matrix PDE?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions