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
Package registry
Model registry
Operate
Terraform modules
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
Romin Tomasetti
gmsh
Commits
fd07af17
Commit
fd07af17
authored
7 years ago
by
Amaury Johnen
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
9ff59268
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
Plugin/AnalyseCurvedMesh.cpp
+0
-48
0 additions, 48 deletions
Plugin/AnalyseCurvedMesh.cpp
Plugin/AnalyseCurvedMesh.h
+0
-32
0 additions, 32 deletions
Plugin/AnalyseCurvedMesh.h
with
0 additions
and
80 deletions
Plugin/AnalyseCurvedMesh.cpp
+
0
−
48
View file @
fd07af17
...
...
@@ -361,18 +361,6 @@ void GMSH_AnalyseCurvedMeshPlugin::_computeMinMaxJandValidity(int dim)
_computedJ
[
dim
-
1
]
=
true
;
}
void
GMSH_AnalyseCurvedMeshPlugin
::
_computeMinMaxJandValidity
(
MElement
*
const
*
el
,
int
numEl
)
{
for
(
int
k
=
0
;
k
<
numEl
;
++
k
)
{
double
min
,
max
;
jacobianBasedQuality
::
minMaxJacobianDeterminant
(
el
[
k
],
min
,
max
);
_data
.
push_back
(
data_elementMinMax
(
el
[
k
],
min
,
max
));
if
(
min
<
0
&&
max
<
0
)
{
Msg
::
Warning
(
"Element %d is completely inverted"
,
el
[
k
]
->
getNum
());
}
}
}
void
GMSH_AnalyseCurvedMeshPlugin
::
_computeMinScaledJac
(
int
dim
)
{
if
(
_computedS
[
dim
-
1
])
return
;
...
...
@@ -389,12 +377,6 @@ void GMSH_AnalyseCurvedMeshPlugin::_computeMinScaledJac(int dim)
else
{
_data
[
i
].
setMinS
(
jacobianBasedQuality
::
minScaledJacobian
(
el
,
true
));
}
// Msg::Info("Scaled Jac");
// Msg::Info("==========");
// for (int k = 1; k < 30; ++k) {
// Msg::Info("%.10g", jacobianBasedQuality::minSampledScaledJacobian(el, k));
// }
// Msg::Info(" ");
if
(
i
>=
nextCheck
)
{
nextCheck
+=
_data
.
size
()
/
100
;
double
curTime
=
Cpu
();
...
...
@@ -436,12 +418,6 @@ void GMSH_AnalyseCurvedMeshPlugin::_computeMinIsotropy(int dim)
else
{
_data
[
i
].
setMinI
(
jacobianBasedQuality
::
minIsotropyMeasure
(
el
,
true
));
}
// Msg::Info("Isotropy");
// Msg::Info("========");
// for (int k = 1; k < 30; ++k) {
// Msg::Info("%.10g", jacobianBasedQuality::minSampledIsotropyMeasure(el, k));
// }
// Msg::Info(" ");
if
(
i
>=
nextCheck
)
{
nextCheck
+=
_data
.
size
()
/
100
;
double
curTime
=
Cpu
();
...
...
@@ -586,28 +562,4 @@ void GMSH_AnalyseCurvedMeshPlugin::_printStatIsotropy()
infminI
,
avgminI
,
supminI
);
}
// For testing
void
GMSH_AnalyseCurvedMeshPlugin
::
computeMinR
(
MElement
*
const
*
el
,
int
numEl
,
double
*
minR
,
bool
*
straight
)
{
_computedJ
[
el
[
0
]
->
getDim
()
-
1
]
=
false
;
_computedI
[
el
[
0
]
->
getDim
()
-
1
]
=
false
;
_data
.
clear
();
_computeMinMaxJandValidity
(
el
,
numEl
);
_computeMinIsotropy
(
el
[
0
]
->
getDim
());
if
(
minR
)
{
for
(
unsigned
int
i
=
0
;
i
<
_data
.
size
();
++
i
)
{
minR
[
i
]
=
_data
[
i
].
minI
();
}
}
if
(
straight
)
{
for
(
unsigned
int
i
=
0
;
i
<
_data
.
size
();
++
i
)
{
straight
[
i
]
=
0
;
}
}
}
#endif
This diff is collapsed.
Click to expand it.
Plugin/AnalyseCurvedMesh.h
+
0
−
32
View file @
fd07af17
...
...
@@ -73,40 +73,8 @@ public :
StringXNumber
*
getOption
(
int
);
PView
*
execute
(
PView
*
);
// For testing
void
computeMinJ
(
MElement
*
const
*
el
,
int
numEl
,
double
*
minJ
,
bool
*
straight
)
{
std
::
vector
<
data_elementMinMax
>
save
(
_data
);
_data
.
clear
();
_computeMinMaxJandValidity
(
el
,
numEl
);
if
(
minJ
)
{
for
(
unsigned
int
i
=
0
;
i
<
_data
.
size
();
++
i
)
{
minJ
[
i
]
=
_data
[
i
].
minJ
();
}
}
if
(
straight
)
{
for
(
unsigned
int
i
=
0
;
i
<
_data
.
size
();
++
i
)
{
straight
[
i
]
=
_data
[
i
].
maxJ
()
-
_data
[
i
].
minJ
()
<
1e-5
;
}
}
_data
=
save
;
}
void
computeMinR
(
MElement
*
const
*
el
,
int
numEl
,
double
*
minR
,
bool
*
straight
);
void
test
(
MElement
*
const
*
el
,
int
numEl
,
int
dim
)
{
std
::
vector
<
data_elementMinMax
>
save
(
_data
);
_data
.
clear
();
_computeMinMaxJandValidity
(
el
,
numEl
);
Msg
::
Info
(
"aaa"
);
Msg
::
Info
(
"aaa"
);
_computeMinIsotropy
(
dim
);
_data
=
save
;
}
private
:
void
_computeMinMaxJandValidity
(
int
dim
);
void
_computeMinMaxJandValidity
(
MElement
*
const
*
,
int
numEl
);
void
_computeMinScaledJac
(
int
dim
);
void
_computeMinIsotropy
(
int
dim
);
int
_hideWithThreshold
(
int
askedDim
,
int
whichMeasure
);
...
...
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