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

Problem with Thermophysical Properties and rhoSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By BenJ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2014, 08:58
Default Problem with Thermophysical Properties and rhoSimpleFoam
  #1
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi everyone!

I am trying to use rhoSimpleFoam with hPsiThermo<pureMixture<SutherlandTransport<specieT hermo<hConstThermo<perfectGas.

I have already run a case with an hexaedral mesh created with bockMesh, but with a new mesh built with thetraedrical cells (from fluent), it does not run with the same boundary conditions.

Can anyone help me?

Thanks
Ben
Kittipos likes this.
BenJ is offline   Reply With Quote

Old   April 23, 2014, 22:24
Default
  #2
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Quote:
Originally Posted by BenJ View Post
Hi everyone!

I am trying to use rhoSimpleFoam with hPsiThermo<pureMixture<SutherlandTransport<specieT hermo<hConstThermo<perfectGas.

I have already run a case with an hexaedral mesh created with bockMesh, but with a new mesh built with thetraedrical cells (from fluent), it does not run with the same boundary conditions.

Can anyone help me?

Thanks
Ben

Have you tried this page? http://www.openfoam.org/features/mesh-conversion.php
massive_turbulence is offline   Reply With Quote

Old   April 24, 2014, 04:25
Default
  #3
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi massive_turbulence

Thank you for your answer.

Yes, I did convert the mesh with the FluentToFoam utility.

I should be more precise, my mistake. When I try to run the case with exactly the same boundary conditions, system file and constant properties (thermodynamics, turbulence model etc...), when I only change the mesh, the first time iteration runs for velocity components, but crashes after calculating the enthalpy h (and I tried it with different solvers).

Here is the message I get :

Quote:
#0 Foam::error:rintStack(Foam::Ostream&) in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib64/libc.so.6"
#3 Foam::hPsiThermo<Foam:ureMixture<Foam::sutherlan dTransport<Foam::specieThermo<Foam::hConstThermo<F oam:erfectGas> > > > >::calculate() in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
#4 Foam::hPsiThermo<Foam:ureMixture<Foam::sutherlan dTransport<Foam::specieThermo<Foam::hConstThermo<F oam:erfectGas> > > > >::correct() in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
#5
in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/rhoSimpleFoam"
#6 __libc_start_main in "/lib64/libc.so.6"
#7
at /home/abuild/rpmbuild/BUILD/glibc-2.14.1/csu/../sysdeps/x86_64/elf/start.S:116
Gleitkomma-Ausnahme
Thanks a lot for your help!
BenJ
BenJ is offline   Reply With Quote

Old   April 24, 2014, 05:27
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

can you show:

1. Output of checkMesh utility
2. Your fvSchemes, fvSolution, and controlDict
alexeym is offline   Reply With Quote

Old   April 24, 2014, 08:29
Default
  #5
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi Alexeym,

Thank you for your interest!

Here is the result of checkMesh:
Quote:
Create time
Create polyMesh for time = 0
Time = 0
Mesh stats
points: 158315
faces: 1675145
internal faces: 1603215
cells: 819590
boundary patches: 12
point zones: 0
face zones: 0
cell zones: 0
Overall number of cells of each type:
hexahedra: 0
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 819590
polyhedra: 0

Checking topology...
****Problem with boundary patch 0 named inlet of type patch. The patch should start on face no 1603215 and the patch specifies 1604156.
Possibly consecutive patches have this same problem. Suppressing future warnings.
***Boundary definition is in error.
Cell to face addressing OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).
Checking patch topology for multiply connected surfaces ...
Patch Faces Points Surface topology
inlet 923 525 ok (non-closed singly connected)
outlet 941 534 ok (non-closed singly connected)
ground 47959 24352 ok (non-closed singly connected)
car 12430 6280 ok (non-closed singly connected)
out01 205 129 ok (non-closed singly connected)
in01 65 44 ok (non-closed singly connected)
in02 67 45 ok (non-closed singly connected)
in03 63 43 ok (non-closed singly connected)
in04 66 45 ok (non-closed singly connected)
top 3380 1786 ok (non-closed singly connected)
left 2651 1521 ok (non-closed singly connected)
right 3180 1785 ok (non-closed singly connected)

