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

problems trying to understand mixedEnergyFvPatchScalarField::updateCoeffs()

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2014, 08:13
Default problems trying to understand mixedEnergyFvPatchScalarField::updateCoeffs()
  #1
Senior Member
 
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17
tehache is on a distinguished road
Hello there,

I am having problems trying to understand mixedEnergyFvPatchScalarField::updateCoeffs(), code below.
My problem is this part:

refValue() = thermo.he(pw, Tw.refValue(), patchi);

My feeling is that the refValue for the enthaly should be computed using the thermo from the neighbouring region, at least in the case were Tw is e.g. a turbulentTemperatureCoupledBaffleMixedFvPatchScala rField. Could someone enlighten me, perhaps?


================================================== ========

void Foam::mixedEnergyFvPatchScalarField::updateCoeffs( )
{
if (updated())
{
return;
}

const basicThermo& thermo = basicThermo::lookupThermo(*this);
const label patchi = patch().index();

const scalarField& pw = thermo.p().boundaryField()[patchi];
mixedFvPatchScalarField& Tw = refCast<mixedFvPatchScalarField>
(
const_cast<fvPatchScalarField&>(thermo.T().boundar yField()[patchi])
);

Tw.evaluate();

valueFraction() = Tw.valueFraction();
refValue() = thermo.he(pw, Tw.refValue(), patchi);
refGrad() =
thermo.Cpv(pw, Tw, patchi)*Tw.refGrad()
+ patch().deltaCoeffs()*
(
thermo.he(pw, Tw, patchi)
- thermo.he(pw, Tw, patch().faceCells())
);

mixedFvPatchScalarField::updateCoeffs();
}

Last edited by tehache; September 4, 2014 at 08:18. Reason: wasnt specific enough
tehache 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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
[mesh manipulation] Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 04:45
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 07:44
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 06:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


All times are GMT -4. The time now is 05:44.