I’ve looked at the documentation for Handling Mass Matrices for DifferentialEquations.jl. In the example was a singular matrix. I would like to know how to implement a state dependent mass matrix, where the matrix M in equation
Mu’ =f(u,p,t)
has the dependent variables in the matrix itself.
The image below is the equation I’m trying to replicate:
I’m trying to integrate from Matlab to Julia for this type of problem. I thought replacing the mass_matrix option with a function would work but it produces the method error MethodError: no method matching issingular(::typeof(function goes here))
We just need to clean up our documentation of DiffEqOperators to make it more clear how to define dependent DiffEqOperators, since that’s all it is (the mass matrix can be any DiffEqOperator)
Thank you for that. I’m still new to Julia, could you link me to the equation your code snippet is solving to help visualize it for me? I can try to figure out the syntax from there.
Has the solution to this problem updated? DifferentialEquations.jl documentation says that state dependent mass matrices are “not directly supported” and there is no documentation in DiffEqOperators.jl either. Would the current implementation support Complex variables? @ChrisRackauckas@Julius_Martensen
I have a question of curiosity. What are the reasons that may prevent from adding a mass matrix as a parameter of a solver ? Is it for a technical reason ?
Currently, I include the mass matrix in the definition of the problem using du = M\u. I am happy with that, but I notice that Matlab allows for the definition of a mass matrix via odeset for a couple of its solvers. I guess that in this case some numerical strategies are implemented to solve the problem efficiently (but I may be wrong).
Thank you for helping me to fill my ingnorance on this topic.