Checking geometry...
Overall domain bounding box (0 0 0) (220 30 60)
Mesh (non-empty, non-wedge) directions (1 1 1)
Mesh (non-empty) directions (1 1 1)
Boundary openness (-2.66364e-17 2.47972e-15 1.16455e-16) OK.
Max cell openness = 3.00333e-16 OK.
Max aspect ratio = 5.58785 OK.
Minumum face area = 0.00159453. Maximum face area = 8.97168. Face area magnitudes OK.
Min volume = 3.60741e-05. Max volume = 6.9714. Total volume = 394606. Cell volumes OK.
Mesh non-orthogonality Max: 59.3015 average: 13.9372
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.650403 OK.
Coupled point location match (average 0) OK.

Mesh OK.

End
Here is controlDict:
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhosimpleFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 4;
deltaT 0.002;
writeControl timeStep;
writeInterval 20;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
// ************************************************** *********************** //
fvSchemes:
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;

div(phi,U) Gauss upwind;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,omega) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,K) Gauss upwind;
}
laplacianSchemes
{
default Gauss linear corrected;

}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************** *********************** //
fvSolution:
Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver GAMG;
tolerance 1e-7;
relTol 0.1;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
cacheAgglomeration off;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
mergeLevels 1;

}
U
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-8;
relTol 0.1;
nSweeps 1;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-8;
relTol 0.1;
nSweeps 1;
}
omega
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-8;
relTol 0.1;
nSweeps 1;
}

h
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0.1;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.5;
rhoMax rhoMax [ 1 -3 0 0 0 ] 1.5;
}
potentialFlow
{
nNonOrthogonalCorrectors 10;
}
relaxationFactors
{
fields
{
p 0.3;
rho 0.05;
}
equations
{
U 0.7;
k 0.7;
omega 0.7;
h 0.5;
}
}
cache
{
grad(U);
}
// ************************************************** *********************** //
Thank you for your help!
BenJ is offline   Reply With Quote

Old   April 24, 2014, 09:59
Default
  #6
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi again,

It seems that the problem does not come from the mesh, but from my settings. I have exactly the same issue with rhoSimplecFoam after 12 iterations and an hexahedral mesh...

So I think my fvSchemes or fvSolution are not adapted for these compressible solvers... what should I set?

BenJ
BenJ is offline   Reply With Quote

Old   April 24, 2014, 11:48
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

my suggestions will be rather general:

1. Have you tried to run simulation with smaller time step?

2. Try cellMDLimited (or just cellLimited) scheme for gradients. I.e. instead

Code:
default Gauss linear;
try

Code:
default cellMDLimited Gauss linear 1.0;
Since it seems you've not reached the stage of solving pressure equation, you can start with just these modifications of the settings.
alexeym is offline   Reply With Quote

Old   April 24, 2014, 12:50
Default
  #8
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi Alexeym !

Thanks for these advices!

I tried to replace the scheme for gradient. In fact, it does run for a few iterations (42), but it crashes and gives me the same floating point exception.

Before you answered, I also tried to replace the scheme for divergence. I tried Gauss linear corrected. But, again, after 47 iterations, it crashes and returns the same floating point exception...

So, I guess I should try another scheme... But I donīt really know where I could have good informations about this subject. The OpenFOAM userīs Guide is a bit light about it.

About the time step, I thought it has no influence for steady-state solver?

Thanks again!
BenJ
BenJ is offline   Reply With Quote

Old   April 24, 2014, 14:50
Default
  #9
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

well, as I don't know the actual problem you're trying to solve I'll try to give another set of rather general suggestions:

1. Change smoothSolvers to PBiCG for U, k, omega.
2. Change GAMG to PCG for pressure. Or at least set nCellsInCoarsestLevel to square root of the number of cells in your mesh.
3. Reduce relaxation factors even more (i.e. increase relaxation).
4. Add even more viscosity changing cellLimited to faceLimited.

I really don't know where to learn about discretisation schemes except going though sources (you can find certain hints in http://www.dicat.unige.it/guerrero/o...sandtricks.pdf).

You're right about time step, didn't pay attention to Simple in solver name.
alexeym is offline   Reply With Quote

Old   April 25, 2014, 11:14
Default
  #10
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi!

Thanks for your answer. I did try to change the fvSchemes and fvSolution files. It worked well, but the residuals were oscillating, tending to be amplified.
I will try to use the results of this simulation as initial conditions for a simulation with other solvers.

Thanks again
BenJ
BenJ is offline   Reply With Quote

Old   April 28, 2014, 04:50
Default
  #11
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi!

Running other solver (rhoCentralFoam), with the fvSchemes and Solution above, I get the same error message.
And this is about thermophysicalProperties... I don't know where I can change something to male this work.

