Specify time-dependent PDE coefficients
Mostrar comentarios más antiguos
Hello,
I would ask help concerning the analysis of a reaction-diffusion system with Matlab, with two coupled PDEs. In my problem, I have a defined function for the temperature T(t) (mixed ramps and constants values) that I don't need to solve just because it is imposed. In the PDE system that I need to solve there are two parameters k1 and k2 (entering the coefficient a) that are dependent on T (and then on t, because of T is imposed and not solved as PDE). I have tried to define two functions and then to add a as vector a = [k1(t); k2(t)] as follow:
k1 = @k1f; % First external function
k2 = @k2f; % Second external function
m = 0; % Second derivative null
d = [1;1]; % First derivative 1
c = [0.2;0.1]; % Diffusion
a = [k1(t);k2(t)]; % Reaction term
f = [0;0]; % No generation
pdec = specifyCoefficients(pdem, 'm', m, 'd', d, 'c', c, 'a', a, 'f', f);
but it doesn't work.
In the PDETool it is simple to do this because I have just to add the function in the user interface and it generates the command pdeseteq(TYPE,C,A,F,D,TLIST,U0,UT0,RANGE).
I would like to know if I can define this parameter without using the PDETool.
Thank you
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Eigenvalue Problems en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!