|
[Sponsors] |
June 14, 2020, 22:31 |
Trouble to see the results of SetFields
|
#1 |
New Member
Cristian David Vargas
Join Date: Mar 2020
Posts: 5
Rep Power: 6 |
Hi. I recently installed to my laptop Ubunto 20 and after I run setFields, it run, but I tried to see the alpha.water from nano, to see the change, but it didn't response so I couldn't see the list of numbers, it's not possible to see the list, the weird is that I executed the solver and it run ok but I couldn't see this file, and I tried to read the file on windows and this can be open but in the list appear null value. It never happened to me on windows, can someone tell me why? by the way I'm using OpenFoam foundation 7.
|
|
March 3, 2021, 06:50 |
Same problem
|
#2 |
New Member
Maxime
Join Date: Mar 2021
Posts: 2
Rep Power: 0 |
Hi,
Same problem, this is how it appears in my alpha.liquid once I have run setFields: FoamFile: { version 2.0; format binary; class volScalarField; arch "LSB;label=32;scalar=64"; location "0"; object alpha.liquid; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField nonuniform List<scalar> 6500 (^@^@^@^@^@^@�?^@^@^@^@^@^@�?^@^@^@^@^@^@�?^@^@^@^ @^@^@�?^@^@^............ etc.... boundaryField { leftWall { type zeroGradient; } [...] My setFieldsDict: defaultFieldValues ( volScalarFieldValue alpha.liquid 0 volScalarFieldValue T 300 ); regions ( boxToCell { box (0 0 -1) (0.01 0.01 1); fieldValues ( volScalarFieldValue alpha.liquid 1 volScalarFieldValue T 970 ); } ); Did you solve your problem in between? Thank you in advance, Max |
|
March 10, 2021, 09:25 |
Solved
|
#3 |
New Member
Maxime
Join Date: Mar 2021
Posts: 2
Rep Power: 0 |
In conrolDict, make sure the writeFormat is ascii and not binary. It solved the problem.
|
|
April 10, 2021, 19:21 |
|
#4 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
The alpha field can also be visualized for inspection with ParaView. I prefer ascii format with compression over binary format for two reasons:
|
|
Tags |
setfields, text editor, view |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
lid driven cavity varying results | yasmil | OpenFOAM Running, Solving & CFD | 2 | October 6, 2016 22:42 |
Oscillating Airfoil Poor Results at High k (reduced frequency) | dancfd | OpenFOAM Running, Solving & CFD | 3 | November 4, 2013 09:32 |
CFD results not close to experimental results | cider | STAR-CCM+ | 0 | July 8, 2013 08:53 |
Creating a tool to interpolate results | Luis Batista | OpenFOAM Running, Solving & CFD | 2 | April 11, 2013 09:15 |