Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Matlab with Comsol
Posted Jan 1, 2011, 4:30 p.m. EST Interfacing, LiveLink for MATLAB Version 4.0, Version 4.0a 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I need to run Matlab and Comsol simultaneously.
I have a m.file containing following function:
f(u1, t)
I also need to make a comsol model with two PDE as following:
PDE1: du1/dt + gradient(u2) = f(u1, t)
PDE2: grad(u2) = c*gradient(u1)
At each time, PDE1 is used to calculate u1, and then PDE2 is solved using u1 to calculate u2.
My question is how can I link my Matlab equation to Comsol for this purpose?
Thanks
Samineh
I need to run Matlab and Comsol simultaneously.
I have a m.file containing following function:
f(u1, t)
I also need to make a comsol model with two PDE as following:
PDE1: du1/dt + gradient(u2) = f(u1, t)
PDE2: grad(u2) = c*gradient(u1)
At each time, PDE1 is used to calculate u1, and then PDE2 is solved using u1 to calculate u2.
My question is how can I link my Matlab equation to Comsol for this purpose?
Thanks
Samineh
2 Replies Last Post Jan 6, 2011, 4:09 p.m. EST