Skip to content
Snippets Groups Projects
Commit 91c99a53 authored by Klaus Böhnlein's avatar Klaus Böhnlein
Browse files

Add computation of MuGamma via the 2D Poisson-Type Equation

parent d8445aca
Branches
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment