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
f6f2f374
Commit
f6f2f374
authored
7 years ago
by
Amaury Johnen
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
4a8921d7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Plugin/AnalyseCurvedMesh.cpp
+23
-17
23 additions, 17 deletions
Plugin/AnalyseCurvedMesh.cpp
Plugin/AnalyseCurvedMesh.h
+1
-0
1 addition, 0 deletions
Plugin/AnalyseCurvedMesh.h
with
24 additions
and
17 deletions
Plugin/AnalyseCurvedMesh.cpp
+
23
−
17
View file @
f6f2f374
...
@@ -113,8 +113,8 @@ PView* GMSH_AnalyseCurvedMeshPlugin::execute(PView *v)
...
@@ -113,8 +113,8 @@ PView* GMSH_AnalyseCurvedMeshPlugin::execute(PView *v)
bool
drawPView
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
4
].
def
);
bool
drawPView
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
4
].
def
);
bool
recompute
=
static_cast
<
bool
>
(
CurvedMeshOptions_Number
[
5
].
def
);
bool
recompute
=
static_cast
<
bool
>
(
CurvedMeshOptions_Number
[
5
].
def
);
int
askedDim
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
6
].
def
);
int
askedDim
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
6
].
def
);
_numElementToScan
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
7
].
def
);
_numElementToScan
=
static_cast
<
int
>
(
CurvedMeshOptions_Number
[
7
].
def
);
_viewOrder
=
10
;
_viewOrder
=
10
;
_elementToScan
=
NULL
;
_elementToScan
=
NULL
;
_hoElement
=
NULL
;
_hoElement
=
NULL
;
...
@@ -177,21 +177,7 @@ PView* GMSH_AnalyseCurvedMeshPlugin::execute(PView *v)
...
@@ -177,21 +177,7 @@ PView* GMSH_AnalyseCurvedMeshPlugin::execute(PView *v)
if
(
printStatS
)
_printStatIGE
();
if
(
printStatS
)
_printStatIGE
();
if
(
printStatI
)
_printStatICN
();
if
(
printStatI
)
_printStatICN
();
if
(
_hoElement
)
{
_createPViewElementToScan
();
std
::
map
<
int
,
std
::
vector
<
double
>>
dataPVelement
;
dataPVelement
[
_hoElement
->
getNum
()]
=
_jacElementToScan
;
std
::
stringstream
name
;
name
<<
"Jacobian elem "
<<
_numElementToScan
;
PView
*
view
=
new
PView
(
name
.
str
().
c_str
(),
"ElementNodeData"
,
_m
,
dataPVelement
,
0
,
1
);
const
nodalBasis
*
fs
=
BasisFactory
::
getNodalBasis
(
_hoElement
->
getTypeForMSH
());
const
polynomialBasis
*
pfs
=
dynamic_cast
<
const
polynomialBasis
*>
(
fs
);
PViewData
*
viewData
=
view
->
getData
();
viewData
->
deleteInterpolationMatrices
(
_hoElement
->
getType
());
viewData
->
setInterpolationMatrices
(
_hoElement
->
getType
(),
pfs
->
coefficients
,
pfs
->
monomials
,
pfs
->
coefficients
,
pfs
->
monomials
);
}
// Create PView
// Create PView
if
(
drawPView
)
if
(
drawPView
)
...
@@ -373,7 +359,7 @@ void GMSH_AnalyseCurvedMeshPlugin::_computeMinMaxJandValidity(int dim)
...
@@ -373,7 +359,7 @@ void GMSH_AnalyseCurvedMeshPlugin::_computeMinMaxJandValidity(int dim)
if
(
min
<
0
&&
max
<
0
)
++
cntInverted
;
if
(
min
<
0
&&
max
<
0
)
++
cntInverted
;
progress
.
next
();
progress
.
next
();
_computeJacobianToScan
(
el
,
normals
);
_computeJacobianToScan
(
el
,
entity
,
normals
);
}
}
delete
normals
;
delete
normals
;
}
}
...
@@ -629,4 +615,24 @@ void GMSH_AnalyseCurvedMeshPlugin::_addElementInEntity(MElement *element,
...
@@ -629,4 +615,24 @@ void GMSH_AnalyseCurvedMeshPlugin::_addElementInEntity(MElement *element,
}
}
}
}
void
GMSH_AnalyseCurvedMeshPlugin
::
_createPViewElementToScan
()
{
if
(
!
_hoElement
)
return
;
// Jacobian determinant
std
::
map
<
int
,
std
::
vector
<
double
>>
dataPView
;
dataPView
[
_hoElement
->
getNum
()]
=
_jacElementToScan
;
std
::
stringstream
name
;
name
<<
"Jacobian elem "
<<
_numElementToScan
;
PView
*
view
=
new
PView
(
name
.
str
().
c_str
(),
"ElementNodeData"
,
_m
,
dataPView
,
0
,
1
);
const
nodalBasis
*
fs
=
BasisFactory
::
getNodalBasis
(
_hoElement
->
getTypeForMSH
());
const
polynomialBasis
*
pfs
=
dynamic_cast
<
const
polynomialBasis
*>
(
fs
);
PViewData
*
viewData
=
view
->
getData
();
viewData
->
deleteInterpolationMatrices
(
_hoElement
->
getType
());
viewData
->
setInterpolationMatrices
(
_hoElement
->
getType
(),
pfs
->
coefficients
,
pfs
->
monomials
,
pfs
->
coefficients
,
pfs
->
monomials
);
}
#endif
#endif
This diff is collapsed.
Click to expand it.
Plugin/AnalyseCurvedMesh.h
+
1
−
0
View file @
f6f2f374
...
@@ -91,6 +91,7 @@ private :
...
@@ -91,6 +91,7 @@ private :
void
_computeJacobianToScan
(
MElement
*
,
GEntity
*
,
void
_computeJacobianToScan
(
MElement
*
,
GEntity
*
,
const
fullMatrix
<
double
>
*
normals
);
const
fullMatrix
<
double
>
*
normals
);
void
_addElementInEntity
(
MElement
*
,
GEntity
*
);
void
_addElementInEntity
(
MElement
*
,
GEntity
*
);
void
_createPViewElementToScan
();
};
};
#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