|
[Sponsors] |
writeFormat and timeFormat in functions subDict in controlDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 7, 2015, 05:53 |
writeFormat and timeFormat in functions subDict in controlDict
|
#1 |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11 |
deal foamers,
i am wondering if we can set the writeFormat and timeFormat in functions sub-dictionary in the controlDict. the functionObjects i am using are faceSource and cellSource. and i test with Code:
writeFormat bababa; timeFormat bababa; if there is a method to do this, please give me some hints. thanks for your attention. |
|
November 8, 2015, 15:22 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: I've checked the source code and those controls are not available independently for each function object.
As for the format... yeah, it's hard-coded to a specific format: https://github.com/OpenFOAM/OpenFOAM...jectFile.C#L39 Please report this in the bug tracker: http://www.openfoam.org/bugs/ |
|
November 20, 2015, 02:43 |
|
#3 | |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11 |
Quote:
i will report it right now. |
||
March 5, 2021, 09:29 |
|
#4 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8 |
Hi,
have there been any changes for the most recent versions? I found a source for OpenFOAM V2006 (https://www.openfoam.com/documentati...8H_source.html) which says to use Code:
surfaces { type surfaces; fields ( p ); surfaceFormat boundaryData; formatOptions { boundaryData { format binary; } } surfaces { outlet { type patch; patches (outlet); interpolate false; } } } I found the file OpenFOAM-v1912/tutorials/incompressible/pimpleFoam/LES/vortexShed/system/controlDict in which the same code is used for ensight. It works for e.g. the ensight format but not for boundaryData which is just written in ASCI. Code:
cuttingPlane { type surfaces; libs (sampling); writeControl timeStep; writeInterval 1; timeStart 0; surfaceFormat boundaryData; //ensight; formatOptions { boundaryData //ensight { format binary; collateTimes true; } } fields (U); interpolationScheme cellPoint; surfaces ( zNormal { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { point (0 0 -0.01); normal (0 0 1); } interpolate false; } ); } Best regards, Lukas Last edited by lukasf; March 5, 2021 at 14:30. Reason: improving answer |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forces not calculated when including a library in controlDict | fusij | OpenFOAM | 2 | May 13, 2011 08:25 |