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
02f4fbdc
Commit
02f4fbdc
authored
13 years ago
by
Van Dung Nguyen
Browse files
Options
Downloads
Patches
Plain Diff
add third order type in functionSpace
parent
a8dd587e
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
Solver/functionSpace.h
+8
-0
8 additions, 0 deletions
Solver/functionSpace.h
with
8 additions
and
0 deletions
Solver/functionSpace.h
+
8
−
0
View file @
02f4fbdc
...
...
@@ -8,6 +8,7 @@
#include
"SVector3.h"
#include
"STensor3.h"
#include
"STensor33.h"
#include
"STensor43.h"
#include
<vector>
#include
<iterator>
...
...
@@ -23,6 +24,7 @@ template<class T> struct TensorialTraits
typedef
T
ValType
;
typedef
T
GradType
[
3
];
typedef
T
HessType
[
3
][
3
];
typedef
T
ThirdDevType
[
3
][
3
][
3
];
/* typedef SVoid DivType;
typedef SVoid CurlType;*/
};
...
...
@@ -33,6 +35,7 @@ template<> struct TensorialTraits<double>
typedef
SVector3
GradType
;
typedef
STensor3
HessType
;
typedef
double
TensProdType
;
typedef
STensor33
ThirdDevType
;
/* typedef SVoid DivType;
typedef SVoid CurlType;*/
};
...
...
@@ -43,6 +46,7 @@ template<> struct TensorialTraits<SVector3>
typedef
STensor3
GradType
;
typedef
STensor3
HessType
;
typedef
STensor3
TensProdType
;
typedef
STensor3
ThirdDevType
;
// typedef double DivType;
// typedef SVector3 CurlType;
};
...
...
@@ -73,12 +77,16 @@ class FunctionSpace : public FunctionSpaceBase
typedef
typename
TensorialTraits
<
T
>::
ValType
ValType
;
typedef
typename
TensorialTraits
<
T
>::
GradType
GradType
;
typedef
typename
TensorialTraits
<
T
>::
HessType
HessType
;
typedef
typename
TensorialTraits
<
T
>::
ThirdDevType
ThirdDevType
;
virtual
void
f
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ValType
>
&
vals
)
=
0
;
virtual
void
fuvw
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ValType
>
&
vals
)
{}
// should return to pure virtual once all is done.
virtual
void
gradf
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
GradType
>
&
grads
)
=
0
;
virtual
void
gradfuvw
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
GradType
>
&
grads
)
{}
// should return to pure virtual once all is done.
virtual
void
hessfuvw
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
HessType
>
&
hess
)
=
0
;
virtual
void
hessf
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
HessType
>
&
hess
)
{}
//need to high order fem
virtual
void
thirdDevfuvw
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ThirdDevType
>
&
third
){};
//need to high order fem
virtual
void
thirdDevf
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ThirdDevType
>
&
third
){};
//need to high order fem
virtual
int
getNumKeys
(
MElement
*
ele
)
=
0
;
// if one needs the number of dofs
virtual
void
getKeys
(
MElement
*
ele
,
std
::
vector
<
Dof
>
&
keys
)
=
0
;
};
...
...
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