Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander, Oliver
dune-gfe
Commits
bc1cbc15
Commit
bc1cbc15
authored
10 years ago
by
Oliver Sander
Committed by
sander
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
LocalStiffness objects get the basis now, instead of GridView and LocalFiniteElement
[[Imported from SVN: r10088]]
parent
547b98c4
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
dune/gfe/cosseratenergystiffness.hh
+9
-7
9 additions, 7 deletions
dune/gfe/cosseratenergystiffness.hh
with
9 additions
and
7 deletions
dune/gfe/cosseratenergystiffness.hh
+
9
−
7
View file @
bc1cbc15
...
@@ -20,12 +20,14 @@
...
@@ -20,12 +20,14 @@
//#define QUADRATIC_MEMBRANE_ENERGY
//#define QUADRATIC_MEMBRANE_ENERGY
template
<
class
GridView
,
class
LocalFiniteElement
,
int
dim
,
class
field_type
=
double
>
template
<
class
Basis
,
int
dim
,
class
field_type
=
double
>
class
CosseratEnergyLocalStiffness
class
CosseratEnergyLocalStiffness
:
public
LocalGeodesicFEStiffness
<
GridView
,
LocalFiniteElement
,
RigidBodyMotion
<
field_type
,
dim
>
>
:
public
LocalGeodesicFEStiffness
<
Basis
,
RigidBodyMotion
<
field_type
,
dim
>
>
{
{
// grid types
// grid types
typedef
typename
GridView
::
Grid
::
ctype
DT
;
typedef
typename
Basis
::
GridView
GridView
;
typedef
typename
Basis
::
LocalView
::
Tree
::
FiniteElement
LocalFiniteElement
;
typedef
typename
GridView
::
ctype
DT
;
typedef
RigidBodyMotion
<
field_type
,
dim
>
TargetSpace
;
typedef
RigidBodyMotion
<
field_type
,
dim
>
TargetSpace
;
typedef
typename
TargetSpace
::
ctype
RT
;
typedef
typename
TargetSpace
::
ctype
RT
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Entity
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Entity
;
...
@@ -294,11 +296,11 @@ public:
...
@@ -294,11 +296,11 @@ public:
const
Dune
::
VirtualFunction
<
Dune
::
FieldVector
<
double
,
gridDim
>
,
Dune
::
FieldVector
<
double
,
3
>
>*
neumannFunction_
;
const
Dune
::
VirtualFunction
<
Dune
::
FieldVector
<
double
,
gridDim
>
,
Dune
::
FieldVector
<
double
,
3
>
>*
neumannFunction_
;
};
};
template
<
class
GridView
,
class
LocalFiniteElement
,
int
dim
,
class
field_type
>
template
<
class
Basis
,
int
dim
,
class
field_type
>
typename
CosseratEnergyLocalStiffness
<
GridView
,
LocalFiniteElement
,
dim
,
field_type
>::
RT
typename
CosseratEnergyLocalStiffness
<
Basis
,
dim
,
field_type
>::
RT
CosseratEnergyLocalStiffness
<
GridView
,
LocalFiniteElement
,
dim
,
field_type
>::
CosseratEnergyLocalStiffness
<
Basis
,
dim
,
field_type
>::
energy
(
const
Entity
&
element
,
energy
(
const
Entity
&
element
,
const
Local
FiniteElement
&
localFiniteElement
,
const
typename
Basis
::
LocalView
::
Tree
::
FiniteElement
&
localFiniteElement
,
const
std
::
vector
<
RigidBodyMotion
<
field_type
,
dim
>
>&
localSolution
)
const
const
std
::
vector
<
RigidBodyMotion
<
field_type
,
dim
>
>&
localSolution
)
const
{
{
assert
(
element
.
type
()
==
localFiniteElement
.
type
());
assert
(
element
.
type
()
==
localFiniteElement
.
type
());
...
...
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