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.
Livelink update values after Comsol iteration
Posted 10 juil. 2017, 12:30 UTC−4 1 Reply
Please login with a confirmed email address before reporting spam
Hi
I have seen a question that is repeated several times in the forum but has no clear answer to me.
So, using COMSOL through MATLAB script. After COMSOL has finished the calculation you might change some of the values of the solution applying either other solver or some script with MATLAB, and later you might want to update this new values into COMSOL, to run again the simulation.
So at each time loop being C your unknown:
1) C(t) --> Comsol --> C'(t+dt) --> Other programs --> C(t+dt)
2) C(t+dt) --> Comsol --> C'(t+2*dt) --> Other programs --> C(t+2*dt)
3)
.
.
.
n_iteration
So I wonder, what is the best way to update initial values in a COMSOL calculation through the livelink
Thanks
I have seen a question that is repeated several times in the forum but has no clear answer to me.
So, using COMSOL through MATLAB script. After COMSOL has finished the calculation you might change some of the values of the solution applying either other solver or some script with MATLAB, and later you might want to update this new values into COMSOL, to run again the simulation.
So at each time loop being C your unknown:
1) C(t) --> Comsol --> C'(t+dt) --> Other programs --> C(t+dt)
2) C(t+dt) --> Comsol --> C'(t+2*dt) --> Other programs --> C(t+2*dt)
3)
.
.
.
n_iteration
So I wonder, what is the best way to update initial values in a COMSOL calculation through the livelink
Thanks
1 Reply Last Post 11 juil. 2017, 05:20 UTC−4