version 3.8
porenetwork/solidenergy/volumevariables.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
13#ifndef DUMUX_PNM_SOLID_ENERGY_VOLUME_VARIABLES_HH
14#define DUMUX_PNM_SOLID_ENERGY_VOLUME_VARIABLES_HH
15
17
18namespace Dumux::PoreNetwork {
19
27template<class Traits>
29{
31
32 using Scalar = typename Traits::PrimaryVariables::value_type;
33public:
34
44 template<class ElemSol, class Problem, class Element, class Scv>
45 void update(const ElemSol& elemSol,
46 const Problem& problem,
47 const Element& element,
48 const Scv& scv)
49 {
50 ParentType::update(elemSol, problem, element, scv);
51
52 poreInscribedRadius_ = problem.spatialParams().poreInscribedRadius(element, scv, elemSol);
53 poreVolume_ = problem.gridGeometry().poreVolume(scv.dofIndex());
54 }
55
56 Scalar poreInscribedRadius() const
57 { return poreInscribedRadius_; }
58
59
60 Scalar poreVolume() const
61 { return poreVolume_; }
62
63protected:
64
67};
68
69} // end namespace Dumux::PoreNetwork
70
71#endif
Contains the quantities which are constant within a finite volume in the solid-energy model.
Definition: porenetwork/solidenergy/volumevariables.hh:29
Scalar poreInscribedRadius() const
Definition: porenetwork/solidenergy/volumevariables.hh:56
Scalar poreVolume() const
Definition: porenetwork/solidenergy/volumevariables.hh:60
Scalar poreVolume_
Definition: porenetwork/solidenergy/volumevariables.hh:66
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porenetwork/solidenergy/volumevariables.hh:45
Scalar poreInscribedRadius_
Definition: porenetwork/solidenergy/volumevariables.hh:65
Class for computation of all volume averaged quantities.
Definition: porousmediumflow/solidenergy/volumevariables.hh:29
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Update all quantities for a given control volume.
Definition: porousmediumflow/solidenergy/volumevariables.hh:50
Definition: discretization/porenetwork/fvelementgeometry.hh:24
Class for computation of all volume averaged quantities.