|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
X
Join Date: Jan 2019
Posts: 63
Rep Power: 9 ![]() |
Hello.
Could someone suggest me a way to create a for loop for these uniform lines in sampleDict? I tried different ways but somehow none of them have been successful. I have included the regular sampleDict image which works finesampleDict_proper.png, for loop sampleDict sample_for.pngand error message. sample_error.png |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
|
Hi,
Usually I make a small bash or python script to do these kind of things. It just outputs the right format of the subDicts. You may like a different scripting language, but you would need to run this once before running the actual simulation. Hope this helps. Cheers, Tom |
|
|
|
|
|
![]() |
| Tags |
| c++, for loop, sampledict |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sampleDict error | KateEisenhower | OpenFOAM Post-Processing | 7 | June 18, 2024 04:17 |
| postProcess -func sampleDict does not create output folder | tmr2044 | OpenFOAM Post-Processing | 7 | April 27, 2021 15:33 |
| Does sampleDict have limitation in number of fields? | reza2031 | OpenFOAM Post-Processing | 3 | April 22, 2020 14:24 |
| How Coorectly Run sampleDict | FlyBob91 | OpenFOAM Post-Processing | 5 | September 13, 2017 05:01 |
| controlDict and sampleDict giving different results | Shenan | OpenFOAM Post-Processing | 2 | November 15, 2014 11:15 |