CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   error in comments section of externalWallHeatFluxTemperature.H? (https://www.cfd-online.com/Forums/openfoam-bugs/174576-error-comments-section-externalwallheatfluxtemperature-h.html)

phsieh2005 July 14, 2016 14:26

error in comments section of externalWallHeatFluxTemperature.H?
 
Hi,

The usage of externalWallHeatFluxTemperature is the following:
<patchName>
{
type externalWallHeatFluxTemperature;
kappa fluidThermo;
q uniform 1000;
Ta uniform 300.0;
h uniform 10.0;
thicknessLayers (0.1 0.2 0.3 0.4);
kappaLayers (1 2 3 4);
value uniform 300.0;
kappaName none;
Qr none;
relaxation 1;
}
\endverbatim

Note:
- Only supply \c h and \c Ta, or \c q in the dictionary (see above)
- \c kappa and \c kappaName are inherited from temperatureCoupledBase.
------------
But, I got an error of "kappaMethod is undefined. I need to change to
kappaMethod fluidThermo;

Is this a typo error?

Pei-Ying

pupo August 18, 2016 13:49

Seems that the instructions are not updated, but the code is not consistant either. there is no "kappaMethod" here: https://github.com/OpenFOAM/OpenFOAM...hScalarField.C

the following sintax works for a fixed heat transfer heated wall:


Code:

  "fluid_to_.*" 
  {
      type            externalWallHeatFluxTemperature;
      kappa            fluidThermo;
      kappaMethod      fluidThermo;
      q                uniform 264;
      value            uniform 293.7;
  }


wyldckat August 20, 2016 14:54

Quick answer: Unfortunately that's one example of having the same documentation in several places. When one if fixed, all others may or may not be updated.

If you follow the link online for the "temperatureCoupledBase" class, you'll find the description here: http://cpp.openfoam.org/v4/a02649.html#details

The change that occurred was reported in the following commit: https://github.com/OpenFOAM/OpenFOAM...e92188c3953b8e
Quote:

temperatureCoupledBase: Rationalized the selection of the method for obtaining the thermal conductivity

Code:

kappa -> kappaMethod
kappaName -> kappa


I'll submit a patch for 4.x and dev in a few minutes and update this post accordingly.

Furthermore, next time you pick-up this kind of typo, please do report it at http://bugs.openfoam.org ;)

edit: Patch has been submitted here: http://bugs.openfoam.org/view.php?id=2207


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