Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
f4d8a7c6
Commit
f4d8a7c6
authored
Jul 31, 2019
by
Kilian Weishaupt
Committed by
Ned Coltman
Mar 26, 2020
Browse files
[porousmediumflow] Add effectiveThermalConductivity to energyVolVars
parent
375e71d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/porousmediumflow/nonisothermal/volumevariables.hh
View file @
f4d8a7c6
...
...
@@ -134,26 +134,31 @@ public:
return
0
;
}
//! The effective thermal conductivity is zero for isothermal models
void
updateEffectiveThermalConductivity
()
{}
};
//! The non-isothermal implicit volume variables base class
template
<
class
Isothermal
Traits
,
class
Impl
>
class
EnergyVolumeVariablesImplementation
<
Isothermal
Traits
,
Impl
,
true
>
template
<
class
Traits
,
class
Impl
>
class
EnergyVolumeVariablesImplementation
<
Traits
,
Impl
,
true
>
{
using
Scalar
=
typename
IsothermalTraits
::
PrimaryVariables
::
value_type
;
using
Idx
=
typename
IsothermalTraits
::
ModelTraits
::
Indices
;
using
ParentType
=
PorousMediumFlowVolumeVariables
<
IsothermalTraits
>
;
using
Scalar
=
typename
Traits
::
PrimaryVariables
::
value_type
;
using
Idx
=
typename
Traits
::
ModelTraits
::
Indices
;
using
ParentType
=
PorousMediumFlowVolumeVariables
<
Traits
>
;
using
EffCondModel
=
typename
Traits
::
EffectiveThermalConductivityModel
;
static
const
int
temperatureIdx
=
Idx
::
temperatureIdx
;
static
const
int
numEnergyEq
=
Isothermal
Traits
::
ModelTraits
::
numEnergyEq
();
static
const
int
numEnergyEq
=
Traits
::
ModelTraits
::
numEnergyEq
();
public:
// export the fluidstate
using
FluidState
=
typename
Isothermal
Traits
::
FluidState
;
using
SolidState
=
typename
Isothermal
Traits
::
SolidState
;
using
FluidState
=
typename
Traits
::
FluidState
;
using
SolidState
=
typename
Traits
::
SolidState
;
//! export the underlying fluid system
using
FluidSystem
=
typename
Isothermal
Traits
::
FluidSystem
;
using
SolidSystem
=
typename
Isothermal
Traits
::
SolidSystem
;
using
FluidSystem
=
typename
Traits
::
FluidSystem
;
using
SolidSystem
=
typename
Traits
::
SolidSystem
;
//! The temperature is obtained from the problem as a constant for isothermal models
template
<
class
ElemSol
,
class
Problem
,
class
Element
,
class
Scv
>
...
...
@@ -218,6 +223,12 @@ public:
solidState
.
setThermalConductivity
(
lambdas
);
}
// updates the effective thermal conductivity
void
updateEffectiveThermalConductivity
()
{
lambdaEff_
=
EffCondModel
::
effectiveThermalConductivity
(
asImp_
());
}
/*!
* \brief Returns the total internal energy of a phase in the
* sub-control volume.
...
...
@@ -279,6 +290,13 @@ public:
Scalar
fluidThermalConductivity
(
const
int
phaseIdx
)
const
{
return
FluidSystem
::
thermalConductivity
(
asImp_
().
fluidState
(),
phaseIdx
);
}
/*!
* \brief Returns the effective thermal conductivity \f$\mathrm{[W/(m*K)]}\f$ in
* the sub-control volume.
*/
Scalar
effectiveThermalConductivity
()
const
{
return
lambdaEff_
;
}
//! The phase enthalpy is zero for isothermal models
//! This is needed for completing the fluid state
template
<
class
ParameterCache
>
...
...
@@ -455,6 +473,7 @@ private:
return
problem
.
spatialParams
().
solidThermalConductivity
(
element
,
scv
,
elemSol
,
solidState
);
}
Scalar
lambdaEff_
;
// \}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment