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

Error while solving turbulent combustion using rhoreactingfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2019, 07:58
Default Error while solving turbulent combustion using rhoreactingfoam
  #1
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
Hello,

I have been receiving this error while trying to execute the case file for turbulent combustion using the rhoReactingFoam solver.

Screenshot 2019-01-11 at 9.27.08 PM.jpg

Here's the link to the case file:

https://drive.google.com/open?id=1gs...rXX_wkV1GdbGlu
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 23, 2019, 16:10
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
The output shows you have a problem computing nut (at the boundaries -- line that starts with "#3"). Check your nut boundary conditions.

Caelan
clapointe is offline   Reply With Quote

Old   January 24, 2019, 07:35
Default
  #3
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
Sir, were you able to have a look at the case files? Because, to the best of my knowledge the boundary conditions I have set are correct.
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 24, 2019, 14:28
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
I tried to suggest an answer before downloading someone else's case. How about posting your nut text here? Have you compared it to other tutorials that use rans?

Caelan
clapointe is offline   Reply With Quote

Old   January 25, 2019, 09:12
Default
  #5
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
Here is the nut file sir:

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 0;

boundaryField
{
fuel-inlet
{
type calculated;
value uniform 0;
}
air-inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
upperwall
{
type calculated;
value uniform 0;
}
lowerwall
{
type fixedValue;
value uniform 0;
}
frontandback
{
type empty;
}
}




And to answer your second question, yes sir, I have compared it and to most extent used values from the tutorial cases.
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 25, 2019, 12:31
Default
  #6
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
The error you posted indicated it was a problem with a wall function calculation. However, you are not using wall functions. Did you change it, or are you using wall functions elsewhere?

Caelan
clapointe is offline   Reply With Quote

Old   January 25, 2019, 22:27
Default
  #7
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
I have used the qRWallFunctionk in the k file and epsilonWallFunction in the epsilon file.
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 25, 2019, 23:07
Default
  #8
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
Not totally sure, but I'd hazard a guess that using those wall functions necessitates using a wall function for nut as well.

Caelan
clapointe is offline   Reply With Quote

Old   January 26, 2019, 05:18
Default
  #9
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
Just executed the same case by adding wall function to the nut file as well, same error.
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 26, 2019, 18:46
Default
  #10
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
Ok so we've erased one possibility. Given that the simulation immediately crashes, this suspects your initial conditions. Have you tried other values for k and epsilon? Where did you get your current ones?

Caelan
clapointe is offline   Reply With Quote

Old   January 26, 2019, 21:25
Default
  #11
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
So since you suggested the problem might be with the initial conditions and given that the error indicates that it is with the wall functions, I substituted the wall functions with constant values and now I'm getting another kind of error (attached below)
Attached Images
File Type: jpg Screenshot 2019-01-26 at 9.00.02 AM.jpg (82.2 KB, 9 views)
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 26, 2019, 21:36
Default
  #12
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
It's still a segfault -- looks like a division error. This is often due to division by zero. You can try initializing turbulent fields as very small (but not zero) numbers. Have you looked at the RANS reactingFoam tutorials (https://github.com/OpenFOAM/OpenFOAM...AS/SandiaD_LTS)? For future reference, it's easier to view the code/error if you attach it with the code tags.

Caelan
clapointe is offline   Reply With Quote

Old   January 26, 2019, 21:38
Default
  #13
New Member
 
Nikhil Bollimuntha
Join Date: Oct 2018
Posts: 11
Rep Power: 7
Nikhil Bollimuntha is on a distinguished road
I'll look into it, and I don't have a RANS reactingFoam tutorial in my tutorials directory, could you please specify which one?
Nikhil Bollimuntha is offline   Reply With Quote

Old   January 26, 2019, 22:12
Default
  #14
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
The link I included is the tutorial. It must have been added for recent OpenFOAM versions.

Caelan
clapointe 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
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 09:48
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 12:30
HeatSource BC to the whole region in chtMultiRegionHeater xsa OpenFOAM Running, Solving & CFD 3 November 7, 2016 05:07
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


All times are GMT -4. The time now is 00:52.