CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Writing output with pimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2018, 11:31
Default Writing output with pimpleFoam
  #1
Thi
New Member
 
Arthi Appathurai
Join Date: Jun 2018
Posts: 2
Rep Power: 0
Thi is on a distinguished road
Hello all!

I am simulating the flow past a cylinder in a circular channel using the kOmegaSST turbulence model. Besides the usual output fields (p, U, k, omega, etc) I am also interested in the vorticity, and the force coefficients and wall shear stress on the cylinder. In order to write these additional fields I wrote functions in the function block of my controlDict (attached here as a txt file). My simulations run fine - no convergence issues. However, I am not able to get the usual output fields. The program only writes the additional fields.

I tried to run a case without the functions block. The program runs fine (I can attach the log file if you think that could help) but does not write any output. I tried restarting my computer in an attempt to call upon my random luck to workout. Unfortunately, luck has failed me. I am convinced this is a trivial error that I am overlooking but I am not able to figure this out! I am on sort of a time crunch - this is for a summer internship where we hope to run such simulations on different cylinders. Given how long these simulations tend to take to run, I would like to get the CFD framework figured out ASAP.

I would greatly appreciate your help in figuring this out!

Disclosure: This is also my first time posting on this forum. I thought I submitted this question but did not see the thread show up on the main page. Apologies if this is, in fact, a repeat posting.

Arthi
Attached Files
File Type: txt controlDict.txt (2.2 KB, 13 views)
Thi is offline   Reply With Quote

Old   June 11, 2018, 04:42
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
You set the writeInterval to 10 s which is the end time of your simulation. So no intermediate writes.



If you want to output every time iteration step, use:
Code:
writeControl    timeStep;

writeInterval   1;

If you want an output for each second, use:
Code:
writeControl    adjustableRunTime;

writeInterval   1;
jherb is offline   Reply With Quote

Old   June 11, 2018, 15:04
Default
  #3
Thi
New Member
 
Arthi Appathurai
Join Date: Jun 2018
Posts: 2
Rep Power: 0
Thi is on a distinguished road
Thanks, Joachim!

So adjustableRunTime is measured in seconds and not number of time steps? My reasoning behind declaring writeInterval 10 was that I wanted OpenFOAM to write the results every 10 time steps. Is there a way to specify this with adjustableRunTime control?

Arthi
Thi is offline   Reply With Quote

Reply

Tags
output, pimplefoam, writecontrol


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
What variable should I output to get wall force? Pauli CFX 6 May 15, 2018 07:58
[mesh manipulation] Dynamic remeshing (mequite) in parallel not working [foam-extend-4.0] Peter_600 OpenFOAM Meshing & Mesh Conversion 4 August 1, 2017 06:07
Writing output of a scalar in each time step mehranism OpenFOAM Programming & Development 2 July 9, 2017 13:05
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57


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