CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Coupling with MATLAB via Java, getting the message: "error: cannot find symbol"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2015, 06:44
Default 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
Dry Patrick is on a distinguished road
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
Than I get this error from Star when i try to run the HookMacro.java
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();
                                     ^
Any suggestions or any other ideas to couple StarCCM with MatLab?
Dry Patrick is offline   Reply With Quote

Old   December 6, 2015, 12:25
Default
  #2
New Member
 
Patrizio
Join Date: Mar 2013
Posts: 7
Rep Power: 13
Dry Patrick is on a distinguished road
I fortget to link the source of the script:

http://macrohut.cd-adapco.com/phpBB3....php?f=4&t=308
Dry Patrick is offline   Reply With Quote

Old   March 29, 2018, 18:53
Default
  #3
Member
 
ThanhToan
Join Date: Sep 2010
Posts: 49
Rep Power: 16
trantoan2008 is on a distinguished road
Send a message via Yahoo to trantoan2008 Send a message via Skype™ to trantoan2008
Hi Dry,

Have you succeeded to perform this example? Could you please share your experience?
I look forward to hearing from you.

Best,
Quote:
Originally Posted by Dry Patrick View Post
I fortget to link the source of the script:

http://macrohut.cd-adapco.com/phpBB3....php?f=4&t=308
trantoan2008 is offline   Reply With Quote

Old   October 18, 2018, 12:11
Default
  #4
Member
 
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 11
linyanx is on a distinguished road
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
linyanx is offline   Reply With Quote

Old   October 21, 2018, 16:30
Default
  #5
New Member
 
Join Date: Oct 2018
Posts: 3
Rep Power: 8
javspace2 is on a distinguished road
Any results?
javspace2 is offline   Reply With Quote

Old   October 23, 2018, 07:31
Default
  #6
New Member
 
Patrizio
Join Date: Mar 2013
Posts: 7
Rep Power: 13
Dry Patrick is on a distinguished road
Quote:
Originally Posted by trantoan2008 View Post
Hi Dry,

Have you succeeded to perform this example? Could you please share your experience?
I look forward to hearing from you.

Best,
I've get the co-simulation exchanging the datas between the two softwares, writing report from star ccm to a csv file, reading them with matlab, write a csv from matlab and read it whit star ccm assigning the readed value to a field function.

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.
Dry Patrick is offline   Reply With Quote

Old   October 23, 2018, 10:03
Default
  #7
Member
 
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 11
linyanx is on a distinguished road
Quote:
Originally Posted by Dry Patrick View Post
I've get the co-simulation exchanging the datas between the two softwares, writing report from star ccm to a csv file, reading them with matlab, write a csv from matlab and read it whit star ccm assigning the readed value to a field function.

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.
Hi Dry,
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
linyanx is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:24.