Hello Everyone,
I am trying to set up a time-dependent simulation in COMSOL v4.3a. It's a structural mechanics model and the material properties are defined by an interpolation function which is read from a txt file. However, this txt file is time-dependent as well. In other words, at (k+1)th step, I want to use the k th simulation results to update that txt file/ interpolation first. Here I have two questions.
1) I have a matlab function update_data() defined in COMSOL v4.3a. It is used to renew the txt file. However, COMSOL returns error saying "Error using dlmwirite: Could not find **.txt"
I am sure that the matlab function is correct. It seems that COMSOL doesn't support matlab to write file during simulation. Could you help me solve this issue?
2) I have to clear the interpolation function and reload from txt file manually before each time step. Are there methos that automatically clear and reload txt in interpolation function before each step?
Thank you very much
Dan
I am trying to set up a time-dependent simulation in COMSOL v4.3a. It's a structural mechanics model and the material properties are defined by an interpolation function which is read from a txt file. However, this txt file is time-dependent as well. In other words, at (k+1)th step, I want to use the k th simulation results to update that txt file/ interpolation first. Here I have two questions.
1) I have a matlab function update_data() defined in COMSOL v4.3a. It is used to renew the txt file. However, COMSOL returns error saying "Error using dlmwirite: Could not find **.txt"
I am sure that the matlab function is correct. It seems that COMSOL doesn't support matlab to write file during simulation. Could you help me solve this issue?
2) I have to clear the interpolation function and reload from txt file manually before each time step. Are there methos that automatically clear and reload txt in interpolation function before each step?
Thank you very much
Dan