Skip to content
Snippets Groups Projects
Commit c995c32c authored by Klaus Mosthaf's avatar Klaus Mosthaf
Browse files

Renamed heatConductivity() methods to thermalConductivity() according to the...

Renamed heatConductivity() methods to thermalConductivity() according to the name commonly employed in the fluid systems.
Added return function for thermalConductivity in the 2p2cnivolumevariables - this is required for some coupled models and does not add any new objects (addresses static function of fluidsystem)

Reviewed by Melanie

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9568 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 91b617d3
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,14 @@ public:
Scalar heatCapacity() const
{ return heatCapacity_; };
/*!
* \brief Returns the thermal conductivity \f$\mathrm{[W/(m*K)]}\f$ of the fluid phase in
* the sub-control volume.
*/
Scalar thermalConductivity(const int phaseIdx) const
{ FluidSystem::thermalConductivity(this->fluidState_, phaseIdx); };
protected:
// this method gets called by the parent class. since this method
// is protected, we are friends with our parent..
......
......@@ -74,11 +74,15 @@ public:
}
/*!
* \brief Returns the heat conductivity at the integration point.
* \brief Returns the thermal conductivity \f$\mathrm{[W/(m*K)]}\f$ at the integration point.
*/
const Scalar thermalConductivity() const
{ return thermalConductivity_; }
DUNE_DEPRECATED_MSG("use thermalConductivity() instead")
const Scalar heatConductivity() const
{ return heatConductivity_; }
{ return thermalConductivity_; }
/*!
* \brief Returns the temperature gradient at the integration point.
*/
......@@ -96,7 +100,7 @@ protected:
const Element &element,
const ElementVolumeVariables &elemVolVars)
{
heatConductivity_ = Scalar(0);
thermalConductivity_ = Scalar(0);
temperatureGrad_ = Scalar(0);
// calculate gradients and secondary variables at IPs
......@@ -105,7 +109,7 @@ protected:
idx < this->fvGeometry_.numVertices;
idx++) // loop over vertices of the element
{
heatConductivity_ += elemVolVars[idx].heatConductivity() *
thermalConductivity_ += elemVolVars[idx].thermalConductivity() *
this->face().shapeValue[idx];
// the gradient of the temperature at the IP
......@@ -114,11 +118,11 @@ protected:
this->face().grad[idx][dimIdx]*
elemVolVars[idx].temperature();
}
Valgrind::CheckDefined(heatConductivity_);
Valgrind::CheckDefined(thermalConductivity_);
Valgrind::CheckDefined(temperatureGrad_);
}
Scalar heatConductivity_;
Scalar thermalConductivity_;
DimVector temperatureGrad_;
};
......
......@@ -133,7 +133,7 @@ public:
flux[energyEqIdx] -=
fluxVars.temperatureGrad()[dimIdx] *
fluxVars.face().normal[dimIdx] *
(fluxVars.heatConductivity() + fluxVars.eddyConductivity());
(fluxVars.thermalConductivity() + fluxVars.eddyConductivity());
}
};
......
......@@ -69,10 +69,6 @@ public:
const int scvIdx,
bool isOldSol)
{
// the internal energies and the enthalpies
heatConductivity_ = 0.0257;
//TODO: value (Source: www.engineeringtoolbox.com/air-properties-d_156.html)
// vertex update data for the mass balance
ParentType::update(priVars,
problem,
......@@ -97,11 +93,17 @@ public:
{ return this->fluidState_.enthalpy(phaseIdx); };
/*!
* \brief Returns the heat conductivity of the fluid phase in
* the sub-control volume.
* \brief Returns the thermal conductivity \f$\mathrm{[W/(m*K)]}\f$
* of the fluid phase in the sub-control volume.
*/
Scalar thermalConductivity() const
{
return FluidSystem::thermalConductivity(this->fluidState_, phaseIdx);
};
DUNE_DEPRECATED_MSG("use thermalConductivity() instead")
Scalar heatConductivity() const
{ return heatConductivity_; };
{ return thermalConductivity(); };
protected:
......@@ -125,8 +127,6 @@ protected:
{
return FluidSystem::enthalpy(fluidState, paramCache, phaseIdx);
}
Scalar heatConductivity_;
};
} // end namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment