Suppose I have a multiphysics coupling model, heat transfer and electrical field. It is a time-dependent problem. At each time step, I suppose to use the segreated scheme to deal with the coupling between Heat transfer and Electric field. I build the heat transfer model in comsol with comsol's heat transfer (HT) interface. But, at each time step, I want to solve the electric field using my own MATLAB code. Under the node "Time-Dependent Solver-->Segreated", I add a "segreated step" to solve HT problem. The question is: how to couple my MATLAB code for the electric field to the "segreated step" for solving HT problem?
Thanks in advance!