CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

SampleDict For Loop

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2020, 09:30
Default SampleDict For Loop
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
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
mcfdma is offline   Reply With Quote

Old   August 4, 2020, 09:19
Senior Member
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf

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.

tomf is offline   Reply With Quote


c++, for loop, sampledict

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
sampleDict error KateEisenhower OpenFOAM Post-Processing 5 October 18, 2021 13:39
postProcess -func sampleDict does not create output folder tmr2044 OpenFOAM Post-Processing 7 April 27, 2021 14:33
Does sampleDict have limitation in number of fields? reza2031 OpenFOAM Post-Processing 3 April 22, 2020 13:24
How Coorectly Run sampleDict FlyBob91 OpenFOAM Post-Processing 5 September 13, 2017 04:01
controlDict and sampleDict giving different results Shenan OpenFOAM Post-Processing 2 November 15, 2014 10:15

All times are GMT -4. The time now is 22:26.