Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Özgür Ozan Sen
ogs
Commits
9b0abd10
Commit
9b0abd10
authored
8 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[MatL] added physical constants header
copied from OGS5
parent
df374bfd
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
Documentation/Doxyfile.in
+1
-1
1 addition, 1 deletion
Documentation/Doxyfile.in
MaterialsLib/CMakeLists.txt
+6
-0
6 additions, 0 deletions
MaterialsLib/CMakeLists.txt
MaterialsLib/PhysicalConstant.h
+92
-0
92 additions, 0 deletions
MaterialsLib/PhysicalConstant.h
with
100 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
9b0abd10
...
@@ -198,7 +198,7 @@ add_subdirectory( DataHolderLib )
...
@@ -198,7 +198,7 @@ add_subdirectory( DataHolderLib )
add_subdirectory
(
FileIO
)
add_subdirectory
(
FileIO
)
add_subdirectory
(
GeoLib
)
add_subdirectory
(
GeoLib
)
add_subdirectory
(
InSituLib
)
add_subdirectory
(
InSituLib
)
add_subdirectory
(
MaterialsLib
/Adsorption
)
add_subdirectory
(
MaterialsLib
)
add_subdirectory
(
MathLib
)
add_subdirectory
(
MathLib
)
add_subdirectory
(
MeshLib
)
add_subdirectory
(
MeshLib
)
add_subdirectory
(
MeshGeoToolsLib
)
add_subdirectory
(
MeshGeoToolsLib
)
...
...
This diff is collapsed.
Click to expand it.
Documentation/Doxyfile.in
+
1
−
1
View file @
9b0abd10
...
@@ -238,7 +238,7 @@ TAB_SIZE = 4
...
@@ -238,7 +238,7 @@ TAB_SIZE = 4
# "Side Effects:". You can put \n's in the value part of an alias to insert
# "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines.
# newlines.
ALIASES =
ALIASES =
"per{1} = \1<sup>-1</sup>"
# This tag can be used to specify a number of word-keyword mappings (TCL only).
# This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class"
# A mapping has the form "name=value". For example adding "class=itcl::class"
...
...
This diff is collapsed.
Click to expand it.
MaterialsLib/CMakeLists.txt
0 → 100644
+
6
−
0
View file @
9b0abd10
# Source files
GET_SOURCE_FILES
(
SOURCES_MATERIALSLIB
)
add_subdirectory
(
Adsorption
)
add_library
(
MaterialsLib
${
SOURCES_MATERIALSLIB
}
)
This diff is collapsed.
Click to expand it.
MaterialsLib/PhysicalConstant.h
0 → 100644
+
92
−
0
View file @
9b0abd10
/**
* \copyright
* Copyright (c) 2015-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#ifndef MATERIALSLIB_PHYSICALCONSTANT_H
#define MATERIALSLIB_PHYSICALCONSTANT_H
namespace
MaterialsLib
{
/**
* Namespace containing physical constants
* All members of this namespace should be given in SI standard units,
* i.e., in terms of kg, m, s, K, mol, A, cd.
*/
namespace
PhysicalConstant
{
/// Zero degrees Celsius in Kelvin
const
double
CelsiusZeroInKelvin
=
273.15
;
/**
Ideal gas constant in SI standard units (J \per{mol} \per{K})
- Source: http://physics.nist.gov/cgi-bin/cuu/Value?r
- Date visited: 2015-04-17
- Standard uncertainty: 0.000 0075 J mol^-1 K^-1
*/
const
double
IdealGasConstant
=
8.3144621
;
/**
* Molar masses of certain elements and chemical compounds
*/
namespace
MolarMass
{
/**
* Water.
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of O is in the range [15.999 03,
* 15.999 77] g/mol
* and the molar mass of H is in the range [1.007 84, 1.008 11] g/mol
*/
const
double
Water
=
0.018016
;
///< kg \per{mol}
/**
* Nitrogen N<sub>2<sub>.
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of N is in the range [14.006 43,
* 14.007 28] g/mol
*/
const
double
N2
=
0.028013
;
///< kg \per{mol}
/**
* Oxygen O<sub>2<sub>.
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of O is in the range [15.999 03,
* 15.999 77] g/mol
*/
const
double
O2
=
0.032
;
///< kg \per{mol}
/**
* Air.
*
* - Source: http://www.engineeringtoolbox.com/molecular-mass-air-d_679.html
*/
const
double
Air
=
0.02897
;
///< kg \per{mol}
}
// namespace MolarMass
/**
* Specific gas constant \f$ R_\mathrm{s} = R/M \f$.
* \$M\$ is the molar mass.
* The unit of \f$ R_\mathrm{s} \f$ is J \per{kg} \per{K}.
*/
namespace
SpecificGasConstant
{
/// Specific gas constant for water vapour.
const
double
WaterVapour
=
IdealGasConstant
/
MolarMass
::
Water
;
// = 461.504;
}
// namespace SpecificGasConstant
}
// namespace PhysicalConstant
}
// namespace MaterialsLib
#endif // MATERIALSLIB_PHYSICALCONSTANT_H
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