Boundary conditions Partial differential equations

조회 수: 1 (최근 30일)
jacob Mitch
jacob Mitch 2019년 11월 15일
I'm trying to set boundary conditions according to https://uk.mathworks.com/help/matlab/ref/pdepe.html
I have boundary conditions u(0,t)x = 0 and u(1,t) = 0. and initial conditions u(x,0) = u0(x) = −cos 2pix on the interval 0 ≤ x ≤ 1
So far I have created for the heat equation
function u0=heatic(x)
u0= -cos(2*pi*x);
I am now trying to create
function [pl,ql,pr,qr] = heatbc(xl,ul,xr,ur,t)
pl = %...
ql = %...
pr = %...
qr = %...
end
for the initial conditions but I dont understand how to plug in the boundary conditions for pl ql pr and qr.
Any help would be really appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by