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

license/opening problems in batch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2023, 08:28
Default license/opening problems in batch
  #1
New Member
 
Join Date: Apr 2023
Posts: 1
Rep Power: 0
ElodieR is on a distinguished road
Hello everyone, first post on a forum, I hope I'll do it well !

I am currently trying to open a starCCM+ file in batch, and I tried to reproduce this method I saw on another thread (I actually modified the code because the "starccm+" command wasn't recognized by my code... and also I had to precised the path of my files, it wasn't automatically found by the computer as the member who solved the problem of the thread said...)

So I created this java file named "testCodeDoraJava.java" :
(my simulation file I try to open is "test1.sim")

// STAR-CCM+ macro: run.java
package macro;

import java.util.*;
import java.io.*;
import javax.swing.*;

import star.common.*;
import star.base.neo.*;
import star.vis.*;
import star.base.report.*;
import star.flow.*;

public class run extends StarMacro {

public void execute() {
execute0();
}

private void execute0() {

try {
Simulation simulation_0 =
getActiveSimulation();

simulation_0.getSimulationIterator().run();

simulation_0.saveState(simulation_0.getSessionPath ());

} catch (Exception e) {
JOptionPane.showMessageDialog(
null, e.toString()
);
}
}

}


and then, I wrote this batch code :

echo off

start C:\OPT\StarCCM2206\17.04.008\STAR-CCM+17.04.008\star\lib\win64\clang11.1vc14.2\lib\s tarccm+ -batch \\netappbsl2\JBSCengineer\ENGINEERING ORGANISATION\STRESS\485_STRESS\900_Personnel_Folde rs\Elodie Romero\batch\testCodeDoraJava.java \\netappbsl2\JBSCengineer\ENGINEERING ORGANISATION\STRESS\485_STRESS\900_Personnel_Folde rs\Elodie Romero\batch\simupourbatch\test1.sim

echo Done

pause>nul

The command window responds that there is a license problem file.

I want to precise that when I try to open the test1.sim file directly by clicking on it I have the same message on the shell of starCCM+, that's why I always need to open starCCM+ first and then load the file (with the lite license which is the only one I have at my disposal)
So maybe here is the license problem but I don't know how to reproduce this "opening by hand" manipulation with a batch code or how to solve "the double clicking opening by hand" problem...

I hope you will be able to find a solution, and at least thank's for trying !

PS : English isn't my first language, I apologize for the mistakes...

PPS : Yes, I tried chat gpt, and I still can't fix the problem
ElodieR is offline   Reply With Quote

Reply

Tags
batch, licence, opening


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
how to edit batch file on windows operating system breezeyu STAR-CCM+ 0 June 10, 2018 13:40
Using Batch file in combination with the workbench D0nT0m CFX 3 February 6, 2017 06:28
How to Generate Volume Mesh in Batch mode? ekraft STAR-CCM+ 1 November 3, 2016 01:59
[ICEM] ICEM CFD error when running in batch mode bgp723 ANSYS Meshing & Geometry 0 August 14, 2014 14:45
[ANSYS Meshing] Automatic mesh generation by batch file nealrm ANSYS Meshing & Geometry 5 April 1, 2014 19:59


All times are GMT -4. The time now is 02:43.