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
05db944a
Commit
05db944a
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[md][fvassembler] add query on if implicit time scheme is used
parent
6f36e55d
No related branches found
No related tags found
1 merge request
!1288
Feature/md explicit assembler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/fvassembler.hh
+18
-12
18 additions, 12 deletions
dumux/multidomain/fvassembler.hh
with
18 additions
and
12 deletions
dumux/multidomain/fvassembler.hh
+
18
−
12
View file @
05db944a
...
...
@@ -51,9 +51,9 @@ namespace Dumux {
* with multiple domains
* \tparam MDTraits the multidimension traits
* \tparam diffMethod the differentiation method to residual compute derivatives
* \tparam
is
Implicit if to use an implicit or explicit time discretization
* \tparam
use
Implicit
Assembly
if to use an implicit or explicit time discretization
*/
template
<
class
MDTraits
,
class
CMType
,
DiffMethod
diffMethod
,
bool
is
Implicit
=
true
>
template
<
class
MDTraits
,
class
CMType
,
DiffMethod
diffMethod
,
bool
use
Implicit
Assembly
=
true
>
class
MultiDomainFVAssembler
{
template
<
std
::
size_t
id
>
...
...
@@ -73,6 +73,12 @@ public:
using
CouplingManager
=
CMType
;
/*!
* \brief Returns true if the assembler considers implicit assembly.
*/
static
constexpr
bool
isImplicit
()
{
return
useImplicitAssembly
;
}
private
:
using
ProblemTuple
=
typename
MDTraits
::
ProblemTuple
;
...
...
@@ -80,7 +86,7 @@ private:
using
GridVariablesTuple
=
typename
MDTraits
::
GridVariablesTuple
;
using
TimeLoop
=
TimeLoopBase
<
Scalar
>
;
using
ThisType
=
MultiDomainFVAssembler
<
MDTraits
,
CouplingManager
,
diffMethod
,
isImplicit
>
;
using
ThisType
=
MultiDomainFVAssembler
<
MDTraits
,
CouplingManager
,
diffMethod
,
isImplicit
()
>
;
template
<
DiscretizationMethod
discMethod
,
std
::
size_t
id
>
struct
SubDomainAssemblerType
;
...
...
@@ -88,25 +94,25 @@ private:
template
<
std
::
size_t
id
>
struct
SubDomainAssemblerType
<
DiscretizationMethod
::
cctpfa
,
id
>
{
using
type
=
SubDomainCCLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
>
;
using
type
=
SubDomainCCLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
()
>
;
};
template
<
std
::
size_t
id
>
struct
SubDomainAssemblerType
<
DiscretizationMethod
::
ccmpfa
,
id
>
{
using
type
=
SubDomainCCLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
>
;
using
type
=
SubDomainCCLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
()
>
;
};
template
<
std
::
size_t
id
>
struct
SubDomainAssemblerType
<
DiscretizationMethod
::
box
,
id
>
{
using
type
=
SubDomainBoxLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
>
;
using
type
=
SubDomainBoxLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
()
>
;
};
template
<
std
::
size_t
id
>
struct
SubDomainAssemblerType
<
DiscretizationMethod
::
staggered
,
id
>
{
using
type
=
SubDomainStaggeredLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
>
;
using
type
=
SubDomainStaggeredLocalAssembler
<
id
,
SubDomainTypeTag
<
id
>
,
ThisType
,
diffMethod
,
isImplicit
()
>
;
};
template
<
std
::
size_t
id
>
...
...
@@ -134,7 +140,7 @@ public:
,
timeLoop_
()
,
isStationaryProblem_
(
true
)
{
static_assert
(
isImplicit
,
"Explicit assembler for stationary problem doesn't make sense!"
);
static_assert
(
isImplicit
()
,
"Explicit assembler for stationary problem doesn't make sense!"
);
std
::
cout
<<
"Instantiated assembler for a stationary problem."
<<
std
::
endl
;
}
...
...
@@ -465,7 +471,7 @@ private:
Dune
::
index_constant
<
j
>
domainJ
)
const
{
const
auto
&
gg
=
fvGridGeometry
(
domainI
);
auto
pattern
=
getJacobianPattern
<
isImplicit
>
(
gg
);
auto
pattern
=
getJacobianPattern
<
isImplicit
()
>
(
gg
);
couplingManager_
->
extendJacobianPattern
(
domainI
,
pattern
);
return
pattern
;
}
...
...
@@ -475,9 +481,9 @@ private:
Dune
::
MatrixIndexSet
getJacobianPattern_
(
Dune
::
index_constant
<
i
>
domainI
,
Dune
::
index_constant
<
j
>
domainJ
)
const
{
return
getCouplingJacobianPattern
<
isImplicit
>
(
*
couplingManager_
,
domainI
,
fvGridGeometry
(
domainI
),
domainJ
,
fvGridGeometry
(
domainJ
));
return
getCouplingJacobianPattern
<
isImplicit
()
>
(
*
couplingManager_
,
domainI
,
fvGridGeometry
(
domainI
),
domainJ
,
fvGridGeometry
(
domainJ
));
}
//! pointer to the problem to be solved
...
...
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