CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   corrupt headers in sampled data output (https://www.cfd-online.com/Forums/openfoam-post-processing/191031-corrupt-headers-sampled-data-output.html)

KTG July 29, 2017 14:40

corrupt headers in sampled data output
 
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 July 29, 2017 18:01

update
 
I tried the output formats "raw", "gnu", and "jplot", and they all work fine...


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