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
8cce38fa
Commit
8cce38fa
authored
5 years ago
by
Francesco Carpanese
Committed by
Olivier Sauter
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve error message when data error not found in IDS
parent
2c258bb9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!41
Add corsica liuqe complete ids from meq
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IDS/gen_filament.m
+8
-5
8 additions, 5 deletions
IDS/gen_filament.m
with
8 additions
and
5 deletions
IDS/gen_filament.m
+
8
−
5
View file @
8cce38fa
...
...
@@ -31,9 +31,9 @@ pointr = zeros(numel(AC),4);
pointz
=
zeros
(
numel
(
AC
),
4
);
discretizationr
=
[];
discretizationz
=
[];
Twc
=
[];
% Grouping matrix from
windings to active coil
Twc
=
[];
% Grouping matrix from
coils to windings Iw = Twc*Ic
for
ii
=
1
:
numel
(
AC
)
% loop all the coils given vvstructure
% Find 4 extrema of the parallelogram
% Find 4 extrema of the parallelogram
. Working both for rectangular description and parallelogram description
% D----C
% / /
% A----B
...
...
@@ -47,7 +47,7 @@ for ii = 1:numel(AC) % loop all the coils given vvstructure
pointz
(
ii
,
2
)
=
Z
(
ii
)
+
dZ
(
ii
)/
2
;
pointz
(
ii
,
3
)
=
Z
(
ii
)
+
dZ
(
ii
)/
2
;
pointz
(
ii
,
4
)
=
Z
(
ii
)
-
dZ
(
ii
)/
2
;
elseif
AC
(
ii
)
~=
0
&&
AC2
(
ii
)
==
0
elseif
AC
(
ii
)
~=
0
&&
AC2
(
ii
)
==
0
% Parallelogramm
DH
=
dR
(
ii
)
*
tand
(
AC
(
ii
));
pointr
(
ii
,
1
)
=
R
(
ii
)
-
dR
(
ii
)/
2
;
pointr
(
ii
,
2
)
=
R
(
ii
)
-
dR
(
ii
)/
2
;
...
...
@@ -57,7 +57,10 @@ for ii = 1:numel(AC) % loop all the coils given vvstructure
pointz
(
ii
,
2
)
=
Z
(
ii
)
-
DH
/
2
+
dZ
(
ii
)/
2
;
pointz
(
ii
,
3
)
=
Z
(
ii
)
+
DH
/
2
+
dZ
(
ii
)/
2
;
pointz
(
ii
,
4
)
=
Z
(
ii
)
+
DH
/
2
-
dZ
(
ii
)/
2
;
elseif
AC2
(
ii
)
==
0
&&
AC
(
ii
)
==
0
elseif
AC2
(
ii
)
==
0
&&
AC
(
ii
)
==
0
% Rectangular description
% 2----3
% | |
% 1----4
pointr
(
ii
,
1
)
=
R
(
ii
)
-
dR
(
ii
)/
2
;
pointr
(
ii
,
2
)
=
R
(
ii
)
-
dR
(
ii
)/
2
;
pointr
(
ii
,
3
)
=
R
(
ii
)
+
dR
(
ii
)/
2
;
...
...
@@ -98,7 +101,7 @@ for ii = 1:numel(AC) % loop all the coils given vvstructure
% distrubution that nicely resamble the geometry of the coil section,
% but will not necessarily generate a number of windings = number of
% turns. The following normalization garanties that the total current
% flowing in the cross section of coil Iw*nw = Ia*nturns respect the input data.
% flowing in the cross section of coil Iw*nw = Ia*nturns respect
s
the input data.
Twc
(
end
+
1
:
end
+
num1
*
num2
,
end
+
1
)
=
1
*
sign
(
num
(
ii
))/(
num1
*
num2
)
*
num
(
ii
);
end
...
...
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