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
3c2e0d10
Commit
3c2e0d10
authored
12 years ago
by
Éric Béchet
Browse files
Options
Downloads
Patches
Plain Diff
MSubElements now rely on base class for shapefunctions, jacobians etc...
parent
a8dd8a8f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/MSubElement.cpp
+1
-199
1 addition, 199 deletions
Geo/MSubElement.cpp
Geo/MSubElement.h
+0
-36
0 additions, 36 deletions
Geo/MSubElement.h
with
1 addition
and
235 deletions
Geo/MSubElement.cpp
+
1
−
199
View file @
3c2e0d10
...
...
@@ -15,56 +15,6 @@ MSubTetrahedron::~MSubTetrahedron()
if
(
_intpt
)
delete
[]
_intpt
;
}
const
nodalBasis
*
MSubTetrahedron
::
getFunctionSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getFunctionSpace
(
order
);
return
0
;
}
const
JacobianBasis
*
MSubTetrahedron
::
getJacobianFuncSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getJacobianFuncSpace
(
order
);
return
0
;
}
void
MSubTetrahedron
::
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
)
{
if
(
_orig
)
_orig
->
getShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTetrahedron
::
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getGradShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTetrahedron
::
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getHessShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTetrahedron
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getThirdDerivativeShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
int
MSubTetrahedron
::
getNumShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumShapeFunctions
();
return
0
;
}
int
MSubTetrahedron
::
getNumPrimaryShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumPrimaryShapeFunctions
();
return
0
;
}
MVertex
*
MSubTetrahedron
::
getShapeFunctionNode
(
int
i
)
{
if
(
_orig
)
return
_orig
->
getShapeFunctionNode
(
i
);
return
0
;
}
bool
MSubTetrahedron
::
isInside
(
double
u
,
double
v
,
double
w
)
{
if
(
!
_orig
)
return
false
;
...
...
@@ -138,56 +88,6 @@ MSubTriangle::~MSubTriangle()
if
(
_intpt
)
delete
[]
_intpt
;
}
const
nodalBasis
*
MSubTriangle
::
getFunctionSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getFunctionSpace
(
order
);
return
0
;
}
const
JacobianBasis
*
MSubTriangle
::
getJacobianFuncSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getJacobianFuncSpace
(
order
);
return
0
;
}
void
MSubTriangle
::
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
)
{
if
(
_orig
)
_orig
->
getShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTriangle
::
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getGradShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTriangle
::
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getHessShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubTriangle
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getThirdDerivativeShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
int
MSubTriangle
::
getNumShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumShapeFunctions
();
return
0
;
}
int
MSubTriangle
::
getNumPrimaryShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumPrimaryShapeFunctions
();
return
0
;
}
MVertex
*
MSubTriangle
::
getShapeFunctionNode
(
int
i
)
{
if
(
_orig
)
return
_orig
->
getShapeFunctionNode
(
i
);
return
0
;
}
bool
MSubTriangle
::
isInside
(
double
u
,
double
v
,
double
w
)
{
if
(
!
_orig
)
return
false
;
...
...
@@ -251,6 +151,7 @@ void MSubTriangle::getIntegrationPoints(int pOrder, int *npts, IntPt **pts)
*
pts
=
_intpt
;
}
// MSubLine
MSubLine
::~
MSubLine
()
...
...
@@ -258,56 +159,6 @@ MSubLine::~MSubLine()
if
(
_intpt
)
delete
[]
_intpt
;
}
const
nodalBasis
*
MSubLine
::
getFunctionSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getFunctionSpace
(
order
);
return
0
;
}
const
JacobianBasis
*
MSubLine
::
getJacobianFuncSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getJacobianFuncSpace
(
order
);
return
0
;
}
void
MSubLine
::
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
)
{
if
(
_orig
)
_orig
->
getShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubLine
::
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getGradShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubLine
::
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getHessShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubLine
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getThirdDerivativeShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
int
MSubLine
::
getNumShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumShapeFunctions
();
return
0
;
}
int
MSubLine
::
getNumPrimaryShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumPrimaryShapeFunctions
();
return
0
;
}
MVertex
*
MSubLine
::
getShapeFunctionNode
(
int
i
)
{
if
(
_orig
)
return
_orig
->
getShapeFunctionNode
(
i
);
return
0
;
}
bool
MSubLine
::
isInside
(
double
u
,
double
v
,
double
w
)
{
if
(
!
_orig
)
return
false
;
...
...
@@ -377,55 +228,6 @@ MSubPoint::~MSubPoint()
if
(
_intpt
)
delete
[]
_intpt
;
}
const
nodalBasis
*
MSubPoint
::
getFunctionSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getFunctionSpace
(
order
);
return
0
;
}
const
JacobianBasis
*
MSubPoint
::
getJacobianFuncSpace
(
int
order
)
const
{
if
(
_orig
)
return
_orig
->
getJacobianFuncSpace
(
order
);
return
0
;
}
void
MSubPoint
::
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
)
{
if
(
_orig
)
_orig
->
getShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubPoint
::
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getGradShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubPoint
::
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getHessShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
void
MSubPoint
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
)
{
if
(
_orig
)
_orig
->
getThirdDerivativeShapeFunctions
(
u
,
v
,
w
,
s
,
order
);
}
int
MSubPoint
::
getNumShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumShapeFunctions
();
return
0
;
}
int
MSubPoint
::
getNumPrimaryShapeFunctions
()
{
if
(
_orig
)
return
_orig
->
getNumPrimaryShapeFunctions
();
return
0
;
}
MVertex
*
MSubPoint
::
getShapeFunctionNode
(
int
i
)
{
if
(
_orig
)
return
_orig
->
getShapeFunctionNode
(
i
);
return
0
;
}
bool
MSubPoint
::
isInside
(
double
u
,
double
v
,
double
w
)
{
...
...
This diff is collapsed.
Click to expand it.
Geo/MSubElement.h
+
0
−
36
View file @
3c2e0d10
...
...
@@ -36,15 +36,6 @@ class MSubTetrahedron : public MTetrahedron
~
MSubTetrahedron
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_TET_SUB
;
}
virtual
const
nodalBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
JacobianBasis
*
getJacobianFuncSpace
(
int
order
=-
1
)
const
;
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
=-
1
);
virtual
void
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
=-
1
);
virtual
void
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
=-
1
);
virtual
void
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
=-
1
);
virtual
int
getNumShapeFunctions
();
virtual
int
getNumPrimaryShapeFunctions
();
virtual
MVertex
*
getShapeFunctionNode
(
int
i
);
// the parametric coordinates are the coordinates in the local parent element
virtual
bool
isInside
(
double
u
,
double
v
,
double
w
);
virtual
void
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
);
...
...
@@ -77,15 +68,6 @@ class MSubTriangle : public MTriangle
:
MTriangle
(
tri
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
~
MSubTriangle
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_TRI_SUB
;
}
virtual
const
nodalBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
JacobianBasis
*
getJacobianFuncSpace
(
int
order
=-
1
)
const
;
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
=-
1
);
virtual
void
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
=-
1
);
virtual
void
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
=-
1
);
virtual
void
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
=-
1
);
virtual
int
getNumShapeFunctions
();
virtual
int
getNumPrimaryShapeFunctions
();
virtual
MVertex
*
getShapeFunctionNode
(
int
i
);
// the parametric coordinates are the coordinates in the local parent element
virtual
bool
isInside
(
double
u
,
double
v
,
double
w
);
virtual
void
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
);
...
...
@@ -119,15 +101,6 @@ class MSubLine : public MLine
~
MSubLine
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_LIN_SUB
;
}
virtual
const
nodalBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
JacobianBasis
*
getJacobianFuncSpace
(
int
order
=-
1
)
const
;
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
=-
1
);
virtual
void
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
=-
1
);
virtual
void
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
=-
1
);
virtual
void
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
=-
1
);
virtual
int
getNumShapeFunctions
();
virtual
int
getNumPrimaryShapeFunctions
();
virtual
MVertex
*
getShapeFunctionNode
(
int
i
);
// the parametric coordinates are the coordinates in the local parent element
virtual
bool
isInside
(
double
u
,
double
v
,
double
w
);
virtual
void
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
);
...
...
@@ -160,15 +133,6 @@ class MSubPoint : public MPoint
~
MSubPoint
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_PNT_SUB
;
}
virtual
const
nodalBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
JacobianBasis
*
getJacobianFuncSpace
(
int
order
=-
1
)
const
;
virtual
void
getShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[],
int
order
=-
1
);
virtual
void
getGradShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
],
int
order
=-
1
);
virtual
void
getHessShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
],
int
order
=-
1
);
virtual
void
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
int
order
=-
1
);
virtual
int
getNumShapeFunctions
();
virtual
int
getNumPrimaryShapeFunctions
();
virtual
MVertex
*
getShapeFunctionNode
(
int
i
);
// the parametric coordinates are the coordinates in the local parent element
virtual
bool
isInside
(
double
u
,
double
v
,
double
w
);
virtual
void
getIntegrationPoints
(
int
pOrder
,
int
*
npts
,
IntPt
**
pts
);
...
...
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