Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tutorials
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
tutorials
Commits
b5c4660d
Commit
b5c4660d
authored
5 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
more comments
parent
6b867d59
No related branches found
No related tags found
No related merge requests found
Pipeline
#5840
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Magnetodynamics/transfo.pro
+7
-4
7 additions, 4 deletions
Magnetodynamics/transfo.pro
with
7 additions
and
4 deletions
Magnetodynamics/transfo.pro
+
7
−
4
View file @
b5c4660d
...
...
@@ -16,6 +16,9 @@
Include
"transfo_common.pro"
;
DefineConstant
[
// The "Massive" option is non-physical, but it's interesting to highlight the
// fact that both massive and stranded conductors can be handled in the same
// way as far as circuit-coupling is concerned
ConductorType
=
{
2
,
Choices
{
1
=
"Massive"
,
2
=
"Coil"
},
Highlight
"Blue"
,
Name
"Parameters/01Conductor type"
}
Freq
=
{
1
,
Min
0
,
Max
1e3
,
Step
1
,
...
...
@@ -63,8 +66,8 @@ Function {
SignBranch
[
Coil_2_M
]
=
-
1
;
If
(
ConductorType
==
2
)
// Number of turns (same for PLUS and MINUS portions)
(
half
values because
// half coils are defined
)
// Number of turns
in the coils
(same for PLUS and MINUS portions)
-
half
//
values because
half coils are defined
geometrically due to symmetry!
Ns
[
Coil_1
]
=
100
;
Ns
[
Coil_2
]
=
200
;
...
...
@@ -117,8 +120,8 @@ Group {
Function
{
deg
=
Pi
/
180
;
// Input RMS voltage (half of the voltage because of symmetry; half coils
//
are
defined)
// Input RMS voltage (half of the voltage because of symmetry; half coils
are
// defined
!
)
val_E_in
=
1.
;
phase_E_in
=
90
*
deg
;
// Phase in radian (from phase in degree)
...
...
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