Skip to content
Snippets Groups Projects
Commit 60b7fbb8 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[1pnc] Adapt volVars and outputfields

parent f8a4622a
No related branches found
No related tags found
2 merge requests!621Feature/1pnc next,!617[WIP] Next
...@@ -266,6 +266,13 @@ public: ...@@ -266,6 +266,13 @@ public:
Scalar mobility(int pIdx = 0) const Scalar mobility(int pIdx = 0) const
{ return 1.0/fluidState_.viscosity(phaseIdx); } { return 1.0/fluidState_.viscosity(phaseIdx); }
/*!
* \brief Return the dynamic viscosity \f$\mathrm{[Pa s]}\f$ of the fluid within the
* control volume.
*/
Scalar viscosity(int phaseIdx = 0) const
{ return fluidState_.viscosity(phaseIdx); }
/*! /*!
* \brief Return the average porosity \f$\mathrm{[-]}\f$ within the control volume. * \brief Return the average porosity \f$\mathrm{[-]}\f$ within the control volume.
*/ */
......
...@@ -43,9 +43,10 @@ public: ...@@ -43,9 +43,10 @@ public:
template <class VtkOutputModule> template <class VtkOutputModule>
static void init(VtkOutputModule& vtk) static void init(VtkOutputModule& vtk)
{ {
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); }, "pressure"); vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(phaseIdx); }, "pressure");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.density(phaseIdx); }, "rho"); vtk.addVolumeVariable([](const auto& volVars){ return volVars.density(phaseIdx); }, "rho");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.porosity(); }, "porosity"); vtk.addVolumeVariable([](const auto& volVars){ return volVars.viscosity(phaseIdx); }, "mu");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(phaseIdx) - 1e5; }, "delp");
for (int i = 0; i < numComponents; ++i) for (int i = 0; i < numComponents; ++i)
vtk.addVolumeVariable([i](const auto& volVars){ return volVars.moleFraction(phaseIdx, i); }, vtk.addVolumeVariable([i](const auto& volVars){ return volVars.moleFraction(phaseIdx, i); },
......
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