Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
7991d981
Commit
7991d981
authored
Jul 02, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PEP8
parent
7f84150f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
nifty5/domains/dof_space.py
nifty5/domains/dof_space.py
+6
-4
nifty5/operators/dof_distributor.py
nifty5/operators/dof_distributor.py
+13
-9
No files found.
nifty5/domains/dof_space.py
View file @
7991d981
...
...
@@ -21,14 +21,16 @@ from .structured_domain import StructuredDomain
class
DOFSpace
(
StructuredDomain
):
"""Generic degree-of-freedom space. It is defined as the domain of some DOFDistributor.
Its entries represent the underlying degrees of freedom of some other space, according
to the dofdex.
"""Generic degree-of-freedom space. It is defined as the domain of some
DOFDistributor.
Its entries represent the underlying degrees of freedom of some other
space, according to the dofdex.
Parameters
----------
dof_weights: 1-D numpy array
A numpy array containing the multiplicity of each individual degree of freedom.
A numpy array containing the multiplicity of each individual degree of
freedom.
"""
_needed_for_hash
=
[
"_dvol"
]
...
...
nifty5/operators/dof_distributor.py
View file @
7991d981
...
...
@@ -26,20 +26,24 @@ from ..domains.dof_space import DOFSpace
class
DOFDistributor
(
LinearOperator
):
"""Operator which distributes actual degrees of freedom (dof) according to some
distribution scheme into a higher dimensional space. This distribution scheme is
defined by the dofdex, a degree of freedom index, which associates the entries within
the operators domain to locations in its target. This operators domain is a DOFSpace,
which is defined according to the distribution scheme.
"""Operator which distributes actual degrees of freedom (dof) according to
some distribution scheme into a higher dimensional space. This distribution
scheme is defined by the dofdex, a degree of freedom index, which
associates the entries within the operators domain to locations in its
target. This operator's domain is a DOFSpace, which is defined according to
the distribution scheme.
Parameters
----------
dofdex: Field of integers
An integer Field on exactly one Space establishing the association between the
locations in the operators target and the underlying degrees of freedom in its domain.
It has to start at 0 and it increases monotonicly, no empty bins are allowed.
An integer Field on exactly one Space establishing the association
between the locations in the operators target and the underlying
degrees of freedom in its domain.
It has to start at 0 and it increases monotonicly, no empty bins are
allowed.
target: Domain, tuple of Domain, or DomainTuple, optional
The target of the operator. If not specified, the domain of the dofdex is used.
The target of the operator. If not specified, the domain of the dofdex
is used.
space: int, optional:
The index of the sub-domain on which the operator acts.
Can be omitted if `target` only has one sub-domain.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment