Fit experimental data to 1D convection diffusion solution
Show older comments
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 Comment
Torsten
on 8 Apr 2020
Couple lsqcurvefit as fitting tool with pdepe as integrator for the partial differential equation.
Accepted Answer
More Answers (0)
Categories
Find more on Structural Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!