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
a4f2839e
Commit
a4f2839e
authored
7 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
rename
parent
a103a5d4
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Magnetodynamics/Lib_MagDyn_av_2D_Cir.pro
+15
-15
15 additions, 15 deletions
Magnetodynamics/Lib_MagDyn_av_2D_Cir.pro
Magnetodynamics/electromagnet.pro
+2
-2
2 additions, 2 deletions
Magnetodynamics/electromagnet.pro
Magnetodynamics/transfo.pro
+2
-2
2 additions, 2 deletions
Magnetodynamics/transfo.pro
with
19 additions
and
19 deletions
Magnetodynamics/Lib_Mag
Sta
Dyn_av_2D_Cir.pro
→
Magnetodynamics/Lib_MagDyn_av_2D_Cir.pro
+
15
−
15
View file @
a4f2839e
// This is a template .pro file containing a general formulation for 2D
// magnetostatic and magnetodynamic problems in terms of the magnetic vector
// potential a (potentially coupled with the electric scalar potential v), with
// optional circuit coupling.
// Lib_MagDyn_av_2D_Cir.pro
//
// Template library for 2D magnetostatic and magnetodynamic problems in terms
// of the magnetic vector potential a (potentially coupled with the electric
// scalar potential v), with optional circuit coupling.
// Below are definitions of the constants (inside "DefineConstant"), groups
// (inside "DefineGroup") and functions (inside "DefineFunction") that can be
// redefined from outside this template.
// Default definitions of constants, groups and functions that can/should be
// redefined from outside the template:
DefineConstant
[
Flag_FrequencyDomain
=
1
,
// frequency-domain or time-domain simulation
...
...
@@ -39,10 +39,9 @@ Group {
Vol_Inf_Mag
,
// annulus where a infinite shell transformation is applied
// Boundaries:
Sur_
FluxTube
_Mag
,
// boundary with Neumann BC
Sur_
Neu
_Mag
,
// boundary with Neumann BC
(flux tube with n x h = nxh[])
Sur_Perfect_Mag
,
// boundary of perfect conductors (non-meshed)
Sur_Imped_Mag
// boundary of conductors approximated by a surface impedance
// (non-meshed)
Sur_Imped_Mag
// boundary of conductors approximated by an impedance (non-meshed)
];
If
(
Flag_CircuitCoupling
)
DefineGroup
[
...
...
@@ -63,7 +62,7 @@ Function {
br
,
// remanent magnetic flux density (in Vol_M_Mag)
js0
,
// source current density (in Vol_S0_Mag)
dhdb
,
// Jacobian for Newton-Raphson method (in Vol_NL_Mag)
nxh
,
// n x magnetic field (on Sur_
FluxTube
_Mag)
nxh
,
// n x magnetic field (on Sur_
Neu
_Mag)
Velocity
,
// velocity of moving part (in Vol_V_Mag)
Ns
,
// number of turns (in Vol_S_Mag)
Sc
,
// cross-section of windings (in Vol_S_Mag)
...
...
@@ -85,7 +84,7 @@ Group{
// all linear materials
Vol_L_Mag
=
Region
[
{
Vol_Mag
,
-
Vol_NL_Mag
}
];
// all volumes + surfaces on which integrals will be computed
Dom_Mag
=
Region
[
{
Vol_Mag
,
Sur_
FluxTube
_Mag
,
Sur_Perfect_Mag
,
Sur_Imped_Mag
}
];
Dom_Mag
=
Region
[
{
Vol_Mag
,
Sur_
Neu
_Mag
,
Sur_Perfect_Mag
,
Sur_Imped_Mag
}
];
If
(
Flag_CircuitCoupling
)
// all circuit impedances
DomainZ_Cir
=
Region
[
{
Resistance_Cir
,
Inductance_Cir
,
Capacitance_Cir
}
];
...
...
@@ -264,7 +263,7 @@ Formulation {
In
Vol_S_Mag
;
Jacobian
Vol
;
Integration
Gauss_v
;
}
Integral
{
[
nxh
[]
,
{
a
}
];
In
Sur_
FluxTube
_Mag
;
Jacobian
Sur
;
Integration
Gauss_v
;
}
In
Sur_
Neu
_Mag
;
Jacobian
Sur
;
Integration
Gauss_v
;
}
}
}
}
...
...
@@ -323,7 +322,7 @@ Formulation {
In
Vol_S0_Mag
;
Jacobian
Vol
;
Integration
Gauss_v
;
}
Integral
{
[
nxh
[]
,
{
a
}
];
In
Sur_
FluxTube
_Mag
;
Jacobian
Sur
;
Integration
Gauss_v
;
}
In
Sur_
Neu
_Mag
;
Jacobian
Sur
;
Integration
Gauss_v
;
}
Integral
{
DtDof
[
Ysur
[]
*
Dof
{
a
}
,
{
a
}
];
In
Sur_Imped_Mag
;
Jacobian
Sur
;
Integration
Gauss_v
;
}
...
...
@@ -474,7 +473,8 @@ PostProcessing {
{
Name
js
;
Value
{
Term
{
[
js0
[]
];
In
Vol_S0_Mag
;
Jacobian
Vol
;
}
Term
{
[
(
js0
[]
*
Vector
[
0
,
0
,
1
])
*
{
ir
}
];
In
Vol_S_Mag
;
Jacobian
Vol
;
}
Term
{
[
Vector
[
0
,
0
,
0
]
];
In
Vol_Mag
;
Jacobian
Vol
;
}
// to force a vector result out of sources
// to force a vector result out of sources
Term
{
[
Vector
[
0
,
0
,
0
]
];
In
Vol_Mag
;
Jacobian
Vol
;
}
}
}
{
Name
j
;
Value
{
...
...
This diff is collapsed.
Click to expand it.
Magnetodynamics/electromagnet.pro
+
2
−
2
View file @
a4f2839e
...
...
@@ -27,7 +27,7 @@ Group {
Surface_bn0
=
Region
[
1101
];
Surface_Inf
=
Region
[
1102
];
// Abstract regions used in the "Lib_Mag
Sta
Dyn_av_2D_Cir.pro" template file
// Abstract regions used in the "Lib_MagDyn_av_2D_Cir.pro" template file
// that is included below:
Vol_Mag
=
Region
[{
Air
,
Core
,
Ind
,
AirInf
}];
// full magnetic domain
Vol_C_Mag
=
Region
[
Core
];
// massive conductors
...
...
@@ -77,7 +77,7 @@ Constraint {
}
}
Include
"Lib_Mag
Sta
Dyn_av_2D_Cir.pro"
;
Include
"Lib_MagDyn_av_2D_Cir.pro"
;
PostOperation
{
{
Name
Map_a
;
NameOfPostProcessing
MagDyn_a_2D
;
...
...
This diff is collapsed.
Click to expand it.
Magnetodynamics/transfo.pro
+
2
−
2
View file @
a4f2839e
...
...
@@ -40,7 +40,7 @@ Group {
Coil_2
=
Region
[{
Coil_2_P
,
Coil_2_M
}];
Coils
=
Region
[{
Coil_1
,
Coil_2
}];
// Abstract regions that will be used in the "Lib_Mag
Sta
Dyn_av_2D_Cir.pro"
// Abstract regions that will be used in the "Lib_MagDyn_av_2D_Cir.pro"
// template file included below;
Vol_Mag
=
Region
[{
Air
,
Core
,
Coils
}];
// full magnetic domain
If
(
type_Conds
==
1
)
...
...
@@ -198,7 +198,7 @@ Constraint {
}
}
Include
"Lib_Mag
Sta
Dyn_av_2D_Cir.pro"
;
Include
"Lib_MagDyn_av_2D_Cir.pro"
;
PostOperation
{
{
Name
Map_a
;
NameOfPostProcessing
MagDyn_a_2D
;
...
...
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