|
[Sponsors] |
June 7, 2018, 12:31 |
Writing output with pimpleFoam
|
#1 |
New Member
Arthi Appathurai
Join Date: Jun 2018
Posts: 2
Rep Power: 0 |
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 |
|
June 11, 2018, 05:42 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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; |
|
June 11, 2018, 16:04 |
|
#3 |
New Member
Arthi Appathurai
Join Date: Jun 2018
Posts: 2
Rep Power: 0 |
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 |
|
Tags |
output, pimplefoam, writecontrol |
|
|
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 06:38 |
What variable should I output to get wall force? | Pauli | CFX | 6 | May 15, 2018 08:58 |
[mesh manipulation] Dynamic remeshing (mequite) in parallel not working [foam-extend-4.0] | Peter_600 | OpenFOAM Meshing & Mesh Conversion | 4 | August 1, 2017 07:07 |
Writing output of a scalar in each time step | mehranism | OpenFOAM Programming & Development | 2 | July 9, 2017 14:05 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |