Error with setting initial condition from previously obtained solution

14 ビュー (過去 30 日間)
Ryan Ash
Ryan Ash 2018 年 6 月 13 日
コメント済み: Ryan Ash 2018 年 6 月 14 日
Hello,
I am attempting to use a previously obtained pde solution as an initial condition. I keep getting an error that states:
"Error using pde.GeometricInitialConditions/precheckIC (line 217) Specify initial conditions as a scalar or a column vector of length PDESystemSize."
I figured this was something just with my code, so I attempted using the same function setInitialConditions(model,sol) using the code given in the setInitialConditions documentation (https://www.mathworks.com/help/pde/ug/pde.pdemodel.setinitialconditions.html), but the error continues to show up. This error does not occur when I specify the initial condition as a scalar or function, only when defining the initial condition as a previous result.
I am using the R2016a version of matlab
Thanks! Ryan

採用された回答

Ravi Kumar
Ravi Kumar 2018 年 6 月 14 日
Hi Ryan,
Ability to restart from previous solution was introduced in R2016b, refer to the release notes .
Please upgrade to a newer release, if you can, to use the nodal initial condition that would enable you to restart from a previous solution.
Regards,
Ravi
  1 件のコメント
Ryan Ash
Ryan Ash 2018 年 6 月 14 日
Thanks Ravi. It is a shame I overlooked that!
Ryan

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBoundary Conditions についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by