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/)
-   -   Problems sampling UPrime2Mean (https://www.cfd-online.com/Forums/openfoam-post-processing/64581-problems-sampling-uprime2mean.html)

leonardo.morita May 15, 2009 04:24

Problems sampling UPrime2Mean
 
Hello everyone,

I'm trying to sample data from the channel395 tutorial with the sample utility, but I get the following error when doing so:

#0 Foam::error::printStack(Foam::Ostream&) in "/model/giampani/
OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/model/giampani/
OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib64/libc.so.6"
#3 Foam::writer<Foam::SymmTensor<double> >::New(Foam::word const&) in "/model/giampani/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/
libsampling.so"
#4 void Foam::sampledSets::sampleAndWrite<Foam::SymmTensor <double> >(Foam::sampledSets::fieldGroup<Foam::SymmTensor<d ouble> >&) in "/model/giampani/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/
libsampling.so"
#5 Foam::sampledSets::write() in "/model/giampani/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libsampling.so"
#6 Foam::sampledSurfaces::read(Foam::dictionary const&) in "/model/giampani/OpenFOAM/OpenFOAM-1.5/applications/bin/
linux64GccDPOpt/sample"
#7 __libc_start_main in "/lib64/libc.so.6"
#8 Foam::regIOobject::write() const in "/model/giampani/OpenFOAM/
OpenFOAM-1.5/applications/bin/linux64GccDPOpt/sample"
Segmentation fault

When I use it for U, UMean etc, everything works fine, so I think there is no problem with the probe line (I've already tried all types...). Furthermore, when trying to sample UPrime2Mean.component() or mag(UPrime2Mean), no error message is given, but no files are created as well. When sampling other cases where UPrime2Mean is present, the same problem arises...

Any ideas?

Thank you!

Leonardo

sega May 15, 2009 05:36

Maybe you can try to calculate the components of UPrime2Mean first with
Code:

foamCalc components UPrime2Mean
and than do the sampling?

leonardo.morita May 15, 2009 06:03

Hi Sebastian!

Thank you very much! It seems to work perfectly!
By the way, do you know why I couldn't sample the variable directly? Would it be a bug?

Regards,

Leonardo

sega May 15, 2009 06:08

Well, I am not sure. I am using version 1.5.x and can calculate the field directly.

buct11019 May 9, 2012 23:04

I want ask what is UPrime2mean, the computational formula of it and transient k is the same, but do they the same in real physical meanings? Would you please tell me?

florian_krause May 10, 2012 04:36

Quote:

Originally Posted by buct11019 (Post 360203)
I want ask what is UPrime2mean, the computational formula of it and transient k is the same, but do they the same in real physical meanings? Would you please tell me?

Why do I think, that you didn't use the forum search functionality or have a look at the code to find an answer yourself? Please correct me if I am wrong :)


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