I have a problem nesting the function ParametricNDSolveValue. The documentation does not help so I hope to find some answers here.
A minimalistic example for my problem is:
PF1 = ParametricNDSolveValue[{u/uT == f'[u], f[0] == 0}, f, {u, 0, 10}, {uT}]
PF2 = ParametricNDSolveValue[{PF1[uT][u] == f'[u], f[0] == 0},
f, {u, 0, 10}, {uT}]
which yields the error
ParametricNDSolveValue::dsfun: ParametricFunction[1,Internal`Bag[<1>],<<2>>,{{uT$44821},<<26>>[<2>],{},<<1>>,{1},{Automatic,0,0}},{NDSolve`base$44828,NDSolve`NDSolveParametricFunction[0,{ParametricNDSolveValue,Internal`Bag[<2>],None,ParametricNDSolveValue},<<6>>,{},All]}]<<1>><<2>>] cannot be used as a function. >>
How can I make this work?
Note:
- I'm aware that one can do this calculation in a much easier way, I am however concerned with a calculation where I have to nest the command ParametricNDSolveValue in the above way.
- I am using Mathematica 10.4.