From 83860fd41d01a11a20fa265e15f23e29235a8768 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Mon, 5 Sep 2016 19:28:37 +0200 Subject: [PATCH] [PL] Clarify KelvinV/M types in BMatrixPolicy. Especially point out the difference between the KelvinVector/MatrixType from ProcessLib. --- ProcessLib/Deformation/BMatrixPolicy.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ProcessLib/Deformation/BMatrixPolicy.h b/ProcessLib/Deformation/BMatrixPolicy.h index eaee10bc612..612c834eeaa 100644 --- a/ProcessLib/Deformation/BMatrixPolicy.h +++ b/ProcessLib/Deformation/BMatrixPolicy.h @@ -39,13 +39,15 @@ struct KelvinVectorDimensions<3> /// Kelvin vector type for given displacement dimension. /// \note The Eigen vector is always a fixed size vector in contrast to the -/// BMatrixPolicyType::StressVectorType. +/// BMatrixPolicyType::KelvinVectorType. template <int DisplacementDim> using KelvinVectorType = Eigen::Matrix<double, KelvinVectorDimensions<DisplacementDim>::value, 1, Eigen::ColMajor>; /// Kelvin matrix type for given displacement dimension. +/// \note The Eigen matrix is always a fixed size matrix in contrast to the +/// BMatrixPolicyType::KelvinMatrixType. template <int DisplacementDim> using KelvinMatrixType = Eigen::Matrix<double, KelvinVectorDimensions<DisplacementDim>::value, @@ -80,11 +82,13 @@ public: /// Rhs residual using NodalForceVectorType = VectorType<_number_of_dof>; - /// Sigma - using StressVectorType = VectorType<_kelvin_vector_size>; + /// This type can be different (fixed vs. dynamic size) from the + /// ProcessLib::KelvinVectorType. + using KelvinVectorType = VectorType<_kelvin_vector_size>; - /// C - using ModulusMatrixType = + /// This type can be different (fixed vs. dynamic size) from the + /// ProcessLib::KelvinMatrixType. + using KelvinMatrixType = MatrixType<_kelvin_vector_size, _kelvin_vector_size>; using BMatrixType = MatrixType<_kelvin_vector_size, _number_of_dof>; -- GitLab