Skip to content
Snippets Groups Projects
Commit 3177893e authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Compute Cosserat strain given only the gradient of the deformation, and the rotation

[[Imported from SVN: r9847]]
parent 2a7d6506
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,38 @@ namespace Dune {
}
/** \brief Compute strain from the deformation gradient and the microrotation
*
* \param R The microrotation
*/
CosseratStrain(const FieldMatrix<T,dimworld,dim>& deformationGradient,
const FieldMatrix<T,dimworld,dimworld>& R)
{
/* Compute F, the deformation gradient.
In the continuum case (domain dimension == world dimension) this is
\f$ \hat{F} = \nabla m \f$
In the case of a shell it is
\f$ \hat{F} = (\nabla m | \overline{R}_3) \f$
*/
FieldMatrix<T,dimworld,dimworld> F;
for (int i=0; i<dimworld; i++)
for (int j=0; j<dim; j++)
F[i][j] = deformationGradient[i][j];
for (int i=0; i<dimworld; i++)
for (int j=dim; j<dimworld; j++)
F[i][j] = R[i][j];
// U = R^T F
for (int i=0; i<dimworld; i++)
for (int j=0; j<dimworld; j++) {
data_[i][j] = 0;
for (int k=0; k<dimworld; k++)
data_[i][j] += R[k][i] * F[k][j];
}
}
T determinant() const
{
return data_.determinant();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment