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
83bdc819
"README.txt" did not exist on "0d08b86a2d2734c714cb6749ed68f441c8080ffc"
Commit
83bdc819
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
34ea992c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/BackgroundMesh.cpp
+6
-7
6 additions, 7 deletions
Mesh/BackgroundMesh.cpp
with
6 additions
and
7 deletions
Mesh/BackgroundMesh.cpp
+
6
−
7
View file @
83bdc819
...
@@ -152,6 +152,7 @@ double BGM_MeshSize(GEntity *ge, double U, double V,
...
@@ -152,6 +152,7 @@ double BGM_MeshSize(GEntity *ge, double U, double V,
double
l3
=
MAX_LC
;
double
l3
=
MAX_LC
;
if
(
CTX
::
instance
()
->
mesh
.
lcFromCurvature
&&
ge
->
dim
()
<
3
)
if
(
CTX
::
instance
()
->
mesh
.
lcFromCurvature
&&
ge
->
dim
()
<
3
)
l3
=
LC_MVertex_CURV
(
ge
,
U
,
V
);
l3
=
LC_MVertex_CURV
(
ge
,
U
,
V
);
// lc from fields
// lc from fields
double
l4
=
MAX_LC
;
double
l4
=
MAX_LC
;
FieldManager
*
fields
=
GModel
::
current
()
->
getFields
();
FieldManager
*
fields
=
GModel
::
current
()
->
getFields
();
...
@@ -160,7 +161,7 @@ double BGM_MeshSize(GEntity *ge, double U, double V,
...
@@ -160,7 +161,7 @@ double BGM_MeshSize(GEntity *ge, double U, double V,
if
(
f
)
l4
=
(
*
f
)(
X
,
Y
,
Z
,
ge
);
if
(
f
)
l4
=
(
*
f
)(
X
,
Y
,
Z
,
ge
);
}
}
// take the minimum, then contrain by lcMin and lcMax
// take the minimum, then con
s
train by lcMin and lcMax
double
lc
=
std
::
min
(
std
::
min
(
std
::
min
(
l1
,
l2
),
l3
),
l4
);
double
lc
=
std
::
min
(
std
::
min
(
std
::
min
(
l1
,
l2
),
l3
),
l4
);
lc
=
std
::
max
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
);
lc
=
std
::
max
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
);
lc
=
std
::
min
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMax
);
lc
=
std
::
min
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMax
);
...
@@ -189,12 +190,12 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
...
@@ -189,12 +190,12 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
l2
=
LC_MVertex_PNTS
(
ge
,
U
,
V
);
l2
=
LC_MVertex_PNTS
(
ge
,
U
,
V
);
// lc from curvature
// lc from curvature
double
l3
=
MAX_LC
;
double
l3
=
MAX_LC
;
if
(
CTX
::
instance
()
->
mesh
.
lcFromCurvature
&&
ge
->
dim
()
<
3
)
if
(
CTX
::
instance
()
->
mesh
.
lcFromCurvature
&&
ge
->
dim
()
<
3
)
l3
=
LC_MVertex_CURV
(
ge
,
U
,
V
);
l3
=
LC_MVertex_CURV
(
ge
,
U
,
V
);
// lc from fields
// lc from fields
SMetric3
l4
(
MAX_LC
);
SMetric3
l4
(
MAX_LC
);
FieldManager
*
fields
=
GModel
::
current
()
->
getFields
();
FieldManager
*
fields
=
GModel
::
current
()
->
getFields
();
if
(
fields
->
background_field
>
0
){
if
(
fields
->
background_field
>
0
){
Field
*
f
=
fields
->
get
(
fields
->
background_field
);
Field
*
f
=
fields
->
get
(
fields
->
background_field
);
...
@@ -208,7 +209,6 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
...
@@ -208,7 +209,6 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
// take the minimum, then constrain by lcMin and lcMax
// take the minimum, then constrain by lcMin and lcMax
double
lc
=
std
::
min
(
std
::
min
(
l1
,
l2
),
l3
);
double
lc
=
std
::
min
(
std
::
min
(
l1
,
l2
),
l3
);
lc
=
std
::
max
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
);
lc
=
std
::
max
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
);
lc
=
std
::
min
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMax
);
lc
=
std
::
min
(
lc
,
CTX
::
instance
()
->
mesh
.
lcMax
);
...
@@ -217,13 +217,12 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
...
@@ -217,13 +217,12 @@ SMetric3 BGM_MeshMetric(GEntity *ge,
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
,
CTX
::
instance
()
->
mesh
.
lcMax
);
lc
,
CTX
::
instance
()
->
mesh
.
lcMin
,
CTX
::
instance
()
->
mesh
.
lcMax
);
lc
=
l1
;
lc
=
l1
;
}
}
SMetric3
LC
(
lc
);
return
intersection
(
l4
,
LC
);
SMetric3
LC
(
lc
);
return
intersection
(
l4
,
LC
);
// return lc * CTX::instance()->mesh.lcFactor;
// return lc * CTX::instance()->mesh.lcFactor;
}
}
bool
Extend1dMeshIn2dSurfaces
()
bool
Extend1dMeshIn2dSurfaces
()
{
{
return
CTX
::
instance
()
->
mesh
.
lcExtendFromBoundary
?
true
:
false
;
return
CTX
::
instance
()
->
mesh
.
lcExtendFromBoundary
?
true
:
false
;
...
...
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