From 6cef7b091f22e2a112519db9302a498837c1fc91 Mon Sep 17 00:00:00 2001 From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de> Date: Thu, 10 Nov 2016 11:59:12 +0100 Subject: [PATCH] [constraintsolver][doc] Use \copydoc for documentation --- .../fluidsystemconstraintsolver.hh | 56 +------------------ .../miscible2pnccomposition.hh | 22 +------- .../misciblemultiphasecomposition.hh | 25 ++------- 3 files changed, 9 insertions(+), 94 deletions(-) diff --git a/dumux/material/constraintsolvers/fluidsystemconstraintsolver.hh b/dumux/material/constraintsolvers/fluidsystemconstraintsolver.hh index c066679536..1a5c912d42 100644 --- a/dumux/material/constraintsolvers/fluidsystemconstraintsolver.hh +++ b/dumux/material/constraintsolvers/fluidsystemconstraintsolver.hh @@ -34,7 +34,7 @@ #include <dumux/common/valgrind.hh> namespace Dumux { -/*! +/** * \ingroup ConstraintSolver * \brief Computes the composition of all phases from a function in the fluidsystem. * @@ -63,58 +63,8 @@ class FluidSystemConstraintSolver static constexpr int numPhases = FluidSystem::numPhases; public: - /*! - * \brief Computes the composition of all phases of from a function in the fluidsystem. - * - * This constraint solver assumes that there is a function - * calculateEquilibriumMoleFraction - * in the fluidsystem. I.e. Either this function only has lookup tables or - * short-circuits the solution of a linear system of equations - * - * The constraint solver assumes the following quantities to be set: - * - * - temperatures of *all* phases - * - saturations of *all* phases - * - pressures of *all* phases - * - * It also assumes that the mole/mass fractions of all phases sum up - * to 1. After calling the solve() method the following quantities - * are calculated in addition: - * - * - density, molar density, molar volume of *all* phases - * - composition in mole and mass fractions and molarities of *all* phases - * - mean molar masses of *all* phases - * - if the setViscosity parameter is true, also dynamic viscosities of *all* phases - * - if the setInternalEnergy parameter is true, also specific enthalpies and internal energies of *all* phases - */ - - /*! - * \brief Computes the composition of all phases of from a function in the fluidsystem. - * - * This constraint solver assumes that there is a function - * calculateEquilibriumMoleFraction - * in the fluidsystem. I.e. Either this function only has lookup tables or - * short-circuits the solution of a linear system of equations - * Therefore, this approach cannot be used if the solubility is a function - * of composition. For this nonlinear case the "fugacity coefficient" - * approach has to be used. - * - * The constraint solver assumes the following quantities to be set: - * - * - temperatures of *all* phases - * - saturations of *all* phases - * - pressures of *all* phases - * - * - the Fluidsystem has to be able to calculate euilibrium compostion from that information. - * - * After calling the solve() method the following quantities - * are calculated in addition: - * - * - density, molar density, molar volume of *all* phases - * - composition in mole and mass fractions and molarities of *all* phases - * - mean molar masses of *all* phases - * - if the setViscosity parameter is true, also dynamic viscosities of *all* phases - * - if the setEnthalpy parameter is true, also specific enthalpies and internal energies of *all* phases + /** + * \brief @copybrief Dumux::FluidSystemConstraintSolver * * \param fluidState A container with the current (physical) state of the fluid * \param paramCache A container for iterative calculation of fluid composition diff --git a/dumux/material/constraintsolvers/miscible2pnccomposition.hh b/dumux/material/constraintsolvers/miscible2pnccomposition.hh index 9f26f1e7d1..e281c2f289 100644 --- a/dumux/material/constraintsolvers/miscible2pnccomposition.hh +++ b/dumux/material/constraintsolvers/miscible2pnccomposition.hh @@ -67,27 +67,7 @@ class Miscible2pNCComposition public: /*! - * \brief Computes the composition of all phases of a M-phase, - * N-component fluid system assuming that all M phases are - * present - * - * It constraint solver assumes the following quantities to be set: - * - * - temperatures of *all* phases - * - saturations of *all* phases - * - pressures of *all* phases - * - * It also assumes that the mole/mass fractions of all phases sum up - * to 1. After calling the solve() method the following quantities - * are calculated in addition: - * - * - temperature of *all* phases - * - density, molar density, molar volume of *all* phases - * - composition in mole and mass fractions and molarities of *all* phases - * - mean molar masses of *all* phases - * - fugacity coefficients of *all* components in *all* phases - * - if the setViscosity parameter is true, also dynamic viscosities of *all* phases - * - if the setInternalEnergy parameter is true, also specific enthalpies and internal energies of *all* phases + * \brief @copybrief Dumux::Miscible2pNCComposition */ template <class FluidState, class ParameterCache> static void solve(FluidState &fluidState, diff --git a/dumux/material/constraintsolvers/misciblemultiphasecomposition.hh b/dumux/material/constraintsolvers/misciblemultiphasecomposition.hh index 217902df39..5821a9610a 100644 --- a/dumux/material/constraintsolvers/misciblemultiphasecomposition.hh +++ b/dumux/material/constraintsolvers/misciblemultiphasecomposition.hh @@ -70,27 +70,12 @@ class MiscibleMultiPhaseComposition public: /*! - * \brief Computes the composition of all phases of a N-phase, - * N-component fluid system assuming that all N phases are - * present + * \brief @copybrief Dumux::MiscibleMultiPhaseComposition * - * The constraint solver assumes the following quantities to be set: - * - * - temperatures of *all* phases - * - saturations of *all* phases - * - pressures of *all* phases - * - * It also assumes that the mole/mass fractions of all phases sum up - * to 1. After calling the solve() method the following quantities - * are calculated in addition: - * - * - temperature of *all* phases - * - density, molar density, molar volume of *all* phases - * - composition in mole and mass fractions and molarities of *all* phases - * - mean molar masses of *all* phases - * - fugacity coefficients of *all* components in *all* phases - * - if the setViscosity parameter is true, also dynamic viscosities of *all* phases - * - if the setInternalEnergy parameter is true, also specific enthalpies and internal energies of *all* phases + * \param fluidState A container with the current (physical) state of the fluid + * \param paramCache A container for iterative calculation of fluid composition + * \param setViscosity Should the viscosity be set in the fluidstate? + * \param setEnthalpy Should the enthalpy be set in the fluidstate? */ template <class FluidState, class ParameterCache> static void solve(FluidState &fluidState, -- GitLab