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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
62c5572c
Commit
62c5572c
authored
13 years ago
by
Bastien Gorissen
Browse files
Options
Downloads
Patches
Plain Diff
Added proposed data structure for boundary layer information storage.
parent
f8ea14f1
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
Geo/MVertex.h
+5
-0
5 additions, 0 deletions
Geo/MVertex.h
Geo/MVertexBoundaryLayerData.cpp
+30
-0
30 additions, 0 deletions
Geo/MVertexBoundaryLayerData.cpp
Geo/MVertexBoundaryLayerData.h
+33
-0
33 additions, 0 deletions
Geo/MVertexBoundaryLayerData.h
with
68 additions
and
0 deletions
Geo/MVertex.h
+
5
−
0
View file @
62c5572c
...
...
@@ -10,6 +10,7 @@
#include
<set>
#include
"SPoint2.h"
#include
"SPoint3.h"
#include
"MVertexBoundaryLayerData.h"
class
GEntity
;
class
GEdge
;
...
...
@@ -124,6 +125,8 @@ class MEdgeVertex : public MVertex{
protected:
double
_u
,
_lc
;
public:
MVertexBoundaryLayerData
*
bl_data
;
MEdgeVertex
(
double
x
,
double
y
,
double
z
,
GEntity
*
ge
,
double
u
,
double
lc
=
-
1.0
,
int
num
=
0
)
:
MVertex
(
x
,
y
,
z
,
ge
,
num
),
_u
(
u
),
_lc
(
lc
)
...
...
@@ -139,6 +142,8 @@ class MFaceVertex : public MVertex{
protected:
double
_u
,
_v
;
public
:
MVertexBoundaryLayerData
*
bl_data
;
MFaceVertex
(
double
x
,
double
y
,
double
z
,
GEntity
*
ge
,
double
u
,
double
v
,
int
num
=
0
)
:
MVertex
(
x
,
y
,
z
,
ge
,
num
),
_u
(
u
),
_v
(
v
)
{
...
...
This diff is collapsed.
Click to expand it.
Geo/MVertexBoundaryLayerData.cpp
0 → 100644
+
30
−
0
View file @
62c5572c
// Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include
"MVertexBoundaryLayerData.h"
std
::
vector
<
MVertex
*>*
MVertexBoundaryLayerData
::
getChildren
(
int
i
){
if
(
i
<
this
->
children
.
size
()
&&
i
>=
0
)
{
return
&
(
children
[
i
]);
}
else
{
return
0
;
}
}
int
MVertexBoundaryLayerData
::
getNumChildren
(
int
i
)
{
if
(
i
<
this
->
children
.
size
()
&&
i
>=
0
)
{
return
this
->
children
[
i
].
size
();
}
else
{
return
-
1
;
}
}
int
MVertexBoundaryLayerData
::
getNumChildrenFamilies
()
{
return
this
->
children
.
size
();
}
void
MVertexBoundaryLayerData
::
addChildrenFamily
(
std
::
vector
<
MVertex
*>
family
)
{
this
->
children
.
push_back
(
family
);
}
This diff is collapsed.
Click to expand it.
Geo/MVertexBoundaryLayerData.h
0 → 100644
+
33
−
0
View file @
62c5572c
// Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#ifndef _MVERTEXBOUNDARYLAYERDATA_H_
#define _MVERTEXBOUNDARYLAYERDATA_H_
#include
<vector>
class
MVertex
;
/* A simple data structure to keep track of the "children" of
* vertices in a boundary layer meshes.
*
* It should be filled for each MVertex on the boundary of the
* geometry with the vertices along the normal direction, in order.
*/
class
MVertexBoundaryLayerData
{
private:
std
::
vector
<
std
::
vector
<
MVertex
*>
>
children
;
public:
std
::
vector
<
MVertex
*>*
getChildren
(
int
i
);
int
getNumChildren
(
int
i
);
int
getNumChildrenFamilies
();
void
addChildrenFamily
(
std
::
vector
<
MVertex
*>
family
);
};
#endif
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