Fit experimental data to 1D convection diffusion solution
Afficher commentaires plus anciens
Hi everyone,
I am new to fitting surfaces to equations, but basically I am trying to solve the convection diffusion equation in 1D using data extracted from a simulation.
The 1D equation is of the form: du(x,t)/dt = c*du/dx + D*(d^2u/dx^2). I know the inital boundary conditions as: u(x,0) = 293.15, u(0,t) = 271.15 for t>0, boundary at L is open boundary.
What I want is to get a solution in equation form: soln = f(x,t) by fitting the data [see attachment]. The data contains u (temperature) as function of x (distance) and t (time).
Is this possible to achieve?
Thanks!
1 commentaire
Torsten
le 8 Avr 2020
Couple lsqcurvefit as fitting tool with pdepe as integrator for the partial differential equation.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Structural Mechanics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!