Does anyone have an idea?

BenJ
BenJ is offline   Reply With Quote

Old   April 28, 2014, 12:35
Default
  #12
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 12
BenJ is on a distinguished road
Hi!

So, with your advices Alexeym, it ran, but crashed after 200 iterations...

If it can help, here are the last terminal out:

Quote:
Time = 0.55
DILUPBiCG: Solving for Ux, Initial residual = 0.0566853, Final residual = 2.29868e-05, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0.0649065, Final residual = 3.16794e-05, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 0.0570885, Final residual = 2.77855e-05, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 0.0214908, Final residual = 5.69351e-06, No Iterations 1
DICPCG: Solving for p, Initial residual = 0.677055, Final residual = 0.0660593, No Iterations 35
time step continuity errors : sum local = 0.000308196, global = -3.82253e-05, cumulative = -0.000191121
rho max/min : 1.48201 0.841161
DILUPBiCG: Solving for omega, Initial residual = 0.00462973, Final residual = 1.49717e-06, No Iterations 1
bounding omega, min: -43.849 max: 5271.65 average: 8.24766
DILUPBiCG: Solving for k, Initial residual = 0.00379471, Final residual = 3.17851e-06, No Iterations 1
bounding k, min: -4.47456 max: 567.125 average: 0.256878
ExecutionTime = 486.12 s ClockTime = 543 s
Time = 0.552
DILUPBiCG: Solving for Ux, Initial residual = 0.0563291, Final residual = 2.28632e-05, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0.0634064, Final residual = 3.09718e-05, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 0.056279, Final residual = 2.73982e-05, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 0.0213536, Final residual = 5.86027e-06, No Iterations 1
#0 Foam::error:rintStack(Foam::Ostream&) in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib64/libc.so.6"
#3 Foam::hPsiThermo<Foam:ureMixture<Foam::sutherlan dTransport<Foam::specieThermo<Foam::hConstThermo<F oam:erfectGas> > > > >::calculate() in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
#4 Foam::hPsiThermo<Foam:ureMixture<Foam::sutherlan dTransport<Foam::specieThermo<Foam::hConstThermo<F oam:erfectGas> > > > >::correct() in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
#5
in "/software/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/rhoSimpleFoam"
#6 __libc_start_main in "/lib64/libc.so.6"
#7
at /home/abuild/rpmbuild/BUILD/glibc-2.14.1/csu/../sysdeps/x86_64/elf/start.S:116
Floating Point Exception
I am trying to change the mesh. Import from fluent could be the cause of bad calculation?
BenJ
BenJ is offline   Reply With Quote

Old   July 29, 2014, 18:02
Default
  #13
New Member
 
nakku
Join Date: Jun 2014
Posts: 11
Rep Power: 12
dahicocuk is on a distinguished road
Hi Alexeym,

I want to use nanofluids for laminar pipe flow simulations.The thermophysical properties of nanofluids are as a functions of temperature thus I need to add temperature equation in rhoSimpleFoam.Could you please let me know how I can make it?

Thank you.

Best Regards.
dahicocuk is offline   Reply With Quote

Old   February 25, 2015, 23:29
Default sigFPE error with thermophysical model
  #14
New Member
 
Dhaval Shiyani
Join Date: Sep 2012
Posts: 7
Rep Power: 14
cfdjunkie is on a distinguished road
Hello BenJ,

Have you found the solution to the sigFPE error for the thermophysical model?

I am running a 2D unsteady, compressible flow over a backward facing step and I get the exact same error.
I tried all the suggestion by alexyem and it just increases the number of iterations after which it crashes. Just like you had.
Also the residuals oscillate and tend to diverge.

I would really appreciate any help I can get on this matter. From anybody!

I can post more details if anyone requires it.

Regards,
Dhaval
cfdjunkie 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 rhoSimpleFoam : exploding enthalpy and density at the walls david39 OpenFOAM Running, Solving & CFD 6 January 18, 2011 12:49
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 05:32
Problem with rhoSimpleFoam mecbe2002 OpenFOAM 3 April 11, 2010 01:54
RhoSimpleFoam problem with patch nishant_hull OpenFOAM Running, Solving & CFD 15 October 30, 2009 13:51
How to implement thermophysical properties in a solver dominik_christ OpenFOAM Running, Solving & CFD 0 June 17, 2008 12:29


All times are GMT -4. The time now is 05:59.