|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Carlos
Join Date: Feb 2020
Location: Barcelona
Posts: 19
Rep Power: 7 ![]() |
Hello,
I'm new to OpenFOAM and I'm trying to run a microfluidics simulation. I have an issue inside controlDict file. startTime is 0 s, endTime is 0.2 s and I want to write a folder every 0.0016 s (a total of 125 folders). That is, writeInterval = 0.0016. The problem is that OF writes data every time step (deltaT = 0.000005 s), no matter what the value of writeInterval is. The controlDict file is the following: Code:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application interFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 0.2;
deltaT 0.000005;
writeControl clockTime;
writeInterval 0.0016;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep no;
maxCo 2;
maxAlphaCo 1;
// ************************************************************************* //
What is the problem? Thank you in advance, Carlos. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Akash Patel
Join Date: Dec 2018
Location: Champaign, IL, USA
Posts: 20
Rep Power: 8 ![]() |
Try this, Code:
writeControl adjustableRunTime; writeInterval 0.0016;
__________________
We are developing an open-source software for constructing reduced order models for your CFD simulations in OpenFOAM that runs several magnitude faster. Visit the link below to learn more. AccelerateCFD - OpenFOAM based reduced order model solver for CFD using Proper Orthogonal Decomposition. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Carlos
Join Date: Feb 2020
Location: Barcelona
Posts: 19
Rep Power: 7 ![]() |
||
|
|
|
|
|
|
|
#4 |
|
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32 ![]() ![]() |
In addition, for the readers who might bump into this thread, I suggest reading the user guide here : https://cfd.direct/openfoam/user-guide/v6-controldict/
Code:
4.3.2 Data writing writeControl Controls the timing of write output to file.
Cheers, Yann |
|
|
|
|
|
![]() |
| Tags |
| controldict, writecontrol, writeinterval |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| findCell() in parallel: not working if location is outside the domain | TobiWol | OpenFOAM | 0 | January 10, 2018 15:33 |
| Processor 0 not working | vishwesh | OpenFOAM Running, Solving & CFD | 0 | November 17, 2017 04:35 |
| IcoFoam with variable time step not writing every writeInterval | wildfire230 | OpenFOAM Running, Solving & CFD | 1 | July 31, 2013 18:49 |
| DPM parallel is not working but serial is working | johnwinter | FLUENT | 1 | March 27, 2012 03:01 |
| help: results depend on writeInterval | ckoch | OpenFOAM | 2 | September 1, 2010 19:42 |