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

macro compiling error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By me3840

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2017, 04:23
Question macro compiling error
  #1
Member
 
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11
harry123 is on a distinguished road
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
harry123 is offline   Reply With Quote

Old   February 10, 2017, 10:00
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
me3840 is offline   Reply With Quote

Old   February 10, 2017, 10:25
Default
  #3
Member
 
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11
harry123 is on a distinguished road
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.
harry123 is offline   Reply With Quote

Old   February 10, 2017, 11:43
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
harry123 likes this.
me3840 is offline   Reply With Quote

Old   February 13, 2017, 02:50
Default
  #5
Member
 
Join Date: Aug 2014
Location: Germany
Posts: 77
Rep Power: 11
harry123 is on a distinguished road
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.
harry123 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
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


All times are GMT -4. The time now is 23:29.