Skip to content
Snippets Groups Projects
Commit 7ed51637 authored by Katharina Heck's avatar Katharina Heck Committed by Timo Koch
Browse files

[components] add solid properties in constant component

parent b3205e26
No related branches found
No related tags found
1 merge request!903Feature/solid state
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <dumux/material/components/base.hh> #include <dumux/material/components/base.hh>
#include <dumux/material/components/liquid.hh> #include <dumux/material/components/liquid.hh>
#include <dumux/material/components/gas.hh> #include <dumux/material/components/gas.hh>
#include <dumux/material/components/solid.hh>
namespace Dumux { namespace Dumux {
namespace Components { namespace Components {
...@@ -53,6 +54,7 @@ class Constant ...@@ -53,6 +54,7 @@ class Constant
: public Components::Base<Scalar, Constant<id, Scalar> > : public Components::Base<Scalar, Constant<id, Scalar> >
, public Components::Liquid<Scalar, Constant<id, Scalar> > , public Components::Liquid<Scalar, Constant<id, Scalar> >
, public Components::Gas<Scalar, Constant<id, Scalar> > , public Components::Gas<Scalar, Constant<id, Scalar> >
, public Components::Solid<Scalar, Constant<id, Scalar> >
{ {
public: public:
...@@ -157,6 +159,41 @@ public: ...@@ -157,6 +159,41 @@ public:
static const Scalar kinematicViscosity = getParamFromGroup<Scalar>(std::to_string(id), "Component.GasKinematicViscosity", 1.0); static const Scalar kinematicViscosity = getParamFromGroup<Scalar>(std::to_string(id), "Component.GasKinematicViscosity", 1.0);
return kinematicViscosity * gasDensity(temperature, pressure); return kinematicViscosity * gasDensity(temperature, pressure);
} }
/*!
* \brief The density in \f$\mathrm{[kg/m^3]}\f$ of the component at a given pressure in
* \f$\mathrm{[Pa]}\f$ and temperature in \f$\mathrm{[K]}\f$.
*
* \param temperature temperature of component in \f$\mathrm{[K]}\f$
* \param pressure pressure of component in \f$\mathrm{[Pa]}\f$
*/
static Scalar solidDensity(Scalar temperature)
{
static const Scalar density = getParamFromGroup<Scalar>(std::to_string(id), "Component.SolidDensity", 1.0);
return density;
}
/*!
* \brief Thermal conductivity of the component \f$\mathrm{[W/(m*K)]}\f$ as a solid.
* \param temperature temperature of component in \f$\mathrm{[K]}\f$
* \param pressure pressure of component in \f$\mathrm{[Pa]}\f$
*/
static Scalar solidThermalConductivity(Scalar temperature)
{
static const Scalar solidThermalConductivity = getParamFromGroup<Scalar>(std::to_string(id), "Component.SolidThermalConductivity", 1.0);
return solidThermalConductivity;
}
/*!
* \brief Specific isobaric heat capacity of the component \f$\mathrm{[J/(kg*K)]}\f$ as a solid.
* \param temperature temperature of component in \f$\mathrm{[K]}\f$
* \param pressure pressure of component in \f$\mathrm{[Pa]}\f$
*/
static Scalar solidHeatCapacity(Scalar temperature)
{
static const Scalar solidHeatCapacity = getParamFromGroup<Scalar>(std::to_string(id), "Component.SolidHeatCapacity", 1.0);
return solidHeatCapacity;
}
}; };
} // end namespace Components } // end namespace Components
......
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