|
[Sponsors] |
August 10, 2017, 11:19 |
"for" loop in CCM+
|
#1 |
Member
Devesh Baghel
Join Date: Mar 2009
Posts: 84
Rep Power: 17 |
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 |
|
August 10, 2017, 18:58 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
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.
|
|
August 12, 2017, 23:49 |
|
#3 |
Senior Member
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20 |
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 |
|
|
|
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 |