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
447e95fe
Commit
447e95fe
authored
6 years ago
by
Katharina Heck
Committed by
Timo Koch
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[components] add granite as solid component
parent
09912006
No related branches found
No related tags found
1 merge request
!903
Feature/solid state
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/material/components/CMakeLists.txt
+1
-0
1 addition, 0 deletions
dumux/material/components/CMakeLists.txt
dumux/material/components/granite.hh
+104
-0
104 additions, 0 deletions
dumux/material/components/granite.hh
with
105 additions
and
0 deletions
dumux/material/components/CMakeLists.txt
+
1
−
0
View file @
447e95fe
...
@@ -12,6 +12,7 @@ co2.hh
...
@@ -12,6 +12,7 @@ co2.hh
co2tablereader.hh
co2tablereader.hh
co2tables.inc
co2tables.inc
constant.hh
constant.hh
granite.hh
h2.hh
h2.hh
h2o.hh
h2o.hh
heavyoil.hh
heavyoil.hh
...
...
This diff is collapsed.
Click to expand it.
dumux/material/components/granite.hh
0 → 100644
+
104
−
0
View file @
447e95fe
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \ingroup Components
* \brief Properties of pure molecular oxygen \f$O_2\f$.
*/
#ifndef DUMUX_GRANITE_HH
#define DUMUX_GRANITE_HH
#include
<dumux/material/components/base.hh>
#include
<dumux/material/components/solid.hh>
#include
<cmath>
namespace
Dumux
{
namespace
Components
{
/*!
* \ingroup Components
* \brief Properties of granite
*
* \tparam Scalar The type used for scalar values
*/
template
<
class
Scalar
>
class
Granite
:
public
Components
::
Base
<
Scalar
,
Granite
<
Scalar
>
>
,
public
Components
::
Solid
<
Scalar
,
Granite
<
Scalar
>
>
{
public:
/*!
* \brief A human readable name for the solid.
*/
static
std
::
string
name
()
{
return
"Granite"
;
}
/*!
* \brief Returns true if the solid phase is assumed to be compressible
*/
static
constexpr
bool
solidIsCompressible
()
{
return
false
;
// iso c++ requires a return statement for constexpr functions
}
/*!
* \brief The molar mass of Siliciumoxide which is 70 % of granite in \f$\mathrm{[kg/mol]}\f$.
*/
static
Scalar
molarMass
()
{
return
60.08e-3
;
}
/*!
* \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$
*/
static
Scalar
solidDensity
(
Scalar
temperature
)
{
return
2700
;
}
/*!
* \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$
*/
static
Scalar
solidThermalConductivity
(
Scalar
temperature
)
{
return
2.8
;
}
/*!
* \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$
*/
static
Scalar
solidHeatCapacity
(
Scalar
temperature
)
{
return
790
;
}
};
}
// end namespace Components
}
// end namespace Dumux
#endif
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