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.

variation in selected column ('position in file') of an interpolation function.

Please login with a confirmed email address before reporting spam

Hi. I'm trying to take some data and apply it as a surface load. The data itself has a series of values collected over 2 seconds, at 2 millisecond intervals. The columns are like this: * X potision * Y position * Data collected at 0.002 seconds * Data collected at 0.004 seconds * Etc.

From my understanding the 'position in file' input is the column number the data is selected from. Since I have two input arguments (because X and Y), a position of 1 should take the column data at 0.002s, with position 2 being 0.004s and so on.

So what I'm trying to do is have that position vary based on the time of the time-dependent solver, which it being rounded to the nearest whole number. However doing so keeps giving me an error that the position isn't a positive integer value.

Is there no way to variate the file position with respect to that time solver? I am aware I can make the time value into a 3rd column and use 3 arguments, however the table would be extensively large. Plus, it was not given to me in that format and I don't want to put that punishment of reformatting the dataset on myself or someone else if i can make this work.


0 Replies Last Post 6 oct. 2022, 20:14 UTC−4
COMSOL Moderator

Hello Matthew Schipper

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.