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
e8a34116
Commit
e8a34116
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
28f704ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/MElement.cpp
+14
-12
14 additions, 12 deletions
Geo/MElement.cpp
with
14 additions
and
12 deletions
Geo/MElement.cpp
+
14
−
12
View file @
e8a34116
...
@@ -168,12 +168,13 @@ void MElement::getHessShapeFunctions(double u, double v, double w, double s[][3]
...
@@ -168,12 +168,13 @@ void MElement::getHessShapeFunctions(double u, double v, double w, double s[][3]
else
Msg
::
Error
(
"Function space not implemented for this type of element"
);
else
Msg
::
Error
(
"Function space not implemented for this type of element"
);
}
}
void
MElement
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
double
s
[][
3
][
3
][
3
],
void
MElement
::
getThirdDerivativeShapeFunctions
(
double
u
,
double
v
,
double
w
,
int
o
){
double
s
[][
3
][
3
][
3
],
int
o
)
{
const
polynomialBasis
*
fs
=
getFunctionSpace
(
o
);
const
polynomialBasis
*
fs
=
getFunctionSpace
(
o
);
if
(
fs
)
fs
->
dddf
(
u
,
v
,
w
,
s
);
if
(
fs
)
fs
->
dddf
(
u
,
v
,
w
,
s
);
else
Msg
::
Error
(
"Function space not implemented for this type of element"
);
else
Msg
::
Error
(
"Function space not implemented for this type of element"
);
}
;
}
SPoint3
MElement
::
barycenter_infty
()
SPoint3
MElement
::
barycenter_infty
()
{
{
...
@@ -487,6 +488,15 @@ void MElement::xyz2uvw(double xyz[3], double uvw[3])
...
@@ -487,6 +488,15 @@ void MElement::xyz2uvw(double xyz[3], double uvw[3])
}
}
}
}
void
MElement
::
xyzTouvw
(
fullMatrix
<
double
>
*
xu
)
{
double
_xyz
[
3
]
=
{(
*
xu
)(
0
,
0
),(
*
xu
)(
0
,
1
),(
*
xu
)(
0
,
2
)},
_uvw
[
3
];
xyz2uvw
(
_xyz
,
_uvw
);
(
*
xu
)(
1
,
0
)
=
_uvw
[
0
];
(
*
xu
)(
1
,
1
)
=
_uvw
[
1
];
(
*
xu
)(
1
,
2
)
=
_uvw
[
2
];
}
void
MElement
::
movePointFromParentSpaceToElementSpace
(
double
&
u
,
double
&
v
,
double
&
w
)
void
MElement
::
movePointFromParentSpaceToElementSpace
(
double
&
u
,
double
&
v
,
double
&
w
)
{
{
if
(
!
getParent
())
return
;
if
(
!
getParent
())
return
;
...
@@ -971,6 +981,7 @@ void MElement::writeSTL(FILE *fp, bool binary, double scalingFactor)
...
@@ -971,6 +981,7 @@ void MElement::writeSTL(FILE *fp, bool binary, double scalingFactor)
}
}
}
}
}
}
void
MElement
::
writePLY2
(
FILE
*
fp
)
void
MElement
::
writePLY2
(
FILE
*
fp
)
{
{
setVolumePositive
();
setVolumePositive
();
...
@@ -1453,12 +1464,3 @@ MElement *MElementFactory::create(int num, int type, const std::vector<int> &dat
...
@@ -1453,12 +1464,3 @@ MElement *MElementFactory::create(int num, int type, const std::vector<int> &dat
return
element
;
return
element
;
}
}
void
MElement
::
xyzTouvw
(
fullMatrix
<
double
>
*
xu
)
{
double
_xyz
[
3
]
=
{(
*
xu
)(
0
,
0
),(
*
xu
)(
0
,
1
),(
*
xu
)(
0
,
2
)},
_uvw
[
3
];
xyz2uvw
(
_xyz
,
_uvw
);
(
*
xu
)(
1
,
0
)
=
_uvw
[
0
];
(
*
xu
)(
1
,
1
)
=
_uvw
[
1
];
(
*
xu
)(
1
,
2
)
=
_uvw
[
2
];
}
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