Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-microstructure-backup
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Klaus Böhnlein
dune-microstructure-backup
Commits
91c99a53
Commit
91c99a53
authored
3 years ago
by
Klaus Böhnlein
Browse files
Options
Downloads
Patches
Plain Diff
Add computation of MuGamma via the 2D Poisson-Type Equation
parent
d8445aca
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/microstructure/matrix_operations.hh
+15
-8
15 additions, 8 deletions
dune/microstructure/matrix_operations.hh
src/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/CMakeLists.txt
src/Compute_MuGamma.cc
+1043
-0
1043 additions, 0 deletions
src/Compute_MuGamma.cc
with
1059 additions
and
8 deletions
dune/microstructure/matrix_operations.hh
+
15
−
8
View file @
91c99a53
...
@@ -83,14 +83,21 @@ namespace MatrixOperations {
...
@@ -83,14 +83,21 @@ namespace MatrixOperations {
return
sum
;
return
sum
;
}
}
static
double
linearizedStVenantKirchhoffDensity
(
double
mu
,
double
lambda
,
MatrixRT
E1
,
MatrixRT
E2
){
// static double linearizedStVenantKirchhoffDensity(double mu, double lambda, MatrixRT E1, MatrixRT E2){ // ?? Check with Robert
E1
=
sym
(
E1
);
// E1= sym(E1);
E2
=
sym
(
E2
);
// E2 = sym(E2);
double
t1
=
scalarProduct
(
E1
,
E2
);
// double t1 = scalarProduct(E1,E2);
t1
*=
2
*
mu
;
// t1 *= 2* mu;
double
t2
=
trace
(
E1
)
*
trace
(
E2
);
// double t2 = trace(E1)*trace(E2);
t2
*=
lambda
;
// t2 *= lambda;
return
t1
+
t2
;
// return t1 + t2;
// }
static
double
linearizedStVenantKirchhoffDensity
(
double
mu
,
double
lambda
,
MatrixRT
E1
,
MatrixRT
E2
)
// CHANGED
{
auto
t1
=
2.0
*
mu
*
sym
(
E1
)
+
lambda
*
trace
(
sym
(
E1
))
*
Id
();
return
scalarProduct
(
t1
,
E2
);
}
}
// --- Generalization: Define Quadratic QuadraticForm
// --- Generalization: Define Quadratic QuadraticForm
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
0
View file @
91c99a53
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
set
(
programs Cell-Problem
set
(
programs Cell-Problem
Cell-Problem_muGamma
Cell-Problem_muGamma
Compute_MuGamma
)
)
...
...
This diff is collapsed.
Click to expand it.
src/Compute_MuGamma.cc
0 → 100644
+
1043
−
0
View file @
91c99a53
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