From ece7d30fe82fa546a50c4af62c0113782aacdc34 Mon Sep 17 00:00:00 2001 From: Klaus Mosthaf <klmos@env.dtu.dk> Date: Tue, 14 Feb 2012 10:41:33 +0000 Subject: [PATCH] VTK Output of massfractions: Name is now constructed using the component name from the employed fluidsystem git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7748 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/freeflow/stokes2c/stokes2cmodel.hh | 9 ++++++--- dumux/freeflow/stokes2cni/stokes2cnimodel.hh | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dumux/freeflow/stokes2c/stokes2cmodel.hh b/dumux/freeflow/stokes2c/stokes2cmodel.hh index 7b9e9aab6f..544a8749fa 100644 --- a/dumux/freeflow/stokes2c/stokes2cmodel.hh +++ b/dumux/freeflow/stokes2c/stokes2cmodel.hh @@ -23,7 +23,7 @@ /*! * \file * - * \brief Adaptation of the box scheme to the compositional Stokes model (with two components). + * \brief Adaptation of the box scheme to the two-component Stokes model. */ #ifndef DUMUX_STOKES2C_MODEL_HH #define DUMUX_STOKES2C_MODEL_HH @@ -36,7 +36,7 @@ namespace Dumux { /*! * \ingroup BoxStokes2cModel - * \brief Adaptation of the BOX scheme to the compositional stokes model. + * \brief Adaptation of the BOX scheme to the compositional Stokes model. * * This model implements an isothermal two-component Stokes flow of a fluid * solving a momentum balance, a mass balance and a conservation equation for one component. @@ -85,6 +85,7 @@ class Stokes2cModel : public StokesModel<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, ElementBoundaryTypes) ElementBoundaryTypes; typedef typename GET_PROP_TYPE(TypeTag, SolutionVector) SolutionVector; + typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables; public: @@ -149,7 +150,9 @@ public: } writer.attachVertexData(pN, "P"); writer.attachVertexData(delP, "delP"); - writer.attachVertexData(Xw, "X_TRAIL"); + std::ostringstream outputNameX; + outputNameX << "X^" << FluidSystem::componentName(lCompIdx); + writer.attachVertexData(Xw, outputNameX.str()); writer.attachVertexData(rho, "rho"); writer.attachVertexData(mu, "mu"); writer.attachVertexData(velocity, "v", dim); diff --git a/dumux/freeflow/stokes2cni/stokes2cnimodel.hh b/dumux/freeflow/stokes2cni/stokes2cnimodel.hh index a6fe537f9b..724e663bd5 100644 --- a/dumux/freeflow/stokes2cni/stokes2cnimodel.hh +++ b/dumux/freeflow/stokes2cni/stokes2cnimodel.hh @@ -94,6 +94,7 @@ class Stokes2cniModel : public Stokes2cModel<TypeTag> typedef typename GET_PROP_TYPE(TypeTag, ElementBoundaryTypes) ElementBoundaryTypes; typedef typename GET_PROP_TYPE(TypeTag, SolutionVector) SolutionVector; + typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables; public: @@ -162,7 +163,9 @@ public: writer.attachVertexData(pN, "pg"); writer.attachVertexData(delP, "delP"); // writer.attachVertexData(D, "Dwg"); - writer.attachVertexData(Xw, "X_gH2O"); + std::ostringstream outputNameX; + outputNameX << "X^" << FluidSystem::componentName(lCompIdx); + writer.attachVertexData(Xw, outputNameX.str()); writer.attachVertexData(T, "temperature"); writer.attachVertexData(rho, "rhoG"); writer.attachVertexData(mu, "mu"); -- GitLab