Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
SPC
gdat
Commits
71d50340
Commit
71d50340
authored
4 months ago
by
Antonia Frank
Browse files
Options
Downloads
Patches
Plain Diff
Define angles in IDS as disucssed with F.Poli
change name
parent
5349abac
No related branches found
No related tags found
1 merge request
!173
Ids for torbeam
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
+8
-14
8 additions, 14 deletions
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
with
8 additions
and
14 deletions
matlab/TCV_IMAS/tcv_get_ids_ec_launchers.m
+
8
−
14
View file @
71d50340
...
...
@@ -85,22 +85,16 @@ for iant=1:nb_launchers
ids_ec_launchers
.
beam
{
iant
}
.
launching_position
.
phi
(
i
)
=
atan2
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
y0
/
100
,
r0
);
ids_ec_launchers
.
beam
{
iant
}
.
time
(
i
)
=
time_launch
;
% define
wave vector
based on TORAY angles
% define
angles
based on TORAY angles
, as discussed with F. Poli Oct 2024
% Reminder: theta_toray, zero on z-axis, pointing inwards with 90deg
% phi_toray, zero along outpard radial direction, pointing
% towards core with 180deg, +: clockwise, -: counter-clockwise
kz
=
cos
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
*
pi
/
180.
);
kR
=
-
sin
(
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
*
pi
/
180.
);
kmr
=
cos
((
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
)
*
pi
/
180.
);
kphi
=
sin
((
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
)
*
pi
/
180.
);
%*sigma_Rphiz (=+1 for TCV cocos=17)
% phi_toray, 0deg=outwards radial, 180deg=pointing
% towards core, +: clockwise, -: counter-clockwise
% IDS angles have same convention as TORBEAM and GRAY
pol_angle_ids
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
theta_toray
-
90
;
tor_angle_ids
=
launch_params
{
iant
}{
it_ok
{
iant
}(
i
)}
.
phi_toray
-
180
;
% poloidal angle defined from -R axis to -Z axis
if
kz
==
0
% if kz=0 wave vector lies in toroidal plane
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_pol
(
i
)
=
0.
;
else
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_pol
(
i
)
=
-
atan2
(
kz
,
-
kR
);
end
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_tor
(
i
)
=
-
atan2
(
kphi
,
-
kmr
);
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_pol
(
i
)
=
pol_angle_ids
*
pi
/
180
;
ids_ec_launchers
.
beam
{
iant
}
.
steering_angle_tor
(
i
)
=
tor_angle_ids
*
pi
/
180
;
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
size
(
1
,
i
)
=
0.023
;
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
size
(
2
,
i
)
=
0.012
;
ids_ec_launchers
.
beam
{
iant
}
.
spot
.
angle
(
i
)
=
0.0
;
...
...
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