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.
Solute concentration distribution: Matlab to Comsol
Posted 2019年7月1日 GMT-4 04:41 Structural & Acoustics, LiveLink for MATLAB, Parameters, Variables, & Functions Version 5.4 2 Replies
Please login with a confirmed email address before reporting spam
Dear Colleagues
I had some problems implementing the Matlab results into the Comsol simulation. I'm a beginner of Comsol, so I don't really get the feeling how to link the results between Matlab and Comsol. I'll discuss the problem based on the pdf file that I attached below. The Comsol model, with which I'm working, evaluates the fluid pressure inside of the specimen depending on the osmotic pressure. The governing equation of osmotic pressure, which is called delta_p, is given in page 1 of the document. The parameter, which I'm trying to modifiy, is the beta_0. Until now, it was considered to be just one fixed value, but now I'm trying to make this parameter as variable. The parameter beta_0 is related to diffusion of solute (here you can just think beta_0 as solute concentration). In the page 3, you can see the initial condition of solute concentration. Then after certain time, the solute concentration changes, as you can see in the profile in the page 4. In other words, I calculate the values of beta_0 in Matlab with a diffusion model for each time step "delta_t". Each node of the mesh in the profile is assigned to a beta_0 value. So I get for each time step a matrix with the values of beta_0 as inserts in Matlab. Now, what I don't understand is how to insert these values of beta_0 from the matrix, that I obtain from Matlab, into the governing equation in the Comsol. Do you have any suggestions to this problem?
Thanks for your time to investigate this problem.
Attachments: