Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
7ed51637
Commit
7ed51637
authored
6 years ago
by
Katharina Heck
Committed by
Timo Koch
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[components] add solid properties in constant component
parent
b3205e26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!903
Feature/solid state
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/components/constant.hh
+37
-0
37 additions, 0 deletions
dumux/material/components/constant.hh
with
37 additions
and
0 deletions
dumux/material/components/constant.hh
+
37
−
0
View file @
7ed51637
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment