CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

B.C.:externalWallHeatFluxTemperature - different treatment of inand out heatflux?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2014, 15:36
Default B.C.:externalWallHeatFluxTemperature - different treatment for in and out heatflux
  #1
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
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.
wc34071209 is offline   Reply With Quote

Old   February 22, 2014, 08:32
Default
  #2
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
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.
wc34071209 is offline   Reply With Quote

Old   February 26, 2014, 07:19
Default
  #3
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
nobody is interested? I am eager to know.
wc34071209 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
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


All times are GMT -4. The time now is 07:19.