CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Foamformatconvert (https://www.cfd-online.com/Forums/openfoam-solving/238663-foamformatconvert.html)

ulugbey September 25, 2021 16:33

Foamformatconvert
 
Hi,
I am using OpenFoam 2.1. I saved the solution files in binary format. I want to change the format to ascii to see pressure values. How can I use Foamformatconvert option in OpenFoam? What changes I have to implement in controlDict files to use this option?
Thanks!

sqek September 29, 2021 09:16

I'm using a more recent version so not sure if it'll be exactly the same, but in mine, you set
Code:

writeFormat    ascii;
in system/controlDict, then run
foamFormatConvert
(probably with the -noConstant flag, to not also convert your mesh, but again I'm using a newer version so the flags might be different)
foamFormatConvert rewrites everything in the format specified in controlDict


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