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.
Comsol scripting error
Posted Feb 1, 2011, 1:27 p.m. EST 2 Replies
Please login with a confirmed email address before reporting spam
Good evening
I am trying to script my model. It's basically a piezoelectric cantilever with connected an external load resistor through the SPICE circuit component. I want to see what happens as a function of the load resistor value.
What I did was tweaking the history m-file adding a for loop changing the resistor value.
When I try to run it I get the following error:
--- quote ---
Error in ==> resistorscantest at 44
g400=flbinary('g400','draw',flbinaryfile);
--- end quote ----
Indeed once the history file is saved, on top of it it's written:
--- quote ---
% Some geometry objects are stored in a separate file.
% The name of this file is given by the variable 'flbinaryfile'.
--- end quote ----
But the flbinaryfile is not defined:
--- quote ---
flbinaryfile='';
--- end quote ----
And indeed no other files than the original model file and its history file are present in the folder. I tried to modify manually that line inserting the model mph file name but it doesn't work.
Am I doing some mistake?
I am trying to script my model. It's basically a piezoelectric cantilever with connected an external load resistor through the SPICE circuit component. I want to see what happens as a function of the load resistor value.
What I did was tweaking the history m-file adding a for loop changing the resistor value.
When I try to run it I get the following error:
--- quote ---
Error in ==> resistorscantest at 44
g400=flbinary('g400','draw',flbinaryfile);
--- end quote ----
Indeed once the history file is saved, on top of it it's written:
--- quote ---
% Some geometry objects are stored in a separate file.
% The name of this file is given by the variable 'flbinaryfile'.
--- end quote ----
But the flbinaryfile is not defined:
--- quote ---
flbinaryfile='';
--- end quote ----
And indeed no other files than the original model file and its history file are present in the folder. I tried to modify manually that line inserting the model mph file name but it doesn't work.
Am I doing some mistake?
2 Replies Last Post Feb 2, 2011, 3:19 a.m. EST