Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
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
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
c9f24ad3
Commit
c9f24ad3
authored
4 months ago
by
Olivier Sauter
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 67-add-tcv_get_ids_bolometer-to-tcv_imas-functions
parents
aca991ce
722bd755
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!171
Resolve "Add tcv_get_ids_bolometer to TCV_IMAS functions"
Pipeline
#221971
passed
4 months ago
Stage: test
Stage: post-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/tcv_ids_pf_active_definition.m
+8
-9
8 additions, 9 deletions
matlab/TCV_IMAS/tcv_ids_pf_active_definition.m
with
8 additions
and
9 deletions
matlab/TCV_IMAS/tcv_ids_pf_active_definition.m
+
8
−
9
View file @
c9f24ad3
...
...
@@ -88,11 +88,10 @@ mds_paths = {...
'\magnetics::ipol[*,"F_006"]'
;
...
% Circuit 16
'\magnetics::ipol[*,"F_007"]'
;
...
% Circuit 17
'\magnetics::ipol[*,"F_008"]'
;
...
% Circuit 18
'
is_in(
"G_001"
,dim_of(
\magnetics::ipol
,1))
? \magnetics::ipol[*,"G_001"] : make_signal(zero(shape(data(\magnetics::ipol))[0],1.0),*,dim_of(\magnetics::ipol,0))'
;
...
% G coils % Circuit 19
'"G_001"
is_in
\magnetics::ipol
:dim
? \magnetics::ipol[*,"G_001"] : make_signal(zero(shape(data(\magnetics::ipol))[0],1.0),*,dim_of(\magnetics::ipol,0))'
;
...
% G coils % Circuit 19
'\magnetics::iphi'
;
...
% Connection between tf coils % Circuit 20
};
% Combined structure
combined_structure
=
struct
();
combined_structure
.
coil_names
=
coil_names
;
...
...
@@ -127,7 +126,7 @@ circuit_struct.connection_matrix = struct([]);
coil_column_index
=
2
*
circuit_struct
.
ntotpowersupplies
;
for
ii
=
1
:
circuit_struct
.
ntotcircuits
circuit_connection_matrix
=
zeros
(
circuit_struct
.
nnodespercircuit
(
ii
),
2
*
circuit_struct
.
ntotelements
);
% Put power supply connection
power_supply_index
=
ii
;
if
circuit_struct
.
power_supply_current_signs
{
power_supply_index
}
==
1
...
...
@@ -137,27 +136,27 @@ for ii=1:circuit_struct.ntotcircuits
circuit_connection_matrix
(
1
,
2
*
(
power_supply_index
-
1
)
+
1
)
=
1
;
circuit_connection_matrix
(
circuit_struct
.
nnodespercircuit
(
ii
),
2
*
(
power_supply_index
-
1
)
+
2
)
=
1
;
end
% Put coil connection
for
jj
=
1
:
circuit_struct
.
ncoilpercircuit
(
ii
)
if
circuit_struct
.
coil_current_signs
{
ii
}(
jj
)
==
1
circuit_connection_matrix
(
jj
,
coil_column_index
+
2
*
(
jj
-
1
)
+
1
)
=
1
;
circuit_connection_matrix
(
jj
+
1
,
coil_column_index
+
2
*
(
jj
-
1
)
+
2
)
=
1
;
elseif
circuit_struct
.
coil_current_signs
{
ii
}(
jj
)
==
-
1
circuit_connection_matrix
(
jj
,
coil_column_index
+
2
*
(
jj
-
1
)
+
2
)
=
1
;
circuit_connection_matrix
(
jj
+
1
,
coil_column_index
+
2
*
(
jj
-
1
)
+
1
)
=
1
;
end
end
coil_column_index
=
coil_column_index
+
2
*
circuit_struct
.
ncoilpercircuit
(
ii
);
circuit_struct
.
connection_matrix
{
ii
}
=
circuit_connection_matrix
;
% Plot all the connaction matrices as a check
if
doplot
plot_connection_matrix
(
circuit_connection_matrix
,
circuit_struct
.
power_supply_names
,
circuit_struct
.
coil_names
);
end
end
%% Plot connection matrix
...
...
@@ -184,7 +183,7 @@ for ii=1:numel(psnames)
end
for
ii
=
1
:
numel
(
cnames
)
for
jj
=
1
:
numel
(
cnames
{
ii
})
index
=
index
+
1
;
xlab
{
index
}
=
[
cnames
{
ii
}{
jj
}
'in'
];
index
=
index
+
1
;
...
...
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