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

"for" loop in CCM+

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2017, 11:19
Default "for" loop in CCM+
  #1
Member
 
Devesh Baghel
Join Date: Mar 2009
Posts: 84
Rep Power: 17
devesh.baghel is on a distinguished road
Hi All,

I am running a steady state problem with segregated solver, for which I want a small java script.
I have to run case till 5000 iterations. I want to change URF's in every 1000 iterations. For exmaple
Iteration URF
1-1000 Default
1001-2000 V=0.6, P=0.3
2001-3000 V=0.5, P=0.25 etc.

Please help me...

Thank you
devesh.baghel is offline   Reply With Quote

Old   August 10, 2017, 18:58
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Start by recording your own macro by just stepping through 1 iteration, changing the URF, stepping another, etc. You will then see the Java syntax and can make up a loop from there.
me3840 is offline   Reply With Quote

Old   August 12, 2017, 23:49
Default
  #3
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20
ping is on a distinguished road
why not use Design Manager in v1204 - just menus and no Java but define and vary the urf via a parameter.
and you can do it in a field function too but that does need a little equation a bit like Java
ping 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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[CAD formats] my stl surface is seen as just a line rcastilla OpenFOAM Meshing & Mesh Conversion 2 January 6, 2010 01:30
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57


All times are GMT -4. The time now is 12:21.