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, 09:30
Default SampleDict For Loop
  #1
Member
 
X
Join Date: Jan 2019
Posts: 60
Rep Power: 4
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, 09:19
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 572
Rep Power: 28
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
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
sampleDict error KateEisenhower OpenFOAM Post-Processing 3 October 17, 2018 03:19
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 14:56.