필터 지우기
필터 지우기

2nd order non-linear differential equation

조회 수: 1 (최근 30일)
DJOULDE Aristide
DJOULDE Aristide 2023년 8월 22일
편집: Florian Bidaud 2023년 8월 22일
I have a heat transfer problem and I need to derive an 2nd order non-linear differential equation.
After replacing all the constants with A and B. My equation looks like this.
T'' + A(T)^4+ B= 0
Boundery conditions are T'(x=0)=C(T(0)-D), and T'(x=L)=E(D-T(L))
A,B,C,D,E are constants
And I need to solve for T(x).
Thank you in advance for your help.

답변 (1개)

Florian Bidaud
Florian Bidaud 2023년 8월 22일
편집: Florian Bidaud 2023년 8월 22일
If you have symoblic toolbox,
That would give something like that :
syms y(t)
Dy = diff(y);
ode = diff(y,t,2) + A*y^4 + B == 0
cond1 = Dy(0) == C*(y(0)-D); % Correction made after Torsten comment T(0) --> y(0)
cond2 = Dy(L) == E*(D-y(L)); % Correction made after Torsten comment T(L) --> y(L)
conds = [cond1 cond2];
ySol(x) = dsolve(ode,conds);
ySol = simplify(ySol)
  댓글 수: 2
Torsten
Torsten 2023년 8월 22일
cond1 = Dy(0) == C*(y(0)-D);
cond2 = Dy(L) == E*(D-y(L));
ySol(t) = dsolve(ode,conds);
instead of
cond1 = Dy(0) == C*(T(0)-D);
cond2 = Dy(L) == E*(D-T(L));
ySol(x) = dsolve(ode,conds);
Florian Bidaud
Florian Bidaud 2023년 8월 22일
@Torsten Indeed, thank you for spotting that

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by