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.
Error while calling External C function
Posted 26 ago 2016, 07:03 GMT-4 Studies & Solvers, Structural Mechanics Version 5.2 2 Replies
Please login with a confirmed email address before reporting spam
Dear users,
I'm quite new to Comsol and I'm trying to create a function of time and space which could be later used in my model. Unfortunately I cannot use a Matlab function because my version is too old so I'm trying to run an external c function. I could successfully run the case that is included in COMSOL Multiphysics
Programming Reference Manual with f=sin(x)/x and now I was trying to add a variable to the model and to plot the function.
When I call my function from Comsol I got the error "There is no function with 1 arguments", I tried to combine differently x and y but I always got the same message. I attach here the file with the function and the screenshot with the error.
Thanks to all for your help
Regards,
Matteo
I'm quite new to Comsol and I'm trying to create a function of time and space which could be later used in my model. Unfortunately I cannot use a Matlab function because my version is too old so I'm trying to run an external c function. I could successfully run the case that is included in COMSOL Multiphysics
Programming Reference Manual with f=sin(x)/x and now I was trying to add a variable to the model and to plot the function.
When I call my function from Comsol I got the error "There is no function with 1 arguments", I tried to combine differently x and y but I always got the same message. I attach here the file with the function and the screenshot with the error.
Thanks to all for your help
Regards,
Matteo
Attachments:
2 Replies Last Post 26 ago 2016, 08:31 GMT-4