CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

SampleDict For Loop

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

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

Old   August 4, 2020, 10:19
Default
  #2
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
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
tomf is offline   Reply With Quote

Reply

Tags
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 14:39
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


All times are GMT -4. The time now is 08:51.