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
8e08dc38
Commit
8e08dc38
authored
8 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[pointsources] change interface to more general one
parent
9075a117
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!617
[WIP] Next
,
!335
[pointsources] change interface to more general one
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/common/pointsource.hh
+6
-1
6 additions, 1 deletion
dumux/common/pointsource.hh
dumux/implicit/problem.hh
+6
-4
6 additions, 4 deletions
dumux/implicit/problem.hh
with
12 additions
and
5 deletions
dumux/common/pointsource.hh
+
6
−
1
View file @
8e08dc38
...
...
@@ -64,6 +64,7 @@ class PointSource
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
)
Scalar
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
)
Problem
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
)
ElementVolumeVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
)
FVElementGeometry
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolume
)
SubControlVolume
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Element
;
...
...
@@ -142,7 +143,9 @@ public:
// to be overloaded by derived classes
void
update
(
const
Problem
&
problem
,
const
Element
&
element
,
const
SubControlVolume
&
scv
)
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
{}
//! set the number of embeddings for this point source
...
...
@@ -252,6 +255,8 @@ public:
// to be overloaded by derived classes
void
update
(
const
Problem
&
problem
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
{
this
->
values_
=
valueFunction_
(
problem
.
timeManager
(),
this
->
position
());
}
...
...
This diff is collapsed.
Click to expand it.
dumux/implicit/problem.hh
+
6
−
4
View file @
8e08dc38
...
...
@@ -391,12 +391,14 @@ public:
* Positive values mean that the conserved quantity is created, negative ones mean that it vanishes.
* E.g. for the mass balance that would be a mass rate in \f$ [ kg / s ] \f$.
*/
void
pointSource
(
PointSource
&
pointS
ource
,
void
pointSource
(
PointSource
&
s
ource
,
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
const
{
// forward to space dependent interface method
asImp_
().
pointSourceAtPos
(
pointS
ource
,
pointS
ource
.
position
());
asImp_
().
pointSourceAtPos
(
s
ource
,
s
ource
.
position
());
}
/*!
...
...
@@ -989,9 +991,9 @@ public:
// The second one might be more convenient for e.g. a solution dependent point source.
// we do an update e.g. used for TimeDependentPointSource
pointSource
.
update
(
asImp_
(),
element
,
scv
);
pointSource
.
update
(
asImp_
(),
element
,
fvGeometry
,
elemVolVars
,
scv
);
// call convienience problem interface function
asImp_
().
pointSource
(
pointSource
,
element
,
scv
);
asImp_
().
pointSource
(
pointSource
,
element
,
fvGeometry
,
elemVolVars
,
scv
);
// at last take care about multiplying with the correct volume
pointSource
/=
volume
;
// add the point source values to the local residual
...
...
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