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
69fe0859
Commit
69fe0859
authored
5 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
choose frequency
parent
eebdf824
No related branches found
No related tags found
No related merge requests found
Pipeline
#4779
passed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Magnetodynamics/electromagnet.pro
+5
-2
5 additions, 2 deletions
Magnetodynamics/electromagnet.pro
Magnetodynamics/transfo.pro
+2
-0
2 additions, 0 deletions
Magnetodynamics/transfo.pro
with
7 additions
and
2 deletions
Magnetodynamics/electromagnet.pro
+
5
−
2
View file @
69fe0859
...
...
@@ -14,7 +14,7 @@
To compute the solution interactively from the Gmsh GUI:
File > Open > electromagnet.pro
You may choose the Resolution in the left panel:
You may choose the Resolution in the left panel:
Magnetodynamics2D_av (default) or Magnetostatics2D_a
Run (button at the bottom of the left panel)
------------------------------------------------------------------- */
...
...
@@ -41,9 +41,11 @@ Group {
Function
{
DefineConstant
[
murCore
=
{
100
,
Name
"Model parameters/Mur core"
},
Current
=
{
0.01
,
Name
"Model parameters/Current"
}
Current
=
{
0.01
,
Name
"Model parameters/Current"
},
frequency
=
{
1
,
Name
"Model parameters/Frequency"
}
];
Freq
=
frequency
;
mu0
=
4.e-7
*
Pi
;
nu
[
Region
[{
Air
,
Ind
,
AirInf
}]
]
=
1.
/
mu0
;
nu
[
Core
]
=
1.
/
(
murCore
*
mu0
);
...
...
@@ -86,6 +88,7 @@ PostOperation {
Operation
{
Print
[
a
,
OnElementsOf
Vol_Mag
,
File
"a.pos"
];
Print
[
b
,
OnElementsOf
Vol_Mag
,
File
"b.pos"
,
HarmonicToTime
20
];
Print
[
j
,
OnElementsOf
Vol_Mag
,
File
"j.pos"
,
HarmonicToTime
20
];
}
}
}
This diff is collapsed.
Click to expand it.
Magnetodynamics/transfo.pro
+
2
−
0
View file @
69fe0859
...
...
@@ -215,6 +215,7 @@ PostOperation {
Print
[
b
,
OnElementsOf
Vol_Mag
,
Format
Gmsh
,
File
"b.pos"
];
Print
[
az
,
OnElementsOf
Vol_Mag
,
Format
Gmsh
,
File
"az.pos"
];
If
(
type_Analysis
==
1
)
// frequency domain
If
(
type_Source
==
1
)
// current
// In text file UI.txt: voltage and current for each coil portion (note
// that the voltage is not equally distributed in PLUS and MINUS
...
...
@@ -246,6 +247,7 @@ PostOperation {
Print
[
U
,
OnRegion
R_out
,
Format
FrequencyTable
,
File
>
"UI.txt"
];
Print
[
I
,
OnRegion
R_out
,
Format
FrequencyTable
,
File
>
"UI.txt"
];
EndIf
EndIf
}
}
}
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