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
066e4c75
"git@gitlab.onelab.info:doc/models.git" did not exist on "43ead0e8f88d618c22ac12a366d831d7dbb30d26"
Commit
066e4c75
authored
5 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
use prisms in air ring
parent
025a463c
No related branches found
No related tags found
No related merge requests found
Pipeline
#5339
passed
5 years ago
Stage: test
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SlidingSurface3D/rfpm.geo
+41
-24
41 additions, 24 deletions
SlidingSurface3D/rfpm.geo
SlidingSurface3D/rfpm_common.pro
+1
-1
1 addition, 1 deletion
SlidingSurface3D/rfpm_common.pro
with
42 additions
and
25 deletions
SlidingSurface3D/rfpm.geo
+
41
−
24
View file @
066e4c75
...
...
@@ -124,12 +124,12 @@ Function Volume2Cube
//
// input: Volumes()
// output: cube()
points
()
=
PointsOf
{
Volume
{
Volumes
()
};
};
point
()
=
Point
{
points
(
0
)
};
_
points
()
=
PointsOf
{
Volume
{
Volumes
()
};
};
point
()
=
Point
{
_
points
(
0
)
};
Call
ChangeCoordinates
;
cube
()
=
{
coord
(
0
),
coord
(
1
),
coord
(
2
),
coord
(
0
),
coord
(
1
),
coord
(
2
)};
For
p
In
{
1
:
#
points
()
-
1
}
point
()
=
Point
{
points
(
p
)
};
For
p
In
{
1
:
#
_
points
()
-
1
}
point
()
=
Point
{
_
points
(
p
)
};
Call
ChangeCoordinates
;
cube
(
0
)
=
(
coord
(
0
)
<
cube
(
0
)
?
coord
(
0
)
:
cube
(
0
));
cube
(
1
)
=
(
coord
(
1
)
<
cube
(
1
)
?
coord
(
1
)
:
cube
(
1
));
...
...
@@ -146,30 +146,30 @@ Function Cube2Face
//
// input: cube() and FaceId
// output: face()
bbox
()
=
cube
();
bbox
(
Modulo
(
FaceId
+
3
,
6
))
=
bbox
(
FaceId
);
_
bbox
()
=
cube
();
_
bbox
(
Modulo
(
FaceId
+
3
,
6
))
=
_
bbox
(
FaceId
);
face
()
=
{};
surfaces
()
=
Boundary
{
Volume
{
Volumes
()
};
};
For
s
In
{
0
:
#
surfaces
()
-
1
}
_
surfaces
()
=
Boundary
{
Volume
{
Volumes
()
};
};
For
s
In
{
0
:
#
_
surfaces
()
-
1
}
NbIn
=
0
;
points
()
=
PointsOf
{
Surface
{
surfaces
(
s
)
}
;
};
For
p
In
{
0
:
#
points
()
-
1
}
point
()
=
Point
{
points
(
p
)
};
_
points
()
=
PointsOf
{
Surface
{
_
surfaces
(
s
)
}
;
};
For
p
In
{
0
:
#
_
points
()
-
1
}
point
()
=
Point
{
_
points
(
p
)
};
Call
ChangeCoordinates
;
If
((
CoordinateSystem
==
1
)
&&
(
coord
(
0
)
==
0
))
coord
(
1
)
=
bbox
(
1
);
coord
(
1
)
=
_
bbox
(
1
);
EndIf
If
((
coord
(
0
)
>
bbox
(
0
)
-
tol
)
&&
(
coord
(
1
)
>
bbox
(
1
)
-
tol
)
&&
(
coord
(
2
)
>
bbox
(
2
)
-
tol
)
&&
(
coord
(
0
)
<
bbox
(
3
)
+
tol
)
&&
(
coord
(
1
)
<
bbox
(
4
)
+
tol
)
&&
(
coord
(
2
)
<
bbox
(
5
)
+
tol
))
If
((
coord
(
0
)
>
_
bbox
(
0
)
-
tol
)
&&
(
coord
(
1
)
>
_
bbox
(
1
)
-
tol
)
&&
(
coord
(
2
)
>
_
bbox
(
2
)
-
tol
)
&&
(
coord
(
0
)
<
_
bbox
(
3
)
+
tol
)
&&
(
coord
(
1
)
<
_
bbox
(
4
)
+
tol
)
&&
(
coord
(
2
)
<
_
bbox
(
5
)
+
tol
))
NbIn
++
;
EndIf
EndFor
If
(
NbIn
==
#
points
())
face
()
+=
surfaces
(
s
);
If
(
NbIn
==
#
_
points
())
face
()
+=
_
surfaces
(
s
);
EndIf
EndFor
Return
...
...
@@ -206,10 +206,26 @@ StatorPerSlave() = face();
FaceId
=
5
;
Call
Cube2Face
;
StatorTop
()
=
face
();
// The width of the air ring region is arbitrary, but it is in general thin,
// The width of the air ring region is arbitrary, but it is in general thin,
// especially in machine models where it has to fit into the air gap.
surfaces
()
=
Boundary
{
Volume
{
10
};
};
// get boundary surfaces of the air ring by geometric identifiying, in order to
// distinguish lateral surfaces from the top and bottom
Volumes
()
=
{
10
};
Call
Volume2Cube
;
surfaces
()
=
{};
FaceId
=
0
;
Call
Cube2Face
;
surfaces
()
+=
face
();
FaceId
=
1
;
Call
Cube2Face
;
surfaces
()
+=
face
();
FaceId
=
2
;
Call
Cube2Face
;
surfaces
()
+=
face
();
FaceId
=
3
;
Call
Cube2Face
;
surfaces
()
+=
face
();
FaceId
=
4
;
Call
Cube2Face
;
surfaces
()
+=
face
();
FaceId
=
5
;
Call
Cube2Face
;
surfaces
()
+=
face
();
lines
()
=
Boundary
{
Surface
{
SlidingSlave
()
};
};
For
num
In
{
0
:
#
surfaces
()
-
1
}
lines
()
+=
Boundary
{
Surface
{
surfaces
(
num
)
};
};
...
...
@@ -233,9 +249,10 @@ For num In { 0:#lines()-1 }
EndIf
EndFor
//
Transfinite Surface{ surfaces() } ;
Transfinit
e
Surface
{
SlidingMaster
(
)
}
;
Transfinite
Surface
{
surfaces
()
}
;
Recombin
e
Surface
{
surfaces
({
1
,
2
,
4
,
5
}
)
};
Transfinite
Surface
{
SlidingSlave
()
}
;
Transfinite
Volume
{
10
};
// Identify 'SlidingSubmaster' Curve
...
...
This diff is collapsed.
Click to expand it.
SlidingSurface3D/rfpm_common.pro
+
1
−
1
View file @
066e4c75
...
...
@@ -8,7 +8,7 @@ If(lc <= 0)
EndIf
// Number of elements on the sliding surface in rotation direction
NbrDiv
=
5
0
*
mm
/
lc
;
NbrDiv
=
10
0
*
mm
/
lc
;
ModelAngleMin
=
0.
;
ModelAngleMax
=
60.
;
...
...
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