フィルターのクリア

how can I write c,f,s in pde function?

2 ビュー (過去 30 日間)
Shangeetha Mahendran
Shangeetha Mahendran 2018 年 12 月 20 日
編集済み: madhan ravi 2018 年 12 月 20 日
if c is changing with x then how to write f and s
function [c,f,s]= pdefun1(x,z,u,DuDx)
c = (2*U_a/D_s)*(1-x.^2/R1^2); %%% HERE c is changing with x
f = DuDx;
s=0;
end
%%
function u0 = pdeic1(x)
u0 =20;
end
%%
function [pl,ql,pr,qr] = pdebc1(xl,ul,xr,ur,z)
pl=0;
ql=1;
pr=0.6*u0;
qr=1;
end
  5 件のコメント
Shangeetha Mahendran
Shangeetha Mahendran 2018 年 12 月 20 日
thank you
madhan ravi
madhan ravi 2018 年 12 月 20 日
編集済み: madhan ravi 2018 年 12 月 20 日
@Torsten please post it as an answer so that it would be helpful for many on how to solve pdes properly.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeEigenvalue Problems についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by