CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens > STAR-CCM+

auto set variety initial condition by using java macro

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2019, 06:08
Default auto set variety initial condition by using java macro
New Member
Mike Wang
Join Date: Mar 2019
Posts: 1
Rep Power: 0
MikeWang is on a distinguished road
Hi everybody

I'm a beginner of STAR-CCM+, my job is calculate the pressure drop of a simple pipe, but there's variety of initial condition I need to set. Specifically, I need set inlet pressure=1/2/3/4/5/6 kg/s, and record the pressure drop result from each inlet condition, there's lot of ctrl+c/ctrl+v from STAR-CCM+ to excel, I want use macro function to set different inlet pressure→run→export the inlet/outlet pressure in one excel file automatically.

I have learned the basic macro usage (something like auto setting condition) from searching post on CFD-online, but have no idea how to set variety of initial condition/run/record in one macro, so asking for help, any suggestion will be great.

Thanks in advance!
MikeWang is offline   Reply With Quote

Old   April 9, 2019, 04:41
Join Date: Mar 2018
Location: South Korea
Posts: 69
Rep Power: 7
steve lee is on a distinguished road
I don't know it's useful but..

In that case you can make 1 macro for your simulation.
maybe you can know how make iteration you need for converged solution.
if that's 500, you can set first pressure setting and than run 500 iteration and save your solution. than change your inlet pressure and than run 500 iteration and save.. like this.

Good thing the inlet pressure increase progressively..
steve lee is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 03:42
decompose dependent solution arionfard OpenFOAM 3 December 10, 2018 10:36
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
settlingFoam unstable? bendel_boy OpenFOAM Running, Solving & CFD 38 July 8, 2016 06:07
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37

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