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
d7ce1b2d
Commit
d7ce1b2d
authored
5 years ago
by
François Henrotte
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
bf511038
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Conductors3D/w3d.geo
+3
-0
3 additions, 0 deletions
Conductors3D/w3d.geo
Conductors3D/w3d.pro
+8
-6
8 additions, 6 deletions
Conductors3D/w3d.pro
Conductors3D/w3d_common.pro
+3
-1
3 additions, 1 deletion
Conductors3D/w3d_common.pro
with
14 additions
and
7 deletions
Conductors3D/w3d.geo
+
3
−
0
View file @
d7ce1b2d
...
...
@@ -101,6 +101,7 @@ ElseIf( Flag_RegSleeve ) // regular sleeve
Wires
[]
=
{};
For
i
In
{
1
:
NumWires
}
e
[]
=
Extrude
{
0
,
0
,
Lz
}
{
Point
{
centerWires
[
i
-
1
]
}
;
/*Layers{1};*/
}
;
Transfinite
Curve
{
e
[
1
]
}
=
NbDivision
+
1
;
Physical
Line
(
Sprintf
(
"LWIRE_%g"
,
i
),
50
+
i
)
=
{
e
[
1
]
};
Physical
Point
(
Sprintf
(
"PANODE_%g"
,
i
),
60
+
i
)
=
{
centerWires
[
i
-
1
]
};
Physical
Point
(
Sprintf
(
"PCATHODE_%g"
,
i
),
70
+
i
)
=
{
e
[
0
]
};
...
...
@@ -115,6 +116,7 @@ ElseIf( Flag_RegSleeve ) // regular sleeve
s1
=
news
;
Plane
Surface
(
s1
)
=
{
ll1
,
-
llWires
[]};
e
[]
=
Extrude
{
0
,
0
,
Lz
}
{
Surface
{
s1
}
;
/*Layers{1}; Recombine;*/
}
;
Physical
Volume
(
"AIR"
,
1
)
=
{
e
[
1
],
Wires
[]
};
Physical
Volume
(
"BLA"
,
5
)
=
{
e
[
1
]
};
Else
...
...
@@ -125,6 +127,7 @@ Else
Physical
Volume
(
"AIR"
,
1
)
=
{
v1
};
For
i
In
{
1
:
NumWires
}
e
[]
=
Extrude
{
0
,
0
,
Lz
}
{
Point
{
centerWires
[
i
-
1
]
}
;
/*Layers{1};*/
}
;
Transfinite
Curve
{
e
[
1
]
}
=
NbDivision
+
1
;
//Printf("e=", e[]);
Physical
Line
(
Sprintf
(
"LWIRE_%g"
,
i
),
50
+
i
)
=
{
e
[
1
]
};
Physical
Point
(
Sprintf
(
"PANODE_%g"
,
i
),
60
+
i
)
=
{
centerWires
[
i
-
1
]
};
...
...
This diff is collapsed.
Click to expand it.
Conductors3D/w3d.pro
+
8
−
6
View file @
d7ce1b2d
...
...
@@ -34,6 +34,7 @@ Group{
INF
=
Region
[
2
];
SKIN
=
Region
[
3
];
LINTREE
=
Region
[
4
];
// not used
BLA
=
Region
[
5
];
VWIRES
=
Region
[
{}
];
LWIRES
=
Region
[
{}
];
...
...
@@ -82,8 +83,8 @@ Group{
// additional Groups for the semi_analytic approach
Dom_Hthin_a
=
ElementsOf
[
Vol_nu
,
OnOneSideOf
LWIRES
];
//
Vol_Tree = ElementsOf[ Vol_nu,
Not Dom_Hthin_a
];
Vol_Tree
=
Region
[
{
Vol_nu
}
];
Vol_Tree
=
ElementsOf
[
Vol_nu
,
DisjointOf
LWIRES
];
//
Vol_Tree = Region[ {
BLA
} ];
Sur_Tree
=
Region
[
{
Sur_Dirichlet_a
/*, SKIN*/
}
];
If
(
!
Flag_SemiAnalytic
)
Lin_Tree
=
Region
[
{}
];
...
...
@@ -434,12 +435,12 @@ Formulation {
Integral
{
[
nu
[]
*
Dof
{
d
a
}
,
{
d
a
}
];
In
Vol_nu
;
Jacobian
Vol
;
Integration
I1
;
}
GlobalTerm
{
[
-
Dof
{
I
}
*
1e1
,
{
F
}
];
GlobalTerm
{
[
-
Dof
{
I
}
*
NbDivision
,
{
F
}
];
In
Vol_nu
;
}
Integral
{
[
nu
[]
*
Dof
{
d
as
}
,
{
d
as
}
];
In
Vol_nu
;
Jacobian
Vol
;
Integration
I1
;
}
GlobalTerm
{
[
-
Dof
{
Is
}
*
1e1
,
{
Fs
}
];
GlobalTerm
{
[
-
Dof
{
Is
}
*
NbDivision
,
{
Fs
}
];
In
Vol_nu
;
}
// Integral { [ -Dof{i}/A_c , {as} ];
...
...
@@ -569,7 +570,7 @@ PostProcessing {
PostOperation
map
UsingPost
MagnetoDynamics
{
Print
[
b
,
OnElementsOf
Vol_
nu
,
File
"b.pos"
];
Print
[
b
,
OnElementsOf
Vol_
Tree
,
File
"b.pos"
];
If
(
!
Flag_SemiAnalytic
)
Print
[
J
,
OnElementsOf
Vol_C
,
File
"j.pos"
];
...
...
@@ -579,7 +580,8 @@ PostOperation map UsingPost MagnetoDynamics {
In
Vol_nu
,
File
"group.pos"
];
EndIf
PrintGroup
[
EdgesOfTreeIn
[
{
Vol_Tree
},
StartingOn
{
Sur_Tree
,
Lin_Tree
}
],
In
Vol_Tree
,
File
"Tree.pos"
];
In
Vol_nu
,
File
"Tree.pos"
];
//PrintGroup[ _CO_Entity_44, In Vol_nu, File "Tree.pos"];
}
...
...
This diff is collapsed.
Click to expand it.
Conductors3D/w3d_common.pro
+
3
−
1
View file @
d7ce1b2d
...
...
@@ -14,7 +14,7 @@ DefineConstant[
Flag_Thin
=
{
1
,
Name
"Parameters/01Thin wires"
,
Choices
{
0
,
1
},
Visible
1
}
Flag_RegSleeve
=
{
0
,
Name
"Parameters/02Regular sleeves"
,
Flag_RegSleeve
=
{
1
,
Name
"Parameters/02Regular sleeves"
,
Choices
{
0
,
1
},
Visible
Flag_Thin
}
Flag_SemiAnalytic
=
{
1
,
Name
"Parameters/03Semi-analytic approach"
,
...
...
@@ -44,6 +44,8 @@ DefineConstant[
A_c
=
Pi
*
rw
^
2
// wire cross section
rout
=
box
Lz
=
10
*
mm
NbDivision
=
10
/* 'WireRadius' is the actual radius of the wire.
'MeshSizeWire' is the imposed mesh size at the nodes of the wire,
...
...
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