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

corrupt headers in sampled data output

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2017, 14:40
Default corrupt headers in sampled data output
  #1
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 108
Rep Power: 7
KTG is on a distinguished road
Hi everyone,

I am using the sample post processing utility, and it is putting crazy characters in the headers of the output files! So much so that It is difficult to read them - the text editors can't figure out what ISO to use. I sometimes see little snippits of what looks like code in the headers, things like "t,r,a,c,k,1" and "G,A,M,S". All sorts of stuff is inserted in between the actual headers. Usually normal data starts afterwards, unless it throws off the text editors ISO and I get all Chinese characters. Can anyone tell me what I am doing wrong? When I try to copy the file and paste it here, I just get "x,y,z", and when I try to upload it, CFD forums says "invalid file". This is very frustrating! Below is a copy of my function object:

Thanks!


Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


volume_sample {

type sets;
libs ("libsampling.so");

interpolationScheme cellPoint;

setFormat csv;

sets
(
data
{
type cloud;
axis xyz;
points (

( -3.00000 -2.00000 0.00000 )

);
}
);

fields ( U p UMean);

}


base_sample {

type sets;
libs ("libsampling.so");

interpolationScheme cellPoint;

setFormat csv;

sets
(
data
{
type patchCloud;
patches ("base");
maxDistance .01;
axis xyz;
points (

(0 .1 0)


);
}
);

fields (wallShearStress wallShearStressMean);

}


// ************************************************** *********************** //
KTG is offline   Reply With Quote

Old   July 29, 2017, 18:01
Default update
  #2
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 108
Rep Power: 7
KTG is on a distinguished road
I tried the output formats "raw", "gnu", and "jplot", and they all work fine...
KTG is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 01:51
[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam MikeHersee ParaView 2 January 6, 2015 09:27
Help! How to output slice data during run time? ripperjack OpenFOAM Pre-Processing 1 August 8, 2014 06:45
How to output data from stationary part only? Aerolex FLUENT 0 November 16, 2009 23:46
where is output data file[PHOENICS] DSF Main CFD Forum 1 June 8, 2000 10:15


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