CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Trouble to see the results of SetFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2020, 21:31
Default Trouble to see the results of SetFields
  #1
New Member
 
Cristian David Vargas
Join Date: Mar 2020
Posts: 5
Rep Power: 6
CDVS is on a distinguished road
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.
CDVS is offline   Reply With Quote

Old   March 3, 2021, 05:50
Default Same problem
  #2
New Member
 
Maxime
Join Date: Mar 2021
Posts: 2
Rep Power: 0
dundu is on a distinguished road
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
dundu is offline   Reply With Quote

Old   March 10, 2021, 08:25
Default Solved
  #3
New Member
 
Maxime
Join Date: Mar 2021
Posts: 2
Rep Power: 0
dundu is on a distinguished road
In conrolDict, make sure the writeFormat is ascii and not binary. It solved the problem.
dundu is offline   Reply With Quote

Old   April 10, 2021, 18:21
Default
  #4
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 6
Ship Designer is on a distinguished road
The alpha field can also be visualized for inspection with ParaView. I prefer ascii format with compression over binary format for two reasons:
  1. Ascii with compression takes up less disk space than binary files.
  2. If needed, the file can be decompressed and its content is still human-readable.
Some utilities will crash though because they can't read compressed files. The stitchMesh utility in Foundation OpenFOAM for example cannot read compressed meshPhi files.
Ship Designer is offline   Reply With Quote

Reply

Tags
setfields, text editor, view


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 10 May 13, 2018 18:28
lid driven cavity varying results yasmil OpenFOAM Running, Solving & CFD 2 October 6, 2016 21:42
Oscillating Airfoil Poor Results at High k (reduced frequency) dancfd OpenFOAM Running, Solving & CFD 3 November 4, 2013 08:32
CFD results not close to experimental results cider STAR-CCM+ 0 July 8, 2013 07:53
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 08:15


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