Merge branch 'feature/cfdemSolverRhoPimple' of https://github.com/ParticulateFlow/CFDEMcoupling into feature/cfdemSolverRhoPimple

This commit is contained in:
ekinaci
2016-04-28 16:11:29 +02:00
2 changed files with 25 additions and 0 deletions

View File

@ -57,6 +57,18 @@ heatTransferGunn::heatTransferGunn
sm.mesh(),
dimensionedScalar("zero", dimensionSet(1,1,-3,0,0,0,0), 0.0)
),
partTempField_
( IOobject
(
"particleTemp",
sm.mesh().time().timeName(),
sm.mesh(),
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
sm.mesh(),
dimensionedScalar("zero", dimensionSet(0,0,0,1,0,0,0), 0.0)
),
tempFieldName_(propsDict_.lookupOrDefault<word>("tempFieldName","T")),
tempField_(sm.mesh().lookupObject<volScalarField> (tempFieldName_)),
voidfractionFieldName_(propsDict_.lookupOrDefault<word>("voidfractionFieldName","voidfraction")),
@ -110,6 +122,17 @@ void heatTransferGunn::calcEnergyContribution()
// get DEM data
particleCloud_.dataExchangeM().getData(partTempName_,"scalar-atom",partTemp_);
double **particleWeights=particleCloud_.particleWeights();
particleCloud_.averagingM().resetWeightFields();
particleCloud_.averagingM().setScalarAverage
(
partTempField_,
partTemp_,
particleWeights,
particleCloud_.averagingM().UsWeightField(),
NULL
);
#ifdef compre
const volScalarField mufField = particleCloud_.turbulence().mu();

View File

@ -50,6 +50,8 @@ private:
word QPartFluidName_;
volScalarField QPartFluid_;
volScalarField partTempField_;
word tempFieldName_;