Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
bdde6506
Commit
bdde6506
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cosmetic
parent
746bea6c
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
Mesh/SecondOrder.cpp
+13
-12
13 additions, 12 deletions
Mesh/SecondOrder.cpp
with
13 additions
and
12 deletions
Mesh/SecondOrder.cpp
+
13
−
12
View file @
bdde6506
// $Id: SecondOrder.cpp,v 1.4
6
2006-09-08 0
2:39:43
geuzaine Exp $
// $Id: SecondOrder.cpp,v 1.4
7
2006-09-08 0
4:52:54
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -373,7 +373,7 @@ void removeSecondOrderVertices(GEntity *e)
void
Degre1
()
{
// replace all elements with first order elements and mark all
// unused
nod
es with a -1 visibility flag
// unused
vertic
es with a -1 visibility flag
for
(
GModel
::
eiter
it
=
GMODEL
->
firstEdge
();
it
!=
GMODEL
->
lastEdge
();
++
it
){
setFirstOrder
(
*
it
,
(
*
it
)
->
lines
);
}
...
...
@@ -388,7 +388,7 @@ void Degre1()
setFirstOrder
(
*
it
,
(
*
it
)
->
pyramids
);
}
// remove all
nod
es with a -1 visibility flag
// remove all
vertic
es with a -1 visibility flag
for
(
GModel
::
eiter
it
=
GMODEL
->
firstEdge
();
it
!=
GMODEL
->
lastEdge
();
++
it
)
removeSecondOrderVertices
(
*
it
);
for
(
GModel
::
fiter
it
=
GMODEL
->
firstFace
();
it
!=
GMODEL
->
lastFace
();
++
it
)
...
...
@@ -399,23 +399,24 @@ void Degre1()
void
Degre2
(
bool
linear
,
bool
incomplete
)
{
Msg
(
STATUS1
,
"Meshing second order..."
);
double
t1
=
Cpu
();
// This routine replaces all the elements in the mesh with second
// order elements by creating unique nodes on the edges/faces of the
// mesh:
// - If linear is set to true, new vertices are created by linear
// replace all the elements in the mesh with second order elements
// by creating unique vertices on the edges/faces of the mesh:
//
// - if linear is set to true, new vertices are created by linear
// interpolation between existing ones. If not, new vertices are
// created on the exact geometry, provided that the geometrical
// edges/faces are discretized with 1D/2D elements. (I.e., if
// there are only 3D elements in the mesh then any new
nod
es on
// there are only 3D elements in the mesh then any new
vertic
es on
// the boundary will always be created by linear interpolation,
// whether linear is set or not.)
// - If incomplete is set to true, we only create new vertices on
//
// - if incomplete is set to true, we only create new vertices on
// edges (creating 8-node quads, 20-node hexas, etc., instead of
// 9-node quads, 27-node hexas, etc.)
Msg
(
STATUS1
,
"Meshing second order..."
);
double
t1
=
Cpu
();
std
::
map
<
std
::
pair
<
MVertex
*
,
MVertex
*>
,
MVertex
*
>
edgeVertices
;
std
::
map
<
std
::
vector
<
MVertex
*>
,
MVertex
*
>
faceVertices
;
...
...
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