Skip to content
Snippets Groups Projects
Commit c716c201 authored by Ivan Buntic's avatar Ivan Buntic
Browse files

[slides][materialsystem] Add file paths for code blocks.

parent 31142087
No related branches found
No related tags found
1 merge request!296Slides update
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment