Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
37f42490
Commit
37f42490
authored
7 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[navierstokesnc][localres] Fix docu
parent
85323619
No related branches found
No related tags found
2 merge requests
!695
Doc/freeflow
,
!617
[WIP] Next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/freeflow/navierstokesnc/localresidual.hh
+13
-10
13 additions, 10 deletions
dumux/freeflow/navierstokesnc/localresidual.hh
dumux/freeflow/navierstokesnc/staggered/localresidual.hh
+11
-26
11 additions, 26 deletions
dumux/freeflow/navierstokesnc/staggered/localresidual.hh
with
24 additions
and
36 deletions
dumux/freeflow/navierstokesnc/localresidual.hh
+
13
−
10
View file @
37f42490
...
@@ -16,10 +16,11 @@
...
@@ -16,10 +16,11 @@
* You should have received a copy of the GNU General Public License *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
*****************************************************************************/
/*!
/*!
* \file
* \file
* \brief Calculates the residual of models based on the box scheme element-wise.
* \ingroup NavierStokesNCModel
*/
* \copydoc Dumux::NavierStokesNCResidual
*/
#ifndef DUMUX_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#ifndef DUMUX_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#define DUMUX_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#define DUMUX_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
...
@@ -31,15 +32,17 @@
...
@@ -31,15 +32,17 @@
namespace
Dumux
namespace
Dumux
{
{
/*!
// forward declaration
*
* \todo Please doc me more!
*/
// // forward declaration
template
<
class
TypeTag
,
DiscretizationMethods
Method
>
template
<
class
TypeTag
,
DiscretizationMethods
Method
>
class
NavierStokesNCResidualImpl
;
class
NavierStokesNCResidualImpl
;
/*!
* \ingroup NavierStokesNCModel
* \brief The local residual class for the Navier-Stokes multi-component model (balance equations).
This is a convenience alias for the actual,
discretization-specific local residual.
* \note Not all specializations are currently implemented
*/
template
<
class
TypeTag
>
template
<
class
TypeTag
>
using
NavierStokesNCResidual
=
NavierStokesNCResidualImpl
<
TypeTag
,
GET_PROP_VALUE
(
TypeTag
,
DiscretizationMethod
)
>
;
using
NavierStokesNCResidual
=
NavierStokesNCResidualImpl
<
TypeTag
,
GET_PROP_VALUE
(
TypeTag
,
DiscretizationMethod
)
>
;
...
...
This diff is collapsed.
Click to expand it.
dumux/freeflow/navierstokesnc/staggered/localresidual.hh
+
11
−
26
View file @
37f42490
...
@@ -16,10 +16,11 @@
...
@@ -16,10 +16,11 @@
* You should have received a copy of the GNU General Public License *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
*****************************************************************************/
/*!
/*!
* \file
* \file
* \brief Element-wise calculation of the residual NavierStokesNC models using the staggered discretization
* \ingroup NavierStokesNCModel
*/
* \copydoc Dumux::NavierStokesNCResidualImpl
*/
#ifndef DUMUX_STAGGERED_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#ifndef DUMUX_STAGGERED_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#define DUMUX_STAGGERED_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
#define DUMUX_STAGGERED_NAVIERSTOKES_NC_LOCAL_RESIDUAL_HH
...
@@ -30,17 +31,14 @@
...
@@ -30,17 +31,14 @@
namespace
Dumux
namespace
Dumux
{
{
/*!
// forward declaration
*
* \todo Please doc me more!
*/
// // forward declaration
template
<
class
TypeTag
,
DiscretizationMethods
Method
>
template
<
class
TypeTag
,
DiscretizationMethods
Method
>
class
NavierStokesNCResidualImpl
;
class
NavierStokesNCResidualImpl
;
// specialization for miscible, isothermal flow
/*!
* \ingroup NavierStokesNCModel
* \brief Element-wise calculation of the multi-component Navier-Stokes residual for models using the staggered discretization
*/
template
<
class
TypeTag
>
template
<
class
TypeTag
>
class
NavierStokesNCResidualImpl
<
TypeTag
,
DiscretizationMethods
::
Staggered
>
:
public
NavierStokesResidual
<
TypeTag
>
class
NavierStokesNCResidualImpl
<
TypeTag
,
DiscretizationMethods
::
Staggered
>
:
public
NavierStokesResidual
<
TypeTag
>
{
{
...
@@ -78,16 +76,7 @@ class NavierStokesNCResidualImpl<TypeTag, DiscretizationMethods::Staggered> : pu
...
@@ -78,16 +76,7 @@ class NavierStokesNCResidualImpl<TypeTag, DiscretizationMethods::Staggered> : pu
public
:
public
:
using
ParentType
::
ParentType
;
using
ParentType
::
ParentType
;
/*!
//! Evaluate fluxes entering or leaving the cell center control volume.
* \brief Evaluate the rate of change of all conservation
* quantites (e.g. phase mass) within a sub-control
* volume of a finite volume element for the immiscible models.
* \param scv The sub control volume
* \param volVars The current or previous volVars
* \note This function should not include the source and sink terms.
* \note The volVars can be different to allow computing
* the implicit euler time derivative here
*/
CellCenterPrimaryVariables
computeStorageForCellCenter
(
const
Problem
&
problem
,
CellCenterPrimaryVariables
computeStorageForCellCenter
(
const
Problem
&
problem
,
const
SubControlVolume
&
scv
,
const
SubControlVolume
&
scv
,
const
VolumeVariables
&
volVars
)
const
const
VolumeVariables
&
volVars
)
const
...
@@ -127,10 +116,6 @@ protected:
...
@@ -127,10 +116,6 @@ protected:
/*!
/*!
* \brief Sets a fixed Dirichlet value for a cell (such as pressure) at the boundary.
* \brief Sets a fixed Dirichlet value for a cell (such as pressure) at the boundary.
* This is a provisional alternative to setting the Dirichlet value on the boundary directly.
* This is a provisional alternative to setting the Dirichlet value on the boundary directly.
*
* \param insideScv The sub control volume
* \param elemVolVars The current or previous element volVars
* \param bcTypes The boundary types
*/
*/
void
setFixedCell_
(
CellCenterResidual
&
residual
,
void
setFixedCell_
(
CellCenterResidual
&
residual
,
const
Problem
&
problem
,
const
Problem
&
problem
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment