GeorgePapazafeiropoulos / Abaqus2Matlab

Software connecting Abaqus and Matlab
48 stars 16 forks source link

It is wrong to use uimenu when play abaqus2matlab3.0 #2

Open mdlbyc opened 6 months ago

mdlbyc commented 6 months ago

错误使用 uimenu 通过 uifigure 函数创建的图形不支持该功能。有关详细信息,请参阅 App Designer 中的图形支持。

出错 A2MV3/createComponents (line 786) app.LoadMenu = uimenu(app.UIFigure);

出错 A2MV3 (line 1333) createComponents(app)

出错 Abaqus2MatlabApp/startApp (line 90) obj.AppHandle = eval('A2MV3');

出错 Abaqus2MatlabApp (line 48) startApp(obj)

出错 appinstall.internal.runapp>execute (line 78) out = evalin('caller', [script ';']);

出错 appinstall.internal.runapp>runapp13a (line 57) outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));

出错 appinstall.internal.runapp>runcorrectversion (line 36) appobj = runapp13a(appinstalldir);

出错 appinstall.internal.runapp (line 18) out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);

GeorgePapazafeiropoulos commented 6 months ago

@mdlbyc Could you please describe in detail the operations that led to this error? Thanks!

mdlbyc commented 6 months ago

您的邮件,我已收到,谢谢!

mdlbyc commented 6 months ago

Dear George Papazafeiropoulos

It thrilled me to receive your letter, because I adore you very much. Your paper'Abaqus2Matlab: A suitable tool for finite element post-processing
'   is amazing. Some time ago, whether it was version 2.0 or 3.0, there would be a MATLAB crash during the use of ABAQUS2MATLAB. I've tried both matlab2017a and matlab2022a versions, both of which cause the above problem.  I found this website 'https://maolab.cn/archives/172' and followed the tips and finally solved the above problem. Since version 2.0 includes a tutorial on how to use it, I just use abaqus2matlab for the rest of the course.

However, when I install version 3.0 on matlab2017a and click to run the app, the following error is reported

Error using uimenuFunctionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.

Error in A2MV3/createComponents (line 786)             app.LoadMenu = uimenu(app.UIFigure);

Error in A2MV3 (line 1333)             createComponents(app)

Error in Abaqus2MatlabApp/startApp (line 90)                 obj.AppHandle = eval('A2MV3');

Error in Abaqus2MatlabApp (line 48)             startApp(obj)

Error in appinstall.internal.runapp>execute (line 78) out = evalin('caller', [script ';']);

Error in appinstall.internal.runapp>runapp13a (line 57) outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));

Error in appinstall.internal.runapp>runcorrectversion (line 36)     appobj = runapp13a(appinstalldir);

Error in appinstall.internal.runapp (line 18)         out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);   Error using uimenu Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.

Error in A2MV3/createComponents (line 786)             app.LoadMenu = uimenu(app.UIFigure);

Error in A2MV3 (line 1333)             createComponents(app)

Error in Abaqus2MatlabApp/startApp (line 90)                 obj.AppHandle = eval('A2MV3');

Error in Abaqus2MatlabApp (line 48)             startApp(obj)

Error in appinstall.internal.runapp>execute (line 78) out = evalin('caller', [script ';']);

Error in appinstall.internal.runapp>runapp13a (line 57) outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));

Error in appinstall.internal.runapp>runcorrectversion (line 36)     appobj = runapp13a(appinstalldir);

Error in appinstall.internal.runapp (line 18)         out = runcorrectversion(appmetadata, appentrypoint, addonmetadatadir);

However, when I install version 3.0 on matlab2022a and click to run the app, it opens fine. I look forward to you writing a tutorial on how to use version 3.0.

Sincerely yours, Ba Yaoc

巴耀铖 @.***

Original Email

Sender:"George Papazafeiropoulos"< @.*** >;

Sent Time:2024/4/10 23:59

To:"GeorgePapazafeiropoulos/Abaqus2Matlab"< @.*** >;

Cc recipient:"mdlbyc"< @. >;"Mention"< @. >;

Subject:Re: [GeorgePapazafeiropoulos/Abaqus2Matlab] It is wrong to use uimenuwhen play abaqus2matlab3.0 (Issue #2)

@mdlbyc Could you please describe in detail the operations that led to this error? Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

GeorgePapazafeiropoulos commented 6 months ago

Thanks for your kind words.

The latest version of Abaqus2Matlab v.3.0 does not work on early versions of Matlab (e.g. 2017a). When you open the latest version of the Abaqus2Matlab app, a GUI window appears, which has various options for the user to start with. Creating a tutorial for all these possibilities is in our future plans. Until then, please check the two following videos:

https://www.youtube.com/watch?v=Taan7cI1cXk https://www.youtube.com/watch?v=eLMbKkdNBMc

Thank you again. Best regards!

mdlbyc commented 6 months ago

Dear George Papazafeiropoulos

      The Abaqus2Matlab app is brilliant,  I'm very interested in your article. I had emailed this email @.***' address before, but did not get a reply.       When calling a UMAT subroutine in abaqus, is it possible to directly call a function in matlab to perform a calculation, such as calling the Cubic Hermite interpolation function and returning the result to the UMAT subroutine?        I will use it only for learning. Looking forward to your reply, Thank you.

Sincerely yours, Ba Yaoc

巴耀铖 @.***

Original Email

Sender:"George Papazafeiropoulos"< @.*** >;

Sent Time:2024/4/16 3:39

To:"GeorgePapazafeiropoulos/Abaqus2Matlab"< @.*** >;

Cc recipient:"mdlbyc"< @. >;"Mention"< @. >;

Subject:Re: [GeorgePapazafeiropoulos/Abaqus2Matlab] It is wrong to use uimenuwhen play abaqus2matlab3.0 (Issue #2)

Thanks for your kind words.

The latest version of Abaqus2Matlab v.3.0 does not work on early versions of Matlab (e.g. 2017a). When you open the latest version of the Abaqus2Matlab app, a GUI window appears, which has various options for the user to start with. Creating a tutorial for all these possibilities is in our future plans. Until then, please check the two following videos:

https://www.youtube.com/watch?v=Taan7cI1cXk https://www.youtube.com/watch?v=eLMbKkdNBMc

Thank you again. Best regards!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

GeorgePapazafeiropoulos commented 6 months ago

Dear Ba Yaoc, I am not sure if Matlab can be called from within a User Subroutine in Abaqus. Abaqus2Matlab can't do this job. Anyway, there are other ways in which you can achieve the Cubic Hermite interpolation function, such as forming the stiffness matrix in Matlab and then load it into Abaqus. Check the *MATRIX INPUT option in an Abaqus input file. Thank you also for your kind comments about Abaqus2Matlab. Best regards!