|
[Sponsors] |
problems trying to understand mixedEnergyFvPatchScalarField::updateCoeffs() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 4, 2014, 08:13 |
problems trying to understand mixedEnergyFvPatchScalarField::updateCoeffs()
|
#1 |
Senior Member
Thomas Jung
Join Date: Mar 2009
Posts: 102
Rep Power: 17 |
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 |
|
|
|
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 |