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

Bugs with caveatingFoam tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2014, 01:52
Default Bugs with caveatingFoam tutorial
  #1
Member
 
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 11
wang219910611 is on a distinguished road
Hi Everyone,

I am a newbee with Openfoam and I am currently trying to get familiar with it with its tutorial. (Many bugs happened by the way..)

Something strange happened. I have run sprayFoam and everything is fine. But when I run ./Allrun in the cavitatingFoam case, the log file showed errors as following:

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::symGaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
#4 Foam::symGaussSeidelSmoother::smooth(Foam::Field<d ouble>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
#5 Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
#8 Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<doubl e> > const&) at ??:?
#9 Foam::incompressible::RASModels::kOmegaSST::correc t() at ??:?
#10
at ??:?
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12
at ??:?
Floating point exception (core dumped)

Can anyone offer any advice about this? Your help will be appreciated. : )
wang219910611 is offline   Reply With Quote

Old   November 12, 2014, 04:02
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I guess you're talking about tutorials/multiphase/cavitatingFoam/ras/throttle case (as there are several cases). The case is quite strange starting with 5-element vector for dimensions (now it should be 7-element vector or symbolic expression, so I guess this case was copied from older versions of OpenFOAM without verification), ending with this sigFpe.

I was able to execute the case (though don't know whether results are meaningful or not) if I change linear system solver for U/k/omega from smoothSolver to PBiCG, i.e. I change fvSolution to:

Code:
    "(U|k|omega)"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-8;
        relTol          0.1;
    /*
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          0.1;
    */
    }

    "(U|k|omega)Final"
    {
        $U;
        relTol          0;
    /*
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          0;
    */
    }
alexeym is offline   Reply With Quote

Old   November 18, 2014, 03:24
Smile
  #3
Member
 
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 11
wang219910611 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

I guess you're talking about tutorials/multiphase/cavitatingFoam/ras/throttle case (as there are several cases). The case is quite strange starting with 5-element vector for dimensions (now it should be 7-element vector or symbolic expression, so I guess this case was copied from older versions of OpenFOAM without verification), ending with this sigFpe.

I was able to execute the case (though don't know whether results are meaningful or not) if I change linear system solver for U/k/omega from smoothSolver to PBiCG, i.e. I change fvSolution to:

Code:
    "(U|k|omega)"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-8;
        relTol          0.1;
    /*
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          0.1;
    */
    }

    "(U|k|omega)Final"
    {
        $U;
        relTol          0;
    /*
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          0;
    */
    }
Hi Alexeym,

Thanks for the kind reply. I have followed your suggestion and the case runs out well. About the dimensions, I have checked through the source file, and found out several vectors in 5-element, and the rest in 7-element.
However, the result seemed a bit strange to me. The nozzle flow is super-cavitating all the way to the end. I am wonder if this is the right calculation.

Regards

Bo
Attached Images
File Type: jpg qqqqqq.jpg (20.6 KB, 8 views)
wang219910611 is offline   Reply With Quote

Old   November 18, 2014, 03:58
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by wang219910611 View Post
However, the result seemed a bit strange to me. The nozzle flow is super-cavitating all the way to the end. I am wonder if this is the right calculation.
Well, there are two ways to check correctness of the calculations:

1. Find a published paper with results and try to reproduce them

2. Find author of the tutorial case and ask him about results

As I'm neither a specialist in cavitation, nor a user of cavitatingFoam, I can only suggest technical things to make the case running.
alexeym is offline   Reply With Quote

Old   November 18, 2014, 04:02
Thumbs up
  #5
Member
 
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 11
wang219910611 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Well, there are two ways to check correctness of the calculations:

1. Find a published paper with results and try to reproduce them

2. Find author of the tutorial case and ask him about results

As I'm neither a specialist in cavitation, nor a user of cavitatingFoam, I can only suggest technical things to make the case running.
I think I can try to compare the results with some papers. Thanks for the quick reply and suggestion. : D
wang219910611 is offline   Reply With Quote

Reply

Tags
cavitatingfoam


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
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 05:34
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01
STAR-CD Tutorial shekhar aryal STAR-CD 4 March 22, 2010 03:25
Rotor/stator tutorial, and how to... gilberto CFX 5 January 21, 2002 09:41


All times are GMT -4. The time now is 22:42.