CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

B-PDF calculation error! (powl error!)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2015, 21:02
Default B-PDF calculation error! (powl error!)
  #1
Senior Member
 
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12
wenxu is on a distinguished road
Dear everyone.

Now I am calculate B-PDF (or B distribution), when it run for a while, it crashed. I do not know it's a OF problem or a C++ problem.

The Equation is as follows:
Quote:
253 {
254 Info<<" Gamma: "<<Gamma(pdfBeta[i])<<endl;
255 Info<<"pdfAlpha[i]: "<<pdfAlpha[i]<<" pdfBeta[i]: "<<pdfBeta[i]<<endl;
256 PDF[j] = std::Pow(hZ_[j],(pdfAlpha[i]-1e0)) * std::Pow((1e0 - hZ_[j]),(pdfBeta[i]-1.0)) * min(Gam ma(pdfAlpha[i] + pdfBeta[i]),1e17)/(min(Gamma(pdfAlpha[i]),1e17)*min(Gamma(pdfBeta[i]),1e17));
257 }
While the error is:
Quote:
pdfAlpha[i]: 0.781371 pdfBeta[i]: 1.52441
Gamma: 0.887262
pdfAlpha[i]: 0.781371 pdfBeta[i]: 1.52441
Gamma: 0.887262
pdfAlpha[i]: 0.781371 pdfBeta[i]: 1.52441
#0 Foam::error::PrintStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3 powl in "/lib/i386-linux-gnu/libm.so.6"
#4
at /usr/include/c++/4.6/cmath:354
#5
at /usr/include/c++/4.6/cmath:378
#6
Could anyone give me some hints, any suggestion is appreciate!

regards,
wenxu
wenxu is offline   Reply With Quote

Reply


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


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