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
030e50f4
Commit
030e50f4
authored
10 years ago
by
Thomas Toulorge
Browse files
Options
Downloads
Patches
Plain Diff
Renamed some parameters for the mesh quality optimizer
parent
0c9999a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
+4
-4
4 additions, 4 deletions
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
contrib/MeshQualityOptimizer/MeshQualityOptimizer.h
+3
-3
3 additions, 3 deletions
contrib/MeshQualityOptimizer/MeshQualityOptimizer.h
with
7 additions
and
7 deletions
contrib/MeshQualityOptimizer/MeshQualityOptimizer.cpp
+
4
−
4
View file @
030e50f4
...
...
@@ -134,15 +134,15 @@ void MeshQualityOptimizer(GModel *gm, MeshQualOptParameters &p)
MeshOptPass
minJacPass
;
MeshOptPass
minInvCondNumPass
;
if
(
p
.
onlyValidity
)
{
minJacPass
.
barrierIterMax
=
p
.
optPass
Max
;
minJacPass
.
optIterMax
=
p
.
it
Max
;
minJacPass
.
barrierIterMax
=
p
.
barrierIter
Max
;
minJacPass
.
optIterMax
=
p
.
optIter
Max
;
minJacPass
.
contrib
.
push_back
(
&
nodeDistFunc
);
minJacPass
.
contrib
.
push_back
(
&
minIdealJacBarFunc
);
par
.
pass
.
push_back
(
minJacPass
);
}
else
{
minInvCondNumPass
.
barrierIterMax
=
p
.
optPass
Max
;
minInvCondNumPass
.
optIterMax
=
p
.
it
Max
;
minInvCondNumPass
.
barrierIterMax
=
p
.
barrierIter
Max
;
minInvCondNumPass
.
optIterMax
=
p
.
optIter
Max
;
minInvCondNumPass
.
contrib
.
push_back
(
&
nodeDistFunc
);
minInvCondNumPass
.
contrib
.
push_back
(
&
minInvCondNumBarFunc
);
par
.
pass
.
push_back
(
minInvCondNumPass
);
...
...
This diff is collapsed.
Click to expand it.
contrib/MeshQualityOptimizer/MeshQualityOptimizer.h
+
3
−
3
View file @
030e50f4
...
...
@@ -41,8 +41,8 @@ struct MeshQualOptParameters {
double
weightFree
;
// weight of the energy for free nodes
int
nbLayers
;
// number of layers taken around a bad element
int
dim
;
// which dimension to optimize
int
it
Max
;
//
m
ax number of iterations in the optimization process
int
optPass
Max
;
//
m
ax number of
optimization passes
int
optIter
Max
;
//
M
ax number of iterations in the optimization process
int
barrierIter
Max
;
//
M
ax number of
barrier moves ("runs")
bool
onlyVisible
;
// apply optimization to visible entities ONLY
double
distanceFactor
;
// Distance criterion for patch creation
bool
fixBndNodes
;
// If points can move on boundaries
...
...
@@ -60,7 +60,7 @@ struct MeshQualOptParameters {
:
onlyValidity
(
false
),
excludeQuad
(
false
),
excludeHex
(
false
),
excludePrism
(
false
),
excludeBL
(
false
),
minTargetIdealJac
(
0.1
),
minTargetInvCondNum
(
0.1
),
weightFixed
(
1000.
),
weightFree
(
1.
),
nbLayers
(
6
)
,
dim
(
3
)
,
it
Max
(
300
),
optPass
Max
(
50
),
weightFree
(
1.
),
nbLayers
(
6
)
,
dim
(
3
)
,
optIter
Max
(
300
),
barrierIter
Max
(
50
),
onlyVisible
(
true
),
distanceFactor
(
12
),
fixBndNodes
(
false
),
strategy
(
0
),
maxAdaptBlob
(
3
),
adaptBlobLayerFact
(
2.
),
adaptBlobDistFact
(
2.
),
CPU
(
0.
),
minIdealJac
(
0.
),
maxIdealJac
(
0.
),
minInvCondNum
(
0.
),
maxInvCondNum
(
0.
),
...
...
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