|
[Sponsors] |
February 8, 2017, 04:23 |
macro compiling error
|
#1 |
Member
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11 |
Hi everyone,
I'm compiling a macro which basically set up my simulation and run the simulation. I do it on batch mode, like this: starccm+ -batch xyz.java abc.sim I am getting the following error: warning: [deprecation] SCALAR in star.common.FieldFunctionTypeOption has been deprecated userFieldFunction_0.getTypeOption().setSelected(Fi eldFunctionTypeOption.SCALAR); That is the line where I am trying to create a field function for applying at my velocity inlet boundary. I am only specifying the velocity in one direction, hence I use scalar as type. I have no clue why the error is happening. Hope someone can help. Also, the macro runs fine on windows (where I created the macro), but error is happening when I try to run on a cluster which is linux based. I use the starccm version 10.02.010 on both systems Any help will be much appreciated. Regards, Harish |
|
February 10, 2017, 10:00 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Both systems should generate the message, but this isn't an error. You used a method that is deprecated in the Java API is all. Your macro should still work fine but it's warning you in future versions that code will no longer work.
If your macro is not working then something else is wrong. |
|
February 10, 2017, 10:25 |
|
#3 |
Member
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11 |
Thank you very much for your reply. You are right, there was something else wrong. I removed that line and tried running the macro again. And I have two outcomes:
I use a python script to call a batch script which runs the starccm. (Calling starccm from python gives me some license issues somehow). Now, when I just write the code required for performing above task in a separate python script and run it, the simulation runs fine and gives output. But, when I try to run it as part of a bigger algorithm (the part calling starccm remains same), I get the following error and simulation doesn't run: Execution failed. Command: UpdateModel error: Server Error Server process exited with code 0 I know this forum is for for cfd simulation issues and not programming issues, but I just post it here since I don't know whether its a problem with python or starccm. I hope someone can help. |
|
February 10, 2017, 11:43 |
|
#4 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
That error means that STAR-CCM+ ran, but it looks like it encountered a problem updating a 3D-CAD model? Have you put those same settings into your model manually to see if they cause an issue?
The licensing should be handled by the system and should be independent of any script you run, so you should probably check that out. This forum is for star, I don't think there's any real restriction on what about it. |
|
February 13, 2017, 02:50 |
|
#5 |
Member
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11 |
The macro works fine when I run it independently from my algorithm (I'm implementing a Genetic algorithm). Only problem is when I call starccm from within the algorithm.
I doubt if it is some issue with using parallel processing. The entire thing is run on a cluster using 40 cores. I'm currently checking if that is the issue. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 07:43 |
Undeclared Identifier Errof UDF | SteveGoat | Fluent UDF and Scheme Programming | 7 | October 15, 2014 07:11 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 12:34 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 02:32 |