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

Strange symbols set by setFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2021, 06:55
Question Strange symbols set by setFields
  #1
New Member
 
Ferran
Join Date: Jun 2020
Posts: 1
Rep Power: 0
ferranroigtio is on a distinguished road
Hi, openfoamers.

I'm practicing with the damBreak tutorial. When I run setFields, a new file alpha.water is generated in the directory 0. However, the internalField values seem to be encrypted or misread somehow. They appear as strange symbols, which even vary across the readers used. See attached pictures for reference (using Sublime Text, nano, vi and cat).

You can see I'm using a mac. Therefore, I run OpenFOAM through Docker. I ran the interFoam solver. It went alright. So, although the interpretation issue is frustrating for me trying to undersand what I'm setting, it seems that the solver copes perfectly with it.

By the way, the symbols get worse at times other than 0. See, for example, the attached image "vi 01".

The big question is what ParaView will say about that. Turns out not to be a problem if I run ParaView through Docker. But that's not too efficient. Instead, I'd touch the .OpenFOAM file and open it in my local mac. And there's the problem. It doesn't seem to interpret anything at all. The fraction of water varies between 0 and 1e-38, that is, there's no water whatsoever.

I'm creating this thread under Pre-Processing because I believe this issue needs to be fixed before the solver is launched, not at the postprocessing stage (even though it's then when I see its impact).

Does any one have any idea on how to fix this?

Thank you all in advance.
Attached Images
File Type: jpg sublime.jpg (74.5 KB, 4 views)
File Type: jpg nano.jpg (103.4 KB, 3 views)
File Type: jpg vi.jpg (199.6 KB, 2 views)
File Type: jpg cat.jpg (209.8 KB, 3 views)
File Type: jpg vi 01.jpg (212.7 KB, 3 views)
ferranroigtio is offline   Reply With Quote

Old   May 4, 2021, 15:28
Default
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16
adhiraj is on a distinguished road
It seems that you saved the results in binary format, which is why you cannot open it in a text editor.

ParaView should be able to handle that format directly. If ParaView is having trouble with the files it could be due to incorrectly loading the case, or perhaps using a boundary condition that is not supported by ParaView.
adhiraj is offline   Reply With Quote

Reply

Tags
docker, interpret, mac os, setfields


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
Using setFields and setWaves to set the required dataset nasa55 OpenFOAM Pre-Processing 1 April 22, 2020 05:05
Remeshing for Rotation in CFX via ICEMCFD gera CFX 3 September 23, 2017 13:29
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 05:31


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