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.
Assistance on coupling MATLAB script with a COMSOL transport model
Posted 3 mai 2019, 01:09 UTC−4 Chemical Reaction Engineering, LiveLink for MATLAB, Geometry Version 5.3a 2 Replies
Please login with a confirmed email address before reporting spam
Basically, this is my problem: I have two MATLAB programs, program A is able to calculate the concentrations of chemical species by solving a system of non-linear equations, given an initial value of an input parameter.
MATLAB Program B, uses the value of the chemical species concentrations mentioned in program A and calculates the value of the parameter.
on the other hand, I would like to solve a non-steady state 1D transport model in COMSOL a interval from (0,L) at all the nodes of my geometry.
I would like to couple MATLAB with COMSOL in such way that the initial concentrations provided by the MATLAB program, can be used as the initial concentrations in my COMSOL transport model, solve my transport equations and move to the next node and time step and use now the concentrations obtained by COMSOL and feed them into the MATLAB program to calculate again the desired parameter.
And I would like to continue solving the model through all the geometry distance.
Thank you very much for your comments and suggestions.