Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
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-course
Commits
c716c201
Commit
c716c201
authored
1 month ago
by
Ivan Buntic
Browse files
Options
Downloads
Patches
Plain Diff
[slides][materialsystem] Add file paths for code blocks.
parent
31142087
No related branches found
No related tags found
1 merge request
!296
Slides update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/materialsystem.md
+13
-18
13 additions, 18 deletions
slides/materialsystem.md
with
13 additions
and
18 deletions
slides/materialsystem.md
+
13
−
18
View file @
c716c201
...
@@ -50,8 +50,6 @@ More resources can be found [in the code documentation](https://dumux.org/docs/d
...
@@ -50,8 +50,6 @@ More resources can be found [in the code documentation](https://dumux.org/docs/d
## Example interfaces
## Example interfaces
*
See _dumux/dumux/material/components/air.hh_
```
cpp
```
cpp
static
Scalar
gasDensity
(
Scalar
temperature
,
Scalar
pressure
)
static
Scalar
gasDensity
(
Scalar
temperature
,
Scalar
pressure
)
{
{
...
@@ -59,24 +57,19 @@ static Scalar gasDensity(Scalar temperature, Scalar pressure)
...
@@ -59,24 +57,19 @@ static Scalar gasDensity(Scalar temperature, Scalar pressure)
return
IdealGas
::
density
(
molarMass
(),
temperature
,
pressure
);
return
IdealGas
::
density
(
molarMass
(),
temperature
,
pressure
);
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/dumux/material/components/air.hh`
</span>
## Example interfaces
## Example interfaces
```
cpp
```
cpp
static
Scalar
gasHeatCapacity
(
Scalar
temperature
,
Scalar
pressure
)
static
Scalar
gasHeatCapacity
(
Scalar
T
,
Scalar
pressure
)
{
{
constexpr
Scalar
cpVapA
=
19.25
;
const
auto
cp
=
shomateMethod
.
heatCapacity
(
T
);
// J/(mol K)
constexpr
Scalar
cpVapB
=
0.05213
;
return
cp
/
molarMass
();
// J/(kg K)
constexpr
Scalar
cpVapC
=
1.197e-5
;
}
constexpr
Scalar
cpVapD
=
-
1.132e-8
;
return
1
/
molarMass
()
*
(
cpVapA
+
temperature
*
(
cpVapB
/
2
+
temperature
*
(
cpVapC
/
3
+
temperature
*
(
cpVapD
/
4
))
)
);
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/dumux/material/components/ch4.hh`
</span>
# Fluid systems
# Fluid systems
...
@@ -111,6 +104,7 @@ static Scalar heatCapacity(const FluidState& fluidState, int phaseIdx)
...
@@ -111,6 +104,7 @@ static Scalar heatCapacity(const FluidState& fluidState, int phaseIdx)
...
...
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/dumux/material/fluidsystems/brine.hh`
</span>
# Binary coefficients
# Binary coefficients
...
@@ -141,7 +135,7 @@ static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
...
@@ -141,7 +135,7 @@ static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
return
Daw
*
(
pg0
/
pressure
)
*
pow
((
temperature
/
T0
),
theta
);
return
Daw
*
(
pg0
/
pressure
)
*
pow
((
temperature
/
T0
),
theta
);
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/dumux/material/binarycoefficients/h2o_air.hh`
</span>
# Solid systems
# Solid systems
...
@@ -269,7 +263,7 @@ _CompositionFromFugacities_ : takes all component fugacities, the temperature an
...
@@ -269,7 +263,7 @@ _CompositionFromFugacities_ : takes all component fugacities, the temperature an
```
cpp
```
cpp
template
<
class
TypeTag
>
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
H2OAir
>
struct
FluidSystem
<
TypeTag
,
TTag
::
DrainageProblem
>
{
{
private:
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
...
@@ -283,6 +277,7 @@ public:
...
@@ -283,6 +277,7 @@ public:
>
;
>
;
};
};
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/test/porenetwork/2pnc/properties.hh`
</span>
# Example: From components to solid system
# Example: From components to solid system
...
@@ -307,7 +302,7 @@ struct SolidSystem<TypeTag, TTag::ThermoChem>
...
@@ -307,7 +302,7 @@ struct SolidSystem<TypeTag, TTag::ThermoChem>
>
;
>
;
};
};
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/test/porousmediumflow/1pncmin/nonisothermal/properties.hh`
</span>
# Exercise
# Exercise
...
...
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