Skip to content
Snippets Groups Projects
Commit a27d543a authored by Thomas Fetzer's avatar Thomas Fetzer Committed by Kilian Weishaupt
Browse files

[freeflow][nonisothermal] Cleanup structure, split in general (freeflow) and...

[freeflow][nonisothermal] Cleanup structure, split in general (freeflow) and navierstokes/rans specific files
parent 73151ca1
No related branches found
No related tags found
1 merge request!928Freeflow/lowrekepsilonnc
...@@ -178,18 +178,6 @@ ...@@ -178,18 +178,6 @@
* \brief Single-phase Navier-Stokes flow * \brief Single-phase Navier-Stokes flow
* \copydetails ./freeflow/navierstokes/model.hh * \copydetails ./freeflow/navierstokes/model.hh
*/ */
/*!
* \ingroup FreeflowModels
* \defgroup FreeflowNCModel Compositional
* \brief Single-phase multi-component free-flow flow
* \copydetails ./freeflow/compositional/navierstokesncmodel.hh
*/
/*!
* \ingroup FreeflowModels
* \defgroup NavierStokesNIModel nonisothermal
* \brief An energy equation adaptor for isothermal Navier-Stokes models
* \copydetails ./freeflow/nonisothermal/model.hh
*/
/*! /*!
* \ingroup FreeflowModels * \ingroup FreeflowModels
* \defgroup RANSModel Reynolds-Averaged Navier-Stokes * \defgroup RANSModel Reynolds-Averaged Navier-Stokes
...@@ -216,10 +204,37 @@ ...@@ -216,10 +204,37 @@
*/ */
/*! /*!
* \ingroup FreeflowModels * \ingroup FreeflowModels
* \defgroup RANSNCModel Reynolds-Averaged Navier-Stokes nc * \defgroup FreeflowNCModel Compositional
* \brief Single-phase multi-component Reynolds-Averaged Navier-Stokes flow * \brief Single-phase multi-component free-flow flow models
* \copydetails ./freeflow/ransnc/model.hh
*/ */
/*!
* \ingroup FreeflowNCModel
* \defgroup NavierStokesNCModel Compositional Navier-Stokes
* \brief Single-phase multi-component Navier-Stokes flow
* \copydetails ./freeflow/compositional/navierstokesncmodel.hh
*/
/*!
* \ingroup FreeflowNCModel
* \defgroup RANSNCModel Compositional Reynolds-Averaged Navier-Stokes
* \brief Single-phase multi-component Reynolds-Averaged Navier-Stokes flow
* \copydetails ./freeflow/ransnc/model.hh
*/
/*!
* \ingroup FreeflowModels
* \defgroup FreeflowNIModel Nonisothermal
* \brief An energy equation adaptor for isothermal free-flow models
* \copydetails ./freeflow/nonisothermal/model.hh
*/
/*!
* \ingroup FreeflowNIModel
* \defgroup NavierStokesNIModel Nonisothermal Navier-Stokes
* \brief An energy equation adaptor for isothermal Navier-Stokes models
*/
/*!
* \ingroup FreeflowNIModel
* \defgroup RANSNIModel Nonisothermal Reynolds-Averaged Navier-Stokes
* \brief An energy equation adaptor for isothermal Reynolds-Averaged Navier-Stokes models
*/
/* ***************** Benchmarks and Tests ******************/ /* ***************** Benchmarks and Tests ******************/
/*! /*!
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#include <dumux/freeflow/navierstokes/model.hh> #include <dumux/freeflow/navierstokes/model.hh>
#include <dumux/freeflow/nonisothermal/model.hh> #include <dumux/freeflow/nonisothermal/model.hh>
#include <dumux/freeflow/nonisothermal/indices.hh> #include <dumux/freeflow/nonisothermal/indices.hh>
#include <dumux/freeflow/nonisothermal/vtkoutputfields.hh> #include <dumux/freeflow/nonisothermal/navierstokesnivtkoutputfields.hh>
#include <dumux/discretization/fickslaw.hh> #include <dumux/discretization/fickslaw.hh>
#include <dumux/discretization/fourierslaw.hh> #include <dumux/discretization/fourierslaw.hh>
...@@ -217,7 +217,7 @@ private: ...@@ -217,7 +217,7 @@ private:
static constexpr bool useMoles = GET_PROP_VALUE(TypeTag, UseMoles); static constexpr bool useMoles = GET_PROP_VALUE(TypeTag, UseMoles);
using IsothermalModelTraits = NavierStokesNCModelTraits<dim, numComponents, phaseIdx, replaceCompEqIdx, useMoles>; using IsothermalModelTraits = NavierStokesNCModelTraits<dim, numComponents, phaseIdx, replaceCompEqIdx, useMoles>;
public: public:
using type = NavierStokesNIModelTraits<IsothermalModelTraits>; using type = FreeflowNIModelTraits<IsothermalModelTraits>;
}; };
//! The non-isothermal vtk output fields //! The non-isothermal vtk output fields
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#include <dumux/freeflow/properties.hh> #include <dumux/freeflow/properties.hh>
#include <dumux/freeflow/nonisothermal/model.hh> #include <dumux/freeflow/nonisothermal/model.hh>
#include <dumux/freeflow/nonisothermal/indices.hh> #include <dumux/freeflow/nonisothermal/indices.hh>
#include <dumux/freeflow/nonisothermal/vtkoutputfields.hh> #include <dumux/freeflow/nonisothermal/navierstokesnivtkoutputfields.hh>
#include "localresidual.hh" #include "localresidual.hh"
#include "volumevariables.hh" #include "volumevariables.hh"
...@@ -215,7 +215,7 @@ private: ...@@ -215,7 +215,7 @@ private:
static constexpr int dim = GridView::dimension; static constexpr int dim = GridView::dimension;
using IsothermalTraits = NavierStokesModelTraits<dim>; using IsothermalTraits = NavierStokesModelTraits<dim>;
public: public:
using type = NavierStokesNIModelTraits<IsothermalTraits>; using type = FreeflowNIModelTraits<IsothermalTraits>;
}; };
//! The specific non-isothermal vtk output fields //! The specific non-isothermal vtk output fields
......
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
install(FILES install(FILES
indices.hh indices.hh
model.hh model.hh
vtkoutputfields.hh navierstokesnivtkoutputfields.hh
ransnivtkoutputfields.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/freeflow/nonisothermal) DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/freeflow/nonisothermal)
...@@ -18,23 +18,23 @@ ...@@ -18,23 +18,23 @@
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \file * \file
* \ingroup NavierStokesNIModel * \ingroup FreeflowNIModel
* \copydoc Dumux::NavierStokesNonIsothermalIndices * \copydoc Dumux::FreeflowNonIsothermalIndices
*/ */
#ifndef DUMUX_NAVIERSTOKES_NI_INDICES_HH #ifndef DUMUX_FREEFLOW_NI_INDICES_HH
#define DUMUX_NAVIERSTOKES_NI_INDICES_HH #define DUMUX_FREEFLOW_NI_INDICES_HH
namespace Dumux { namespace Dumux {
/*! /*!
* \ingroup NavierStokesNIModel * \ingroup FreeflowNIModel
* \brief Indices for the non-isothermal Navier-Stokes model. * \brief Indices for the non-isothermal Navier-Stokes model.
* *
* \tparam IsothermalIndices The isothermal indices class * \tparam IsothermalIndices The isothermal indices class
* \tparam numEq the number of equations of the non-isothermal model * \tparam numEq the number of equations of the non-isothermal model
*/ */
template <class IsothermalIndices, int numEq> template <class IsothermalIndices, int numEq>
class NavierStokesNonIsothermalIndices : public IsothermalIndices class FreeflowNonIsothermalIndices : public IsothermalIndices
{ {
public: public:
static constexpr int energyBalanceIdx = numEq - 1; static constexpr int energyBalanceIdx = numEq - 1;
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \file * \file
* \ingroup NavierStokesNIModel * \ingroup FreeflowNIModel
* *
* \brief A single-phase, non-isothermal Navier-Stokes model * \brief A single-phase, non-isothermal free-flow model
* *
* In addition to the momentum and mass/mole balance equations, this model also solves the <B> energy balance equation </B>: * In addition to the momentum and mass/mole balance equations, this model also solves the <B> energy balance equation </B>:
* \f[ * \f[
...@@ -40,28 +40,28 @@ ...@@ -40,28 +40,28 @@
* \f[ \lambda_\text{t} = \frac{\nu_\text{t} \varrho c_\text{p}}{\mathrm{Pr}_\text{t}} \f] * \f[ \lambda_\text{t} = \frac{\nu_\text{t} \varrho c_\text{p}}{\mathrm{Pr}_\text{t}} \f]
*/ */
#ifndef DUMUX_STAGGERED_NI_MODEL_HH #ifndef DUMUX_FREEFLOW_NI_MODEL_HH
#define DUMUX_STAGGERED_NI_MODEL_HH #define DUMUX_FREEFLOW_NI_MODEL_HH
#include "indices.hh" #include "indices.hh"
namespace Dumux { namespace Dumux {
/*! /*!
* \ingroup NavierStokesNIModel * \ingroup FreeflowNIModel
* \brief Specifies a number properties of non-isothermal free flow * \brief Specifies a number properties of non-isothermal free-flow
* flow models based on the specifics of a given isothermal model. * flow models based on the specifics of a given isothermal model.
* \tparam IsothermalTraits Model traits of the isothermal model * \tparam IsothermalTraits Model traits of the isothermal model
*/ */
template<class IsothermalTraits> template<class IsothermalTraits>
struct NavierStokesNIModelTraits : public IsothermalTraits struct FreeflowNIModelTraits : public IsothermalTraits
{ {
//! We solve for one more equation, i.e. the energy balance //! We solve for one more equation, i.e. the energy balance
static constexpr int numEq() { return IsothermalTraits::numEq()+1; } static constexpr int numEq() { return IsothermalTraits::numEq()+1; }
//! We additionally solve for the equation balance //! We additionally solve for the equation balance
static constexpr bool enableEnergyBalance() { return true; } static constexpr bool enableEnergyBalance() { return true; }
//! the indices //! the indices
using Indices = NavierStokesNonIsothermalIndices<typename IsothermalTraits::Indices, numEq()>; using Indices = FreeflowNonIsothermalIndices<typename IsothermalTraits::Indices, numEq()>;
}; };
} // end namespace Dumux } // end namespace Dumux
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <dumux/common/properties.hh> #include <dumux/common/properties.hh>
#include <dumux/freeflow/navierstokes/model.hh> #include <dumux/freeflow/navierstokes/model.hh>
#include <dumux/freeflow/nonisothermal/ransvtkoutputfields.hh> #include <dumux/freeflow/nonisothermal/ransnivtkoutputfields.hh>
#include "vtkoutputfields.hh" #include "vtkoutputfields.hh"
...@@ -91,7 +91,7 @@ private: ...@@ -91,7 +91,7 @@ private:
using IsothermalTraits = NavierStokesModelTraits<dim>; using IsothermalTraits = NavierStokesModelTraits<dim>;
public: public:
using type = NavierStokesNIModelTraits<IsothermalTraits>; using type = FreeflowNIModelTraits<IsothermalTraits>;
}; };
//! The specific non-isothermal vtk output fields //! The specific non-isothermal vtk output fields
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include <dumux/common/properties.hh> #include <dumux/common/properties.hh>
#include <dumux/freeflow/compositional/navierstokesncmodel.hh> #include <dumux/freeflow/compositional/navierstokesncmodel.hh>
#include <dumux/freeflow/nonisothermal/ransvtkoutputfields.hh> #include <dumux/freeflow/nonisothermal/ransnivtkoutputfields.hh>
#include <dumux/freeflow/rans/zeroeq/volumevariables.hh> #include <dumux/freeflow/rans/zeroeq/volumevariables.hh>
#include "indices.hh" #include "indices.hh"
......
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