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.

time dependant variable from file

Please login with a confirmed email address before reporting spam

Hi all,

I can successfully import data (time, value) with the interpolation function. However, I can't get COMSOL to look up these values every timestep and use the corresponding value in the equations... I tried to name the interpolation function my_data and define a variable datavalue = my_data(t) that I use in the PDEs.

The data looks like:

't'\s 'values'\m

0 0.2
3600 -0.1
7200 -0.3
... ...

The model crashes with:

Repeated error test failures. May have reached a singularity.
Time : 21599.9999999935
Last time step is not converged.

But I am not sure if this is actually linked to my problem.
Thanks for any help in this

0 Replies Last Post 14.02.2016, 20:03 GMT-5
COMSOL Moderator

Hello Christian Wild

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.