|
[Sponsors] |
gradientInternalCoeffs cannot be called for a calculatedFvPatchField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 13, 2013, 05:11 |
|
#21 |
New Member
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 13 |
I send for you
|
|
November 13, 2013, 05:28 |
|
#22 | |
New Member
sasan
Join Date: Sep 2013
Posts: 28
Rep Power: 13 |
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: 14 |
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/meisu-2.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: 14 |
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 18, 2014, 00:03 |
|
#25 | |||
New Member
Zhipeng Zhou
Join Date: Mar 2014
Posts: 8
Rep Power: 12 |
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, 01: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). 2-3 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, 23:58 |
|
#27 | |
New Member
Zhipeng Zhou
Join Date: Mar 2014
Posts: 8
Rep Power: 12 |
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 21, 2014, 00: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 pressure-velocity 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 |
|
July 29, 2015, 22:18 |
same error for [b]h[/b] file.. but I don't have such file in my [b]0[/b] folder
|
#29 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Hello,
I have the same error posted before: Code:
--> FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch OUTLET of field h in file "/home/lisandro/OpenFOAM/lisandro-2.3.0/run/tutorials/combustion/reactingFoam/ras/counterFlowFlame2D/0/h" You are probably trying to solve for a field with a default boundary condition. From function calculatedFvPatchField<Type>::gradientInternalCoeffs() const in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 199. FOAM exiting Why is it looking for the h file? Best, Lisandro |
|
September 11, 2015, 10:31 |
|
#30 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Just as a matter of fact, I solved the issue above by changing the BC type of N2 (inert specie) in the Outlet patch. It was calculated and I put zeroGradient and I got no errors anymore.
Lisandro |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How is the turbulence model called in openfoam? | hz283 | OpenFOAM | 3 | May 4, 2017 22:20 |
terminate called after throwing an instance of 'int' | b614910 | SU2 | 10 | July 27, 2014 23:16 |
word::stripInvalid() called for word r error | immortality | OpenFOAM Running, Solving & CFD | 4 | May 12, 2013 07:03 |
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 06:49 |