I am currently working on solving a DAE system in Mathematica, which includes an integral constraint and a moving boundary. I have attempted to use ParametricNDSolve, but it doesn't seem to work for my problem. Actually it origins from a research article(https://royalsocietypublishing.org/doi/10.1098/rspa.2013.0066). For simplicity, here are the details: If I ignore the constraint, simply let D=1 (Dw in my code), then I could get a solution directly from NDSolve:
\[Gamma]w = 1; \[Theta]G =
Pi/6; Dw = 1; eqs = {x'[s] == Cos[\[Theta][s]],
y'[s] == Sin[\[Theta][s]], \[Theta]''[s] ==
nx[s]*Sin[\[Theta][s]] - ny[s]*Cos[\[Theta][s]],
nx'[s] == -(\[Gamma]w/(r[s]))*Sin[\[Theta][s]],
ny'[s] == (\[Gamma]w/(r[s]))*Cos[\[Theta][s]],
r'[s] == 0, \[Beta]'[s] == 0}; bc0 = {x[0] == 0,
y[0] == 0, \[Theta][0] == 0}; bc1 = {x[Dw] ==
r[Dw]*Sin[\[Beta][Dw]], \[Theta]'[Dw] == 0,
nx[Dw] == -\[Gamma]w*Cos[\[Beta][Dw]],
ny[Dw] == \[Gamma]w*
Sin[\[Beta][Dw]], \[Theta][Dw] + \[Beta][
Dw] == \[Theta]G}; var = {x, y, \[Theta], nx, ny,
r, \[Beta]}; sol = NDSolve[Join[eqs, bc0, bc1], var, {s, 0, Dw}]
Next, I can find out appropriate D to fit with the constraint through changing the variable and repeating the calculation. However, such method seems inefficient.
I am wodering if there exists any direct methods to deal with such system. I tried ParametricNDSolve, however, I found it seems can't work because the position of D.
Any guidance or suggestions on how to approach this problem would be greatly appreciated!