Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
18aaf0d1
Commit
18aaf0d1
authored
Sep 19, 2018
by
Martin Reinecke
Browse files
synchronize names and add some minimal documentation
parent
3f38ae83
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
18aaf0d1
...
...
@@ -27,22 +27,25 @@ from ..operators.harmonic_operators import HarmonicTransformOperator
from
..operators.simple_linear_operators
import
FieldAdapter
def
CorrelatedField
(
s_space
,
amplitude_model
,
key
=
'xi'
):
def
CorrelatedField
(
s_space
,
amplitude_model
,
name
=
'xi'
):
'''
Function for construction of correlated fields
Parameters
----------
s_space : Field domain
amplitude_model : model for correlation structure
s_space : Domain
Field domain
amplitude_model: Operator
model for correlation structure
name : string
MultiField component name
'''
h_space
=
s_space
.
get_default_codomain
()
ht
=
HarmonicTransformOperator
(
h_space
,
s_space
)
p_space
=
amplitude_model
.
target
[
0
]
power_distributor
=
PowerDistributor
(
h_space
,
p_space
)
A
=
power_distributor
(
amplitude_model
)
return
ht
(
A
*
FieldAdapter
(
MultiDomain
.
make
({
key
:
h_space
}),
key
))
return
ht
(
A
*
FieldAdapter
(
MultiDomain
.
make
({
name
:
h_space
}),
name
))
def
MfCorrelatedField
(
s_space_spatial
,
s_space_energy
,
amplitude_model_spatial
,
...
...
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