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
0e2b97d6
Commit
0e2b97d6
authored
6 years ago
by
Ruth Sabariego
Browse files
Options
Downloads
Patches
Plain Diff
Update electromagnet.pro
parent
37e57bb2
No related branches found
No related tags found
No related merge requests found
Pipeline
#1943
passed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Magnetodynamics/electromagnet.pro
+6
-4
6 additions, 4 deletions
Magnetodynamics/electromagnet.pro
with
6 additions
and
4 deletions
Magnetodynamics/electromagnet.pro
+
6
−
4
View file @
0e2b97d6
...
...
@@ -14,6 +14,8 @@
To compute the solution interactively from the Gmsh GUI:
File > Open > electromagnet.pro
You may choose the Resolution in the left panel:
Magnetodynamics2D_av (default) or Magnetostatics2D_a
Run (button at the bottom of the left panel)
------------------------------------------------------------------- */
...
...
@@ -32,8 +34,8 @@ Group {
Vol_Mag
=
Region
[{
Air
,
Core
,
Ind
,
AirInf
}];
// full magnetic domain
Vol_C_Mag
=
Region
[
Core
];
// massive conductors
Vol_S_Mag
=
Region
[
Ind
];
// stranded conductors (coils)
Vol_Inf_Mag
=
Region
[
AirInf
];
//
annulus
for infinite
shell
transformation
Val_Rint
=
rInt
;
Val_Rext
=
rExt
;
// interior and exterior radii of
annulus
Vol_Inf_Mag
=
Region
[
AirInf
];
//
ring-shaped shell
for infinite transformation
Val_Rint
=
rInt
;
Val_Rext
=
rExt
;
// interior and exterior radii of
ring
}
Function
{
...
...
@@ -50,7 +52,7 @@ Function {
sigma
[
Ind
]
=
5e7
;
Ns
[
Ind
]
=
1000
;
// number of turns in coil
Sc
[
Ind
]
=
SurfaceArea
[]
;
//
surface (
cross section
) of coil
Sc
[
Ind
]
=
SurfaceArea
[]
;
//
area of coil
cross section
// Current density in each coil portion for a unit current (will be multiplied
// by the actual total current in the coil)
js0
[
Ind
]
=
Ns
[]
/
Sc
[]
*
Vector
[
0
,
0
,
-
1
];
...
...
@@ -66,7 +68,7 @@ Constraint {
}
{
Name
Current_2D
;
Case
{
// represents the phasor amplitude for a dynamic analysis
// represents the phasor amplitude
(peak to peak value)
for a dynamic analysis
{
Region
Ind
;
Value
Current
;
}
}
}
...
...
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