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
067457c5
Commit
067457c5
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
1e67c200
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/BackgroundMesh.cpp
+7
-7
7 additions, 7 deletions
Mesh/BackgroundMesh.cpp
with
7 additions
and
7 deletions
Mesh/BackgroundMesh.cpp
+
7
−
7
View file @
067457c5
...
@@ -490,8 +490,8 @@ void backgroundMesh::unset()
...
@@ -490,8 +490,8 @@ void backgroundMesh::unset()
_current
=
0
;
_current
=
0
;
}
}
backgroundMesh
::
backgroundMesh
(
GFace
*
_gf
,
bool
cfd
)
:
backgroundMesh
::
backgroundMesh
(
GFace
*
_gf
,
bool
cfd
)
:
_octree
(
0
),
uv_kdtree
(
0
),
angle_kdtree
(
0
),
nodes
(
0
),
angle_nodes
(
0
)
_octree
(
0
),
uv_kdtree
(
0
),
nodes
(
0
),
angle_nodes
(
0
)
,
angle_kdtree
(
0
)
{
{
if
(
cfd
){
if
(
cfd
){
...
@@ -545,7 +545,7 @@ backgroundMesh::backgroundMesh(GFace *_gf, bool cfd) :
...
@@ -545,7 +545,7 @@ backgroundMesh::backgroundMesh(GFace *_gf, bool cfd) :
uv_kdtree
=
new
ANNkd_tree
(
nodes
,
myBCNodes
.
size
(),
3
);
uv_kdtree
=
new
ANNkd_tree
(
nodes
,
myBCNodes
.
size
(),
3
);
#endif
#endif
// build a search structure
// build a search structure
_octree
=
new
MElementOctree
(
_triangles
);
_octree
=
new
MElementOctree
(
_triangles
);
// compute the mesh sizes at nodes
// compute the mesh sizes at nodes
...
@@ -754,7 +754,7 @@ void backgroundMesh::propagateCrossFieldByDistance(GFace *_gf)
...
@@ -754,7 +754,7 @@ void backgroundMesh::propagateCrossFieldByDistance(GFace *_gf)
_cos
.
clear
();
_cos
.
clear
();
while
(
itp
!=
_cosines4
.
end
()){
while
(
itp
!=
_cosines4
.
end
()){
MVertex
*
v
=
itp
->
first
;
MVertex
*
v
=
itp
->
first
;
double
c
=
itp
->
second
;
double
c
=
itp
->
second
;
SPoint2
pt
=
_param
[
v
];
SPoint2
pt
=
_param
[
v
];
double
s
=
_sines4
[
v
];
double
s
=
_sines4
[
v
];
angle_nodes
[
ind
][
0
]
=
pt
.
x
();
angle_nodes
[
ind
][
0
]
=
pt
.
x
();
...
@@ -764,7 +764,7 @@ void backgroundMesh::propagateCrossFieldByDistance(GFace *_gf)
...
@@ -764,7 +764,7 @@ void backgroundMesh::propagateCrossFieldByDistance(GFace *_gf)
_sin
.
push_back
(
s
);
_sin
.
push_back
(
s
);
itp
++
;
ind
++
;
itp
++
;
ind
++
;
}
}
angle_kdtree
=
new
ANNkd_tree
(
angle_nodes
,
_cosines4
.
size
(),
3
);
angle_kdtree
=
new
ANNkd_tree
(
angle_nodes
,
_cosines4
.
size
(),
3
);
}
}
void
backgroundMesh
::
propagatecrossField
(
GFace
*
_gf
)
void
backgroundMesh
::
propagatecrossField
(
GFace
*
_gf
)
...
@@ -927,7 +927,7 @@ double backgroundMesh::operator() (double u, double v, double w) const
...
@@ -927,7 +927,7 @@ double backgroundMesh::operator() (double u, double v, double w) const
double
backgroundMesh
::
getAngle
(
double
u
,
double
v
,
double
w
)
const
double
backgroundMesh
::
getAngle
(
double
u
,
double
v
,
double
w
)
const
{
{
// JFR :
// JFR :
// we can use closest point for computing
// we can use closest point for computing
// cross field angles : this allow NOT to
// cross field angles : this allow NOT to
// generate a spurious mesh and solve a PDE
// generate a spurious mesh and solve a PDE
...
@@ -943,7 +943,7 @@ double backgroundMesh::getAngle(double u, double v, double w) const
...
@@ -943,7 +943,7 @@ double backgroundMesh::getAngle(double u, double v, double w) const
}
}
double
angle
=
atan2
(
SINE
,
COSINE
)
/
4.0
;
double
angle
=
atan2
(
SINE
,
COSINE
)
/
4.0
;
crossField2d
::
normalizeAngle
(
angle
);
crossField2d
::
normalizeAngle
(
angle
);
return
angle
;
return
angle
;
#endif
#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