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

Start CCM+ Macro from Python in Windows

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2023, 13:37
Default Start CCM+ Macro from Python in Windows
  #1
New Member
 
Join Date: May 2023
Posts: 4
Rep Power: 3
vanKey is on a distinguished road
Hello,

I want to start a ccm+ macro with python in windows to start a simulation.

What I achieved so far is to open ccm+ and load the sim-File via python:
Code:
...
subprocess.run(["K:/.../lib/starccmw.exe", "K:/.../file.sim"], shell=True)
Does anyone know where and how to specify the java-macro (start.java) in the upstanding command to start the simulation? In Linux it would look like:
Code:
...
subprocess.run(["/mnt/.../starccm+ -licpath blablabla -power -np 1 ./file.sim -batch start.java &"], shell=True)
Regards
vanKey
vanKey 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 in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 14:52
Run time Selection Mechanism - Some help required to understand jaswi OpenFOAM Programming & Development 3 October 29, 2015 14:42
Caelus: fork of OpenFOAM cnsidero OpenFOAM Announcements from Other Sources 7 November 11, 2014 23:55
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25


All times are GMT -4. The time now is 01:16.