|
[Sponsors] |
Coupling with MATLAB via Java, getting the message: "error: cannot find symbol" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 6, 2015, 06:44 |
Coupling with MATLAB via Java, getting the message: "error: cannot find symbol"
|
#1 |
New Member
Patrizio
Join Date: Mar 2013
Posts: 7
Rep Power: 13 |
I'm tring to use this script/macro to couple a StarCCM sim to MatLab to get a co-simulation transient analysis. So I run the Simulink model from MatLab, thjat seams to run smooth, and I get the following answer from Command Windows:
Code:
str = reports Code:
Playing macro C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java error: C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java:40: error: cannot find symbol HostAndPortPanel p = new HostAndPortPanel(); ^ symbol: class HostAndPortPanel location: class macro.HookMacro C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java:40: error: cannot find symbol HostAndPortPanel p = new HostAndPortPanel(); ^ symbol: class HostAndPortPanel location: class macro.HookMacro Playing macro C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java error: C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java:40: error: cannot find symbol HostAndPortPanel p = new HostAndPortPanel(); ^ symbol: class HostAndPortPanel location: class macro.HookMacro C:\Users\User\Desktop\Artery\HookWithMatlab\src\macro\HookMacro.java:40: error: cannot find symbol HostAndPortPanel p = new HostAndPortPanel(); ^ |
|
December 6, 2015, 12:25 |
|
#2 |
New Member
Patrizio
Join Date: Mar 2013
Posts: 7
Rep Power: 13 |
||
March 29, 2018, 18:53 |
|
#3 | |
Member
|
Hi Dry,
Have you succeeded to perform this example? Could you please share your experience? I look forward to hearing from you. Best, Quote:
|
||
October 18, 2018, 12:11 |
|
#4 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 11 |
Hi Thanh,
Have you gotten any process in the subject? I'm currently working on the coupling between the STAR-CCM for convection analysis and MATLAB for matrix manipulation. Finally I want to achieve the automation that STAT and Matlab can transfer data by macro script, to form a for loop. The document related to this is very limited. Here is what I found so far: 1. the function can be achieved by software called 'ModelCenter' through this software need to be paid. Link below: https://inldigitallibrary.inl.gov/si...ti/5808406.pdf 2. the 'linker' between star and matlab can be achieved by 'sockets'. I'm still working on that. If you are still working on this, probably we can corporate on this to conquer this problem. If you have achieved the 'linker', can you please give me some advice on this? Best regards, Linyan |
|
October 21, 2018, 16:30 |
|
#5 |
New Member
Join Date: Oct 2018
Posts: 3
Rep Power: 8 |
Any results?
|
|
October 23, 2018, 07:31 |
|
#6 | |
New Member
Patrizio
Join Date: Mar 2013
Posts: 7
Rep Power: 13 |
Quote:
Would be nicer to obtain this by socket, but I've no idea on how achive this. Maybe there are some insight in the co-simulation API in the documentation. |
||
October 23, 2018, 10:03 |
|
#7 | |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 11 |
Quote:
Glad to hear from you. I'm currently working on the way exactly like what you said, by exporting the table in csv file and making the matlab read it. My programming experience is limitted, could you please give me more details about how you achieve this? For example, the platform you chose? Thanks, Linyan |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR: unable to find library | HJH | CFX | 6 | February 26, 2019 07:52 |
CFX problem in ubuntu (linux) | Vigneshramaero | CFX | 0 | July 13, 2012 11:22 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 09:43 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |