Skip to content
Snippets Groups Projects
Commit 3026601f authored by Katharina Heck's avatar Katharina Heck Committed by Timo Koch
Browse files

cleanup exercise 1

parent 82d578ad
No related branches found
No related tags found
2 merge requests!600[WIP][components][plotproperties] Add a source file to plot properties of some components,!553Dumux course tasks
...@@ -48,6 +48,12 @@ make exercise1_2p exercise1_2p2c ...@@ -48,6 +48,12 @@ make exercise1_2p exercise1_2p2c
./exercise1_2p2c exercise1.input ./exercise1_2p2c exercise1.input
``` ```
* you can look at the results with paraview
```bash
paraview injection-2p2c.pvd
```
<hr><br><br> <hr><br><br>
### Task 3: Changing input parameters ### Task 3: Changing input parameters
<hr> <hr>
......
...@@ -118,12 +118,6 @@ public: ...@@ -118,12 +118,6 @@ public:
aquitardMaterialParams_.setLambda(2.0); aquitardMaterialParams_.setLambda(2.0);
aquiferMaterialParams_.setLambda(2.0); aquiferMaterialParams_.setLambda(2.0);
// plot the material laws using gnuplot and exit
if (GET_RUNTIME_PARAM(TypeTag, bool, Problem.OnlyPlotMaterialLaws))
{
plotMaterialLaws();
exit(0);
}
} }
/*! /*!
...@@ -231,20 +225,6 @@ public: ...@@ -231,20 +225,6 @@ public:
// return lambdaSolid_; // return lambdaSolid_;
// } // }
/*!
* \brief Creates a gnuplot output of the pc-Sw curve
*/
void plotMaterialLaws()
{
PlotMaterialLaw<TypeTag> plotMaterialLaw;
GnuplotInterface<Scalar> gnuplot;
plotMaterialLaw.addpcswcurve(gnuplot, aquitardMaterialParams_, 0.2, 1.0, "upper layer (fine, aquitard)", "w lp");
plotMaterialLaw.addpcswcurve(gnuplot, aquiferMaterialParams_, 0.2, 1.0, "lower layer (coarse, aquifer)", "w l");
gnuplot.setOption("set xrange [0:1]");
gnuplot.setOption("set label \"residual\\nsaturation\" at 0.1,100000 center");
gnuplot.plot("pc-Sw");
}
private: private:
static constexpr Scalar eps_ = 1e-6; static constexpr Scalar eps_ = 1e-6;
......
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