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

Courant Number Error while using IcoFoam Solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 17:49
Default Courant Number Error while using IcoFoam Solver
  #1
New Member
 
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7
PRATBHARAT is on a distinguished road
Hi, I developed the solver using icoFoam with temperature gradient for the flow over multiple spheres. While I am running the test case. I am getting the following error/
Time = 1.1e-06

Courant Number mean: 0.0312314 max: 105.509
smoothSolver: Solving for Ux, Initial residual = 0.354868, Final residual = 1.0188e+222, No Iterations 1000
smoothSolver: Solving for Uy, Initial residual = 0.346559, Final residual = 6.00719e+221, No Iterations 1000
smoothSolver: Solving for Uz, Initial residual = 0.455163, Final residual = 6.6173e+221, No Iterations 1000
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 double Foam::sumProd<double>(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4 Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#5 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#6 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/cfdlab/OpenFOAM/cfdlab-3.0.1/platforms/linux64GccDPInt64Opt/bin/my_icoFoam"
#7 ? in "/home/cfdlab/OpenFOAM/cfdlab-3.0.1/platforms/linux64GccDPInt64Opt/bin/my_icoFoam"
#8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#9 ? in "/home/cfdlab/OpenFOAM/cfdlab-3.0.1/platforms/linux64GccDPInt64Opt/bin/my_icoFoam"
Floating point exception (core dumped)


Kindly solve my issue. I am attaching the solver and test case too.
Thanks in advance.
PRATBHARAT is offline   Reply With Quote

Old   July 18, 2019, 09:09
Default check your mesh
  #2
New Member
 
sagar saroha
Join Date: Sep 2015
Posts: 11
Rep Power: 11
sagar_saroha is on a distinguished road
Hi

The 'floating-point exception' error indicates a problem with mesh.

Run the following command and share the output from the log file:
Code:
checkMesh > meshReport.log
sagar_saroha is offline   Reply With Quote

Old   July 21, 2019, 16:51
Default
  #3
New Member
 
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7
PRATBHARAT is on a distinguished road
Hi sagar_saroha
Thanks for replying...
Here, I am attaching the checkMesh report. Please, look in to it.
Attached Files
File Type: zip meshReport.zip (1.4 KB, 10 views)
PRATBHARAT is offline   Reply With Quote

Old   July 21, 2019, 19:05
Default
  #4
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7
CFD_10 is on a distinguished road
What about your time step deltaT?
CFD_10 is offline   Reply With Quote

Old   July 22, 2019, 04:24
Default
  #5
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
If you need help, please give us more information about your case. Next, provide your BCs for U and p. Pretty sure that your BCs are set wrong.
hxaxtma is offline   Reply With Quote

Old   July 22, 2019, 04:54
Default
  #6
New Member
 
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7
PRATBHARAT is on a distinguished road
object controlDict;


application my_icoFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;

endTime 0.01;

deltaT 1e-7;

writeControl timeStep;

writeInterval 50;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 10;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 1.0;

maxDeltaT 0.1;




object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0.0002 0 0);
}
outlet
{
type zeroGradient;
value uniform (0 0 0);
}
side_walls
{
type fixedValue;
value uniform (0 0 0);
}
spheres
{
type fixedValue;
value uniform (0 0 0);
}



object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
side_walls
{
type zeroGradient;
}
spheres
{
type zeroGradient;
}


Kindly, again look in to the controlDict and BCs.
PRATBHARAT is offline   Reply With Quote

Old   July 22, 2019, 19:11
Default
  #7
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Could you just share your case?
anon_q is offline   Reply With Quote

Old   August 2, 2019, 03:13
Default
  #8
New Member
 
WJ
Join Date: Feb 2016
Location: MyHome
Posts: 11
Rep Power: 10
misospider is on a distinguished road
This is most likely due to mesh and time step issue.

BCs are look ok.

Reduce time step and maxCo to less than 0.7, recommeding 0.5.

And save each time step until crash, check flow what is going wrong, especially at high Co>1.

If your setting are ok, this is problem of mesh quality, as you can see there are converted meshes (non-orthg.), if you can you need to mak mesh without that.
misospider is offline   Reply With Quote

Old   August 2, 2019, 04:01
Default Reduce mesh non-orthogonality
  #9
New Member
 
sagar saroha
Join Date: Sep 2015
Posts: 11
Rep Power: 11
sagar_saroha is on a distinguished road
Quote:
Originally Posted by PRATBHARAT View Post
Hi sagar_saroha
Thanks for replying...
Here, I am attaching the checkMesh report. Please, look in to it.

Hi Pratyush

Please note that mesh non-orthogonality is high (>75) in 34 cases- please locate and try to correct these. [as also suggested by WJ].
sagar_saroha is offline   Reply With Quote

Old   August 5, 2019, 16:43
Default
  #10
New Member
 
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7
PRATBHARAT is on a distinguished road
Hi sagar_saroha ,
I am new in CFD. Can you explain how can I correct these non orthogonality?
PRATBHARAT is offline   Reply With Quote

Old   August 6, 2019, 07:07
Default Revisit the meshing stage and check near sphere regions
  #11
New Member
 
sagar saroha
Join Date: Sep 2015
Posts: 11
Rep Power: 11
sagar_saroha is on a distinguished road
Hi Pratyush

Non-orthogonality is related to the angle of intersection of mesh lines. Using mesh elements of larger size (or using less element count) may lead to high non-orthogonality in case of unstructured grids.

Most of the commercial solvers have an 'inbuilt-mesh check' feature which highlights and suggests ways to repair mesh elements with non-orthogonality.
Otherwise, a crude way is using the hit-and-trial method by reducing element size in the suspected zones of bad quality mesh. A rough guess would be 'near sphere geometry' zone(s).

I would be able to comment better after seeing mesh snap-shot.
sagar_saroha is offline   Reply With Quote

Old   August 6, 2019, 09:46
Default
  #12
New Member
 
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7
PRATBHARAT is on a distinguished road
https://drive.google.com/file/d/1Wjf...ew?usp=sharing


Here I am attaching my mesh file. Kindly look in to it and solve my problem.
PRATBHARAT 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
Courant Number waseeqsiddiqui FLUENT 3 December 27, 2018 11:43
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
Weird AMI Courant Number Vyssion OpenFOAM Running, Solving & CFD 3 April 13, 2016 03:31
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49


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