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
ba271df9
Commit
ba271df9
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[components] Export Scalar type is base class
parent
e4986380
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!899
Feature/component traits
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/components/base.hh
+14
-9
14 additions, 9 deletions
dumux/material/components/base.hh
with
14 additions
and
9 deletions
dumux/material/components/base.hh
+
14
−
9
View file @
ba271df9
...
...
@@ -39,11 +39,16 @@
namespace
Dumux
{
namespace
Components
{
template
<
class
Scalar
,
class
Implementation
>
template
<
class
Scalar
Type
,
class
Component
>
class
Base
{
public:
static
const
bool
isTabulated
=
false
;
//! export the scalar type used by the component
using
Scalar
=
ScalarType
;
//! if the component relies on tabulated values
static
constexpr
bool
isTabulated
=
false
;
/*!
* \brief A default routine for initialization, not needed for components and must not be called.
...
...
@@ -65,7 +70,7 @@ public:
* \brief A human readable name for the component.
* \note Mandatory for all components
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
std
::
string
name
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: name()"
);
...
...
@@ -75,7 +80,7 @@ public:
/*!
* \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the component.
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
constexpr
Scalar
molarMass
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: molarMass()"
);
...
...
@@ -85,7 +90,7 @@ public:
/*!
* \brief Returns the critical temperature in \f$\mathrm{[K]}\f$ of the component.
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
constexpr
Scalar
criticalTemperature
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: criticalTemperature()"
);
...
...
@@ -95,7 +100,7 @@ public:
/*!
* \brief Returns the critical pressure in \f$\mathrm{[Pa]}\f$ of the component.
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
constexpr
Scalar
criticalPressure
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: criticalPressure()"
);
...
...
@@ -105,7 +110,7 @@ public:
/*!
* \brief Returns the temperature in \f$\mathrm{[K]}\f$ at the component's triple point.
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
constexpr
Scalar
tripleTemperature
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: tripleTemperature()"
);
...
...
@@ -115,7 +120,7 @@ public:
/*!
* \brief Returns the pressure in \f$\mathrm{[Pa]}\f$ at the component's triple point.
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
constexpr
Scalar
triplePressure
()
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: triplePressure()"
);
...
...
@@ -128,7 +133,7 @@ public:
*
* \param T temperature of the component in \f$\mathrm{[K]}\f$
*/
template
<
class
C
=
Implementation
>
template
<
class
C
=
Component
>
static
Scalar
vaporPressure
(
Scalar
t
)
{
static_assert
(
AlwaysFalse
<
C
>::
value
,
"Mandatory function not implemented: vaporPressure(t)"
);
...
...
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