Skip to content

MethodOfLines complains about my model... #249

@B-LIE

Description

@B-LIE

Here is my model:
image

This 1D model describes the flow of ideal gas in a pipe. I assume that inlet pressure $p_0$ is a known function of time, and that the outlet mass flow rate $\dot{m}_L$ is a known function of time.

I get a few warnings after the statement:

@named pipe = PDESystem(eqs,bcs,doms,[t,x],[p(t,x), (t,x)], 
                    [RdM=>RdM0, T=>T0, A_p=>Ap0, g=>g0, H=>H0, L=>L0, ℘=>℘0, f=>f0])

but the code still runs. However, when I then do:

prob = discretize(pipe,disc);

I get more warnings, and eventually the running crashes.

Question: Is there a problem with the term:

image

?? Is only the differentiation of a simple function allowed?

If so, how do I get around it?

  • Differentiating out, or
  • Adding an algebraic definition of the argument of the differentiation?

If you guys need it, I can provide the entire code.

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