
[Sponsors] 
gradientInternalCoeffs cannot be called for a calculatedFvPatchField 

LinkBack  Thread Tools  Display Modes 
November 13, 2013, 05:11 

#21 
New Member
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 3 
I send for you


November 13, 2013, 05:28 

#22  
New Member
sasan
Join Date: Sep 2013
Posts: 28
Rep Power: 3 
Quote:
I try this BCs,but the problem is still. first I try this boundary condition: type buoyantPressure; value uniform 0; and This type zeroGradient; but no answer... NOTE:my case is 1D and I think should use this BCs Regards, 

March 27, 2014, 16:59 

#23 
Member
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 4 
Hey guys, I am ran into something similar for a conjugate heat transfer problem. In my case it says:
> FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch leftWall of field h in file "/home/meisu/OpenFOAM/meisu2.2.1/run/Research/ConjugateHeatTransfer/RayleighBenard/caseFourDomeFourWalls/0/leftWall/h" You are probably trying to solve for a field with a default boundary condition. From function calculatedFvPatchField<Type>::gradientInternalCoef fs() const in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 199. The question I have is what h file is OpenFOAM referring to? I only don't have any h scripts. Thanks! 

March 27, 2014, 18:48 

#24 
Member
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 4 
Hey guys,
I solved the problem. I did not spell correctly the name of my boundary condition. It should have been labeled as leftWall instead of leftwall. Silly mistakes can consume a lot of time . 

April 17, 2014, 23:03 

#25  
New Member
Zhipeng Zhou
Join Date: Mar 2014
Posts: 8
Rep Power: 3 
Hi Mostafa ,
I have some questions with the following code in createFields.H . ANd I look forward to your help . 1. regarding this code "p_rgh + rhok*gh" , rhok is calculated from temperature T , so it is different in different position , why can we use this formula for uniform rho ? Quote:
Quote:
Quote:
Zhipeng 

April 18, 2014, 00:42 

#26  
Senior Member

Hi Zhipeng and welcome
1 remember the momentum equation and the Boussinesq approximation for naural convection: for the case of constant density and gravity, the term can be written as grad(), where r is the position vector. then is the hydrostatic pressure, and it's convenient and for numerical solution more efficient to define as the head and use it in place of the pressure. In variable density flows, one can split the term into two parts: . for more information you can refer to Ferziger's textbook (computational methods for fluid dynamics). 23 The solver needs to know what and where the reference pressure is. according to the explanation in 1 and below quote, I think you can get the answer of your questions. Quote:
http://foam.sourceforge.net/docs/cpp/a02937.html Bests, Mostafa 

April 20, 2014, 22:58 

#27  
New Member
Zhipeng Zhou
Join Date: Mar 2014
Posts: 8
Rep Power: 3 
Hi , Mostafa ,
Thank you for your help , and I have understand the question , but I can understand the following code in pEqn.H , though I have read the link you telll me . Quote:
Thanks Zhipeng 

April 20, 2014, 23:50 

#28 
Senior Member

the explanation of this algorithm here for me is not very easy!! so I attach you a note about the SIMPLE algorithm for pressurevelocity coupling and 4 links about the PISO and SIMPLE algorithm and the implementation of them with OF:
https://www.dropbox.com/s/lplecnozku...MPLEslides.pdf The_SIMPLE_algorithm_in_OpenFOAM The_PISO_algorithm_in_OpenFOAM BuoyantBoussinesqPisoFoam SIMPLE_algorithm hope they can help you 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
terminate called after throwing an instance of 'int'  b614910  SU2  10  July 27, 2014 22:16 
word::stripInvalid() called for word r error  immortality  OpenFOAM Running, Solving & CFD  4  May 12, 2013 06:03 
How is the turbulence model called in openfoam?  hz283  OpenFOAM  2  November 18, 2012 06:08 
understanding how turbulence models are called  romant  OpenFOAM Programming & Development  0  March 21, 2012 10:22 
reconstructParMesh not working with an axisymetric case  francesco  OpenFOAM Bugs  4  May 8, 2009 05:49 