what is finite elemnt method code for Sytem of ODE
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
what is the math lab code of the following by finite element method please please
f"'+(f+g)f''-Kf^5-f'^2-Mf'+lambda*(theta+N*phi)=0------ (1)
g'''+(f+g)g''-kg^5+M*g'=0 ----- (2)
theta''+Pr*(f+g)theta'+Pr*Nb*theta'phi'+Pr*Nt*theta'^2-deltatPr(f+g)(f'+g')theta')+(theta'')(f+g)^2=0------------------------(2)
phi"+(Nt/Nb)*theta"+Sc(f+g)-deltac*Sc[(f+g)^2phi"+(f+g)(f'+g')ph']= 0------(3)
'f','g','theta','phi' are the dependent variables and η is the independent variable
And the boundary conditions are as follows:
f′(η) = 1 + αf″(η)) + βf‴(η) + cf⁗(η) + δf(v)(η),
g(η) =c + φg″(η) + χg‴(η) + ψg⁗(η) + ωg(v)(η),
θ′(η) = - βi1(1 - θ(η)),
ϕ′(η) =- βi2(1 - ϕ(η)), at η = 0, f′(∞) ⟶ 0, f″(∞) ⟶ 0, f‴(∞) ⟶ 0, g′(∞) ⟶ 0, g″(∞) ⟶ 0, g‴(∞) ⟶ 0, θ(∞) ⟶ 0, ϕ(∞) ⟶ 0
So solving these equations numerically I have used finite element method.
0 comentarios
Respuestas (1)
Torsten
el 22 de Oct. de 2023
Movida: Torsten
el 22 de Oct. de 2023
First correct your boundary conditions.
You need 3 + 3 + 2 + 2 = 10, and they can only have derivatives up to (order of equations - 1).
Thus f''', f'''', g''', g'''' are not allowed.
After having done this, I suggest you start setting up your problem in bvp4c first to have a reference solution.
4 comentarios
Torsten
el 5 de Nov. de 2023
Movida: John D'Errico
el 5 de Nov. de 2023
At the moment, there can be two reasons if your code doesn't work: your mathematical problem is hard to solve or ill-posed or your finite-element code has errors.
So I repeat my advice:
Start setting up your problem first within "bvp4c" or "bvp5c". If you get problems or errors here, you can be quite sure that they are due to your problem formulation and not due to the method used to solve it. Then - at the time you have a working model within "bvp4c" or "bvp5c" - you might dare to program your own solver.
Ver también
Categorías
Más información sobre Boundary Value Problems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!