|
[Sponsors] |
B.C.:externalWallHeatFluxTemperature - different treatment of inand out heatflux? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 21, 2014, 15:36 |
B.C.:externalWallHeatFluxTemperature - different treatment for in and out heatflux
|
#1 |
Senior Member
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13 |
Hello Foamers,
I took a look at the source code of B.C.externalWallHeatFluxTemperature and I find that there is a different treatment for inflow heat flux and outflow heat flux. Does anybody know the theory behind this? Thanks. The code is copied here: Code:
if (oldMode_ == fixedHeatFlux) { q = q_; } else if (oldMode_ == fixedHeatTransferCoeff) { q = (Ta_ - *this)*h_; } else { FatalErrorIn ( "externalWallHeatFluxTemperatureFvPatchScalarField" "::updateCoeffs()" ) << "Illegal mode " << operationModeNames[oldMode_] << exit(FatalError); } forAll (*this, i) { if (q[i] > 0) //in { this->refGrad()[i] = q[i]/KWall[i]; this->refValue()[i] = 0.0; this->valueFraction()[i] = 0.0; } else //out { this->refGrad()[i] = 0.0; this->refValue()[i] = q[i]/KDelta[i] + patchInternalField()()[i]; this->valueFraction()[i] = 1.0; } } Last edited by wc34071209; February 22, 2014 at 08:32. |
|
February 22, 2014, 08:32 |
|
#2 |
Senior Member
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13 |
It seems when heat flux is in a fixedGradient b.c. is applied, whereas when heat flux is out, a fixedValue b.c. is applied.
I am totally confused for what reasons OF employs such a strategy. |
|
February 26, 2014, 07:19 |
|
#3 |
Senior Member
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13 |
nobody is interested? I am eager to know.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does realizable k-e model with enhanced wall treatment work for surface roughness? | zyy95900 | FLUENT | 5 | November 15, 2017 16:13 |
Boundary Layer roughness/ low reynolds wall treatment | Luigi_ | STAR-CCM+ | 1 | March 14, 2012 08:40 |
Enhanced wall treatment and Enhanced wall functions | Alina | FLUENT | 2 | January 3, 2012 18:48 |
Enhanced wall treatment with user-defined mu_t | tstorm | FLUENT | 0 | August 20, 2009 13:05 |
RSM with enhanced wall treatment | zwdi | FLUENT | 1 | April 24, 2005 20:36 |