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 functions/solving transcendental equations
Posted Jan 21, 2016, 5:40 p.m. EST LiveLink for MATLAB Version 4.4 1 Reply
Please login with a confirmed email address before reporting spam
Hi
I am looking to know if I can implement in comsol functions in Matlab that are dependent on two input variables --- spatial location as well as species concentration. I have a Matlab function to solve a transcendental equation which then gives me the reaction rate term in my species transport model in comsol. My matlab function works just fine but then I am not sure how I can call this function from within comsol. My simulation is transient and therefore I am also concerned if the solver were to call comsol functions at every time step that it would slow down my model considerably.
Any other useful recommendations to solve transcendental equations? Haven't had much luck with the domain based DAEs.
Any help would be appreciated.
Thanks,
Rohini
I am looking to know if I can implement in comsol functions in Matlab that are dependent on two input variables --- spatial location as well as species concentration. I have a Matlab function to solve a transcendental equation which then gives me the reaction rate term in my species transport model in comsol. My matlab function works just fine but then I am not sure how I can call this function from within comsol. My simulation is transient and therefore I am also concerned if the solver were to call comsol functions at every time step that it would slow down my model considerably.
Any other useful recommendations to solve transcendental equations? Haven't had much luck with the domain based DAEs.
Any help would be appreciated.
Thanks,
Rohini
1 Reply Last Post Jan 22, 2016, 4:23 p.m. EST