Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
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
conveks
tutorials
Commits
ea5fffea
Commit
ea5fffea
authored
6 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
dc36cadb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Team25/shape.pro
+43
-32
43 additions, 32 deletions
Team25/shape.pro
with
43 additions
and
32 deletions
Team25/shape.pro
+
43
−
32
View file @
ea5fffea
...
@@ -106,7 +106,6 @@ Function{
...
@@ -106,7 +106,6 @@ Function{
nu
[
Region
[{
Domain
,
-
Core
}]]
=
1
/
mu0
;
//
linear
nu
[
Region
[{
Domain
,
-
Core
}]]
=
1
/
mu0
;
//
linear
dnudb2
[]
=
dInterpolationLinear
[
SquNorm
[
$
1
]]{
List
[
Mat1_nu_b2
]}
;
dnudb2
[]
=
dInterpolationLinear
[
SquNorm
[
$
1
]]{
List
[
Mat1_nu_b2
]}
;
dnudb_1
[]
=
2.0
*
dInterpolationLinear
[
SquNorm
[
$
1
]]{
List
[
Mat1_nu_b2
]}
*
SquDyadicProduct
[
$
1
];
dhdb_NL
[
Core
]
=
2
*
dnudb2
[
$
1
#
1
]
*
SquDyadicProduct
[
#
1
];
dhdb_NL
[
Core
]
=
2
*
dnudb2
[
$
1
#
1
]
*
SquDyadicProduct
[
#
1
];
//
This
is
the
current
density
which
feeds
the
inductor
.
//
This
is
the
current
density
which
feeds
the
inductor
.
...
@@ -321,7 +320,9 @@ PostProcessing {
...
@@ -321,7 +320,9 @@ PostProcessing {
}
}
}
}
PostOperation
Get_ObjectiveConstraints
UsingPost
ObjectiveConstraints
{
PostOperation
{
{
Name
Get_ObjectiveConstraints
;
NameOfPostProcessing
ObjectiveConstraints
;
Operation
{
CreateDir
[
Opt_ResDir
];
CreateDir
[
Opt_ResDir
];
Print
[
w
,
Print
[
w
,
OnGrid
{(
9.5
e
-
3
+
2.25
e
-
3
)
*
Cos
[
$
A
],(
9.5
e
-
3
+
2.25
e
-
3
)
*
Sin
[
$
A
],
0
}{
0
:
50
*
Pi
/
180
:
5
*
Pi
/
180
,
0
,
0
},
OnGrid
{(
9.5
e
-
3
+
2.25
e
-
3
)
*
Cos
[
$
A
],(
9.5
e
-
3
+
2.25
e
-
3
)
*
Sin
[
$
A
],
0
}{
0
:
50
*
Pi
/
180
:
5
*
Pi
/
180
,
0
,
0
},
...
@@ -346,6 +347,8 @@ PostOperation Get_ObjectiveConstraints UsingPost ObjectiveConstraints {
...
@@ -346,6 +347,8 @@ PostOperation Get_ObjectiveConstraints UsingPost ObjectiveConstraints {
Print
[
js
,
OnElementsOf
Coil
,
File
StrCat
[
Opt_ResDir
,
"js.pos"
]];
Print
[
js
,
OnElementsOf
Coil
,
File
StrCat
[
Opt_ResDir
,
"js.pos"
]];
EndIf
EndIf
}
}
}
}
//
-------------------------------------------------------------------------
//
-------------------------------------------------------------------------
//
Sensitivity
of
w
based
on
a
direct
method
//
Sensitivity
of
w
based
on
a
direct
method
...
@@ -359,10 +362,14 @@ PostProcessing{
...
@@ -359,10 +362,14 @@ PostProcessing{
}
}
}
}
PostOperation
Get_GradOf_w
UsingPost
Direct_MagSta
{
PostOperation
{
{
Name
Get_GradOf_w
;
NameOfPostProcessing
Direct_MagSta
;
Operation
{
Print
[
Lie_w
,
OnGrid
{(
9.5
e
-
3
+
2.25
e
-
3
)
*
Cos
[
$
A
],(
9.5
e
-
3
+
2.25
e
-
3
)
*
Sin
[
$
A
],
0
}
{
0
:
50
*
Pi
/
180
:
5
*
Pi
/
180
,
0
,
0
},
Print
[
Lie_w
,
OnGrid
{(
9.5
e
-
3
+
2.25
e
-
3
)
*
Cos
[
$
A
],(
9.5
e
-
3
+
2.25
e
-
3
)
*
Sin
[
$
A
],
0
}
{
0
:
50
*
Pi
/
180
:
5
*
Pi
/
180
,
0
,
0
},
Format
SimpleTable
,
File
StrCat
[
Opt_ResDir
,
Sprintf
[
"Grad_w_wrt_dv_%g.txt"
,
VelocityTag
]]];
Format
SimpleTable
,
File
StrCat
[
Opt_ResDir
,
Sprintf
[
"Grad_w_wrt_dv_%g.txt"
,
VelocityTag
]]];
}
}
}
}
//
Show
useful
data
//
Show
useful
data
PostProcessing
{
PostProcessing
{
...
@@ -374,11 +381,15 @@ PostProcessing {
...
@@ -374,11 +381,15 @@ PostProcessing {
}
}
}
}
PostOperation
Show_shape
UsingPost
Show_shape
{
PostOperation
{
{
Name
Show_shape
;
NameOfPostProcessing
Show_shape
;
Operation
{
CreateDir
[
Opt_ResDir
];
CreateDir
[
Opt_ResDir
];
Print
[
VV
,
OnElementsOf
Domain
,
File
StrCat
[
Opt_ResDir
,
"velocity.pos"
]
];
Print
[
VV
,
OnElementsOf
Domain
,
File
StrCat
[
Opt_ResDir
,
"velocity.pos"
]
];
Print
[
Lie_az
,
OnElementsOf
Domain
,
File
StrCat
[
Opt_ResDir
,
"Lie_az.pos"
]
];
Print
[
Lie_az
,
OnElementsOf
Domain
,
File
StrCat
[
Opt_ResDir
,
"Lie_az.pos"
]
];
}
}
}
}
//
-------------------------------------------------------------------------
//
-------------------------------------------------------------------------
//
The
following
resolution
solves
the
physical
problem
//
The
following
resolution
solves
the
physical
problem
...
...
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