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.
Setting COMSOL Initial Conditions from Matlab
Posted 14 oct. 2010, 14:04 UTC−4 1 Reply
Please login with a confirmed email address before reporting spam
Hello All,
I am looking to run a comsol model for a given period of time and then transfer the comsol results into a matlab program. These conditions will be modified inside of matlab and will then be sent back to comsol as the new initial conditions. Comsol will then run for another period of time and will once again transfer its results back to matlab for modification and so on and so forth.
In short I'm trying to write an algorithm that alternates between comsol and matlab using the final conditions of one to set the initial conditions of another.
I am very familiar with matlab and am relatively new to comsol. So far I'm having difficulty setting the instantaneous initial conditions inside of comsol for each point in the mesh(especially from a script). I'm also not sure how to resolve the indices of the results vector into physical locations within the mesh.
Any help would be greatly appreciated,
Josh
I am looking to run a comsol model for a given period of time and then transfer the comsol results into a matlab program. These conditions will be modified inside of matlab and will then be sent back to comsol as the new initial conditions. Comsol will then run for another period of time and will once again transfer its results back to matlab for modification and so on and so forth.
In short I'm trying to write an algorithm that alternates between comsol and matlab using the final conditions of one to set the initial conditions of another.
I am very familiar with matlab and am relatively new to comsol. So far I'm having difficulty setting the instantaneous initial conditions inside of comsol for each point in the mesh(especially from a script). I'm also not sure how to resolve the indices of the results vector into physical locations within the mesh.
Any help would be greatly appreciated,
Josh
1 Reply Last Post 14 oct. 2010, 14:59 UTC−4