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
d8dd74b9
Commit
d8dd74b9
authored
12 years ago
by
Sebastien Blaise
Browse files
Options
Downloads
Patches
Plain Diff
Added inner radius for hexahedrons
parent
c3960e41
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
Geo/MHexahedron.cpp
+13
-2
13 additions, 2 deletions
Geo/MHexahedron.cpp
Geo/MHexahedron.h
+1
-0
1 addition, 0 deletions
Geo/MHexahedron.h
with
14 additions
and
2 deletions
Geo/MHexahedron.cpp
+
13
−
2
View file @
d8dd74b9
...
...
@@ -2,12 +2,12 @@
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#include
<limits>
#include
"MHexahedron.h"
#include
"Numeric.h"
#include
"Context.h"
#include
"polynomialBasis.h"
#include
"MQuadrangle.h"
int
MHexahedron
::
getVolumeSign
()
{
double
mat
[
3
][
3
];
...
...
@@ -32,6 +32,17 @@ void MHexahedron::getIntegrationPoints(int pOrder, int *npts, IntPt **pts)
*
pts
=
getGQHPts
(
pOrder
);
}
double
MHexahedron
::
getInnerRadius
()
{
//Only for vertically aligned elements (not inclined)
double
innerRadius
=
std
::
numeric_limits
<
double
>::
max
();
for
(
int
i
=
0
;
i
<
getNumFaces
();
i
++
){
MQuadrangle
quad
(
getFace
(
i
).
getVertex
(
0
),
getFace
(
i
).
getVertex
(
1
),
getFace
(
i
).
getVertex
(
2
),
getFace
(
i
).
getVertex
(
3
));
innerRadius
=
std
::
min
(
innerRadius
,
quad
.
getInnerRadius
());
}
return
innerRadius
;
}
void
MHexahedron
::
getFaceInfo
(
const
MFace
&
face
,
int
&
ithFace
,
int
&
sign
,
int
&
rot
)
const
{
for
(
ithFace
=
0
;
ithFace
<
6
;
ithFace
++
){
...
...
This diff is collapsed.
Click to expand it.
Geo/MHexahedron.h
+
1
−
0
View file @
d8dd74b9
...
...
@@ -88,6 +88,7 @@ class MHexahedron : public MElement {
_v
[
faces_hexa
(
num
,
2
)],
_v
[
faces_hexa
(
num
,
3
)]);
}
virtual
double
getInnerRadius
();
virtual
void
getFaceInfo
(
const
MFace
&
face
,
int
&
ithFace
,
int
&
sign
,
int
&
rot
)
const
;
virtual
int
getNumFacesRep
(){
return
12
;
}
virtual
void
getFaceRep
(
int
num
,
double
*
x
,
double
*
y
,
double
*
z
,
SVector3
*
n
)
...
...
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