Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Antoine Cyril David Hoffmann
Gyacomo
Commits
4a65992d
Commit
4a65992d
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
to retrieve phase space distribution function
parent
a60ba891
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/compute_fa.m
+23
-0
23 additions, 0 deletions
matlab/compute_fa.m
with
23 additions
and
0 deletions
matlab/compute_fa.m
0 → 100644
+
23
−
0
View file @
4a65992d
function
FF
=
compute_fa
(
Napj
,
spar
,
xperp
)
%% Compute the dispersion function from the moment hierarchi decomp.
% Normalized Hermite
Hp
=
@
(
p
,
s
)
polyval
(
HermitePoly
(
p
),
s
)
.
/
sqrt
(
2.
^
p
.*
factorial
(
p
));
% Laguerre
Lj
=
@
(
j
,
x
)
polyval
(
LaguerrePoly
(
j
),
x
);
% Maxwellian factor
FaM
=
@
(
s
,
x
)
exp
(
-
s
.^
2
-
x
);
[
SS
,
XX
]
=
meshgrid
(
spar
,
xperp
);
%meshgrid for efficient evaluation
FF
=
0
.*
SS
;
[
Pmax
,
Jmax
]
=
size
(
Napj
);
FAM
=
FaM
(
SS
,
XX
);
for
p_
=
0
:
Pmax
-
1
HH
=
Hp
(
p_
,
SS
);
for
j_
=
0
:
Jmax
-
1
LL
=
Lj
(
j_
,
XX
);
FF
=
FF
+
Napj
(
p_
+
1
,
j_
+
1
)
*
HH
.*
LL
.*
FAM
;
end
end
\ No newline at end of file
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