GRINS-0.8.0
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy > Class Template Reference

#include <incompressible_plane_stress_hyperelasticity.h>

Inheritance diagram for GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >:
Inheritance graph
[legend]
Collaboration diagram for GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >:
Collaboration graph
[legend]

Public Member Functions

 IncompressiblePlaneStressHyperelasticity (const GetPot &input)
 
 IncompressiblePlaneStressHyperelasticity (const GetPot &input, const std::string &material)
 
virtual ~IncompressiblePlaneStressHyperelasticity ()
 
- Public Member Functions inherited from GRINS::StressStrainLaw< IncompressiblePlaneStressHyperelasticity< StrainEnergy > >
 StressStrainLaw ()
 
virtual ~StressStrainLaw ()
 
void compute_stress (unsigned int dim, const libMesh::TensorValue< libMesh::Real > &g_contra, const libMesh::TensorValue< libMesh::Real > &g_cov, const libMesh::TensorValue< libMesh::Real > &G_contra, const libMesh::TensorValue< libMesh::Real > &G_cov, libMesh::TensorValue< libMesh::Real > &stress)
 
void compute_stress_and_elasticity (unsigned int dim, const libMesh::TensorValue< libMesh::Real > &g_contra, const libMesh::TensorValue< libMesh::Real > &g_cov, const libMesh::TensorValue< libMesh::Real > &G_contra, const libMesh::TensorValue< libMesh::Real > &G_cov, libMesh::TensorValue< libMesh::Real > &stress, ElasticityTensor &C)
 
libMesh::Real compute_33_stress (const libMesh::TensorValue< libMesh::Real > &g_contra, const libMesh::TensorValue< libMesh::Real > &g_cov, const libMesh::TensorValue< libMesh::Real > &G_contra, const libMesh::TensorValue< libMesh::Real > &G_cov)
 This is primarily a helper function for the plane stress cases. More...
 

Private Member Functions

void compute_stress_imp (unsigned int dim, const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &a_cov, const libMesh::TensorValue< libMesh::Real > &A_contra, const libMesh::TensorValue< libMesh::Real > &A_cov, libMesh::TensorValue< libMesh::Real > &stress)
 
void compute_stress_and_elasticity_imp (unsigned int dim, const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &a_cov, const libMesh::TensorValue< libMesh::Real > &A_contra, const libMesh::TensorValue< libMesh::Real > &A_cov, libMesh::TensorValue< libMesh::Real > &stress, ElasticityTensor &C)
 
void compute_I1_I2 (const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &a_cov, const libMesh::TensorValue< libMesh::Real > &A_contra, const libMesh::TensorValue< libMesh::Real > &A_cov, libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real &I1, libMesh::Real &I2) const
 
void compute_stress_terms (libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real I1, libMesh::Real I2, libMesh::Real &a_term, libMesh::Real &A_term) const
 
void compute_stress_deriv_terms (libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real I1, libMesh::Real I2, const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &A_contra, libMesh::TensorValue< libMesh::Real > &daterm_dstrain, libMesh::TensorValue< libMesh::Real > &dAterm_dstrain) const
 
void compute_Acontra_deriv (const libMesh::TensorValue< libMesh::Real > &A_contra, ElasticityTensor &dAcontra_dstrain) const
 
libMesh::Real compute_33_stress_imp (const libMesh::TensorValue< libMesh::Real > &g_contra, const libMesh::TensorValue< libMesh::Real > &g_cov, const libMesh::TensorValue< libMesh::Real > &G_contra, const libMesh::TensorValue< libMesh::Real > &G_cov)
 

Private Attributes

StrainEnergy _W
 

Friends

class StressStrainLaw< IncompressiblePlaneStressHyperelasticity< StrainEnergy > >
 

Detailed Description

template<typename StrainEnergy>
class GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >

Definition at line 45 of file incompressible_plane_stress_hyperelasticity.h.

Constructor & Destructor Documentation

template<typename StrainEnergy >
GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::IncompressiblePlaneStressHyperelasticity ( const GetPot &  input)

Definition at line 37 of file incompressible_plane_stress_hyperelasticity.C.

38  : _W(input)
39  {
40  return;
41  }
template<typename StrainEnergy >
GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::IncompressiblePlaneStressHyperelasticity ( const GetPot &  input,
const std::string &  material 
)

Definition at line 44 of file incompressible_plane_stress_hyperelasticity.C.

46  : _W(input,material)
47  {
48  return;
49  }
template<typename StrainEnergy >
GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::~IncompressiblePlaneStressHyperelasticity ( )
virtual

Definition at line 52 of file incompressible_plane_stress_hyperelasticity.C.

53  {
54  return;
55  }

Member Function Documentation

template<typename StrainEnergy >
libMesh::Real GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_33_stress_imp ( const libMesh::TensorValue< libMesh::Real > &  g_contra,
const libMesh::TensorValue< libMesh::Real > &  g_cov,
const libMesh::TensorValue< libMesh::Real > &  G_contra,
const libMesh::TensorValue< libMesh::Real > &  G_cov 
)
private

Definition at line 247 of file incompressible_plane_stress_hyperelasticity.C.

251  {
252  std::cerr << "Error: compute_33_stress shouldn't be called for incompressible materials." << std::endl;
253  libmesh_error();
254  return 0.0;
255  }
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_Acontra_deriv ( const libMesh::TensorValue< libMesh::Real > &  A_contra,
ElasticityTensor dAcontra_dstrain 
) const
private

Definition at line 225 of file incompressible_plane_stress_hyperelasticity.C.

227  {
228  for( unsigned int alpha = 0; alpha < 2; alpha++ )
229  {
230  for( unsigned int beta = 0; beta < 2; beta++ )
231  {
232  for( unsigned int lambda = 0; lambda < 2; lambda++ )
233  {
234  for( unsigned int mu = 0; mu < 2; mu++ )
235  {
236  dAcontra_dstrain(alpha,beta,lambda,mu) = -( A_contra(alpha,lambda)*A_contra(beta,mu)
237  + A_contra(alpha,mu)*A_contra(beta,lambda) );
238  }
239  }
240  }
241  }
242 
243  return;
244  }
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_I1_I2 ( const libMesh::TensorValue< libMesh::Real > &  a_contra,
const libMesh::TensorValue< libMesh::Real > &  a_cov,
const libMesh::TensorValue< libMesh::Real > &  A_contra,
const libMesh::TensorValue< libMesh::Real > &  A_cov,
libMesh::Real  lambda_sq,
libMesh::Real  A_over_a,
libMesh::Real &  I1,
libMesh::Real &  I2 
) const
private

Definition at line 139 of file incompressible_plane_stress_hyperelasticity.C.

145  {
146  I1 = 0.0;
147  I2 = 0.0;
148  for( unsigned int alpha = 0; alpha < 2; alpha++ )
149  {
150  for( unsigned int beta = 0; beta < 2; beta++ )
151  {
152  I1 += a_contra(alpha,beta)*A_cov(alpha,beta);
153  I2 += a_cov(alpha,beta)*A_contra(alpha,beta);
154  }
155  }
156 
157  I1 += lambda_sq;
158  I2 += A_over_a;
159 
160  return;
161  }
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_stress_and_elasticity_imp ( unsigned int  dim,
const libMesh::TensorValue< libMesh::Real > &  a_contra,
const libMesh::TensorValue< libMesh::Real > &  a_cov,
const libMesh::TensorValue< libMesh::Real > &  A_contra,
const libMesh::TensorValue< libMesh::Real > &  A_cov,
libMesh::TensorValue< libMesh::Real > &  stress,
ElasticityTensor C 
)
private

Definition at line 90 of file incompressible_plane_stress_hyperelasticity.C.

97  {
98  // We're treating a_* and A_* as 2x2, but we're cheating to pick up lambda^2
99  libMesh::Real lambda_sq = A_cov(2,2);
100 
101  libMesh::Real A_over_a = 1.0/lambda_sq; // We're incompressible
102 
103  libMesh::Real I1, I2;
104  this->compute_I1_I2(a_contra,a_cov,A_contra,A_cov,lambda_sq,A_over_a,I1,I2);
105 
106  libMesh::Real a_term, A_term;
107  this->compute_stress_terms( lambda_sq, A_over_a, I1, I2, a_term, A_term );
108 
109  libMesh::TensorValue<libMesh::Real> daterm_dstrain, dAterm_dstrain;
110  this->compute_stress_deriv_terms( lambda_sq, A_over_a, I1, I2, a_contra, A_contra, daterm_dstrain, dAterm_dstrain );
111 
112  ElasticityTensor dAcontra_dstrain;
113  this->compute_Acontra_deriv( A_contra, dAcontra_dstrain );
114 
115  // Now compute stress
116  stress.zero();
117  for( unsigned int alpha = 0; alpha < 2; alpha++ )
118  {
119  for( unsigned int beta = 0; beta < 2; beta++ )
120  {
121  stress(alpha,beta) = a_contra(alpha,beta)*a_term + A_contra(alpha,beta)*A_term;
122 
123  for( unsigned int lambda = 0; lambda < 2; lambda++ )
124  {
125  for( unsigned int mu = 0; mu < 2; mu++ )
126  {
127  C(alpha,beta,lambda,mu) = a_contra(alpha,beta)*daterm_dstrain(lambda,mu)
128  + dAcontra_dstrain(alpha,beta,lambda,mu)*A_term
129  + A_contra(alpha,beta)*dAterm_dstrain(lambda,mu);
130  }
131  }
132  }
133  }
134 
135  return;
136  }
void compute_Acontra_deriv(const libMesh::TensorValue< libMesh::Real > &A_contra, ElasticityTensor &dAcontra_dstrain) const
void compute_stress_deriv_terms(libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real I1, libMesh::Real I2, const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &A_contra, libMesh::TensorValue< libMesh::Real > &daterm_dstrain, libMesh::TensorValue< libMesh::Real > &dAterm_dstrain) const
void compute_stress_terms(libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real I1, libMesh::Real I2, libMesh::Real &a_term, libMesh::Real &A_term) const
void compute_I1_I2(const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &a_cov, const libMesh::TensorValue< libMesh::Real > &A_contra, const libMesh::TensorValue< libMesh::Real > &A_cov, libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real &I1, libMesh::Real &I2) const
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_stress_deriv_terms ( libMesh::Real  lambda_sq,
libMesh::Real  A_over_a,
libMesh::Real  I1,
libMesh::Real  I2,
const libMesh::TensorValue< libMesh::Real > &  a_contra,
const libMesh::TensorValue< libMesh::Real > &  A_contra,
libMesh::TensorValue< libMesh::Real > &  daterm_dstrain,
libMesh::TensorValue< libMesh::Real > &  dAterm_dstrain 
) const
private

Definition at line 182 of file incompressible_plane_stress_hyperelasticity.C.

188  {
189  daterm_dstrain.zero();
190  dAterm_dstrain.zero();
191 
192  libMesh::Real dWdI1 = _W.dI1(I1,I2,1.0); // We're incompressible
193  libMesh::Real dWdI2 = _W.dI2(I1,I2,1.0);
194 
195  // A = det(A_cov) = 1/det(A_contra)
196  //libMesh::Real A = 1.0/( A_contra(0,0)*A_contra(1,1) - A_contra(0,1)*A_contra(1,0) );
197 
198  for( unsigned int alpha = 0; alpha < 2; alpha++ )
199  {
200  for( unsigned int beta = 0; beta < 2; beta++ )
201  {
202  // a_term = 2.0*(dWdI1 + dWdI2*lambda^2);
203  // => da_dstrain = 2.0*dWdI2*dlambda^2_dstrain
204  // dlambda_sq_dstrain = -2*lambda^2 A^{alpha,beta}
205  const libMesh::Real dlamsq_dstrain = -2.0*lambda_sq*A_contra(alpha,beta);
206 
207  daterm_dstrain(alpha,beta) = 2.0*dWdI2*dlamsq_dstrain;
208 
209  // A_term = 2.0*dWdI2*A_over_a + p;
210  // A = det(A_cov) ==> dA_dstrain = 2*A*A_contra(alpha,beta)
211  // p = -2.0*lambda_sq*( dWdI1 + dWdI2*(I1-lambda_sq) );
212  const libMesh::Real dI1_dstrain = 2.0*a_contra(alpha,beta) + dlamsq_dstrain;
213 
214  const libMesh::Real dp_dstrain = -2.0*dlamsq_dstrain*( dWdI1 + dWdI2*(I1-lambda_sq) )
215  -2.0*lambda_sq*dWdI2*(dI1_dstrain - dlamsq_dstrain);
216 
217  dAterm_dstrain(alpha,beta) = 2.0*dWdI2*A_over_a*(2.0*A_contra(alpha,beta)) + dp_dstrain;
218  }
219  }
220 
221  return;
222  }
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_stress_imp ( unsigned int  dim,
const libMesh::TensorValue< libMesh::Real > &  a_contra,
const libMesh::TensorValue< libMesh::Real > &  a_cov,
const libMesh::TensorValue< libMesh::Real > &  A_contra,
const libMesh::TensorValue< libMesh::Real > &  A_cov,
libMesh::TensorValue< libMesh::Real > &  stress 
)
private

Definition at line 58 of file incompressible_plane_stress_hyperelasticity.C.

64  {
65  // We're treating a_* and A_* as 2x2, but we're cheating to pick up lambda^2
66  libMesh::Real lambda_sq = A_cov(2,2);
67 
68  libMesh::Real A_over_a = 1.0/lambda_sq; // We're incompressible
69 
70  libMesh::Real I1, I2;
71  this->compute_I1_I2(a_contra,a_cov,A_contra,A_cov,lambda_sq,A_over_a,I1,I2);
72 
73  libMesh::Real a_term, A_term;
74  this->compute_stress_terms( lambda_sq, A_over_a, I1, I2, a_term, A_term );
75 
76  // Now compute stress
77  stress.zero();
78  for( unsigned int alpha = 0; alpha < 2; alpha++ )
79  {
80  for( unsigned int beta = 0; beta < 2; beta++ )
81  {
82  stress(alpha,beta) = a_contra(alpha,beta)*a_term + A_contra(alpha,beta)*A_term;
83  }
84  }
85 
86  return;
87  }
void compute_stress_terms(libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real I1, libMesh::Real I2, libMesh::Real &a_term, libMesh::Real &A_term) const
void compute_I1_I2(const libMesh::TensorValue< libMesh::Real > &a_contra, const libMesh::TensorValue< libMesh::Real > &a_cov, const libMesh::TensorValue< libMesh::Real > &A_contra, const libMesh::TensorValue< libMesh::Real > &A_cov, libMesh::Real lambda_sq, libMesh::Real A_over_a, libMesh::Real &I1, libMesh::Real &I2) const
template<typename StrainEnergy >
void GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::compute_stress_terms ( libMesh::Real  lambda_sq,
libMesh::Real  A_over_a,
libMesh::Real  I1,
libMesh::Real  I2,
libMesh::Real &  a_term,
libMesh::Real &  A_term 
) const
private

Definition at line 164 of file incompressible_plane_stress_hyperelasticity.C.

167  {
168  libMesh::Real dWdI1 = _W.dI1(I1,I2,1.0); // We're incompressible
169  libMesh::Real dWdI2 = _W.dI2(I1,I2,1.0);
170 
171  // Notation used in Green/Adkins
172  // Comes from enforcing plane stress
173  libMesh::Real p = -2.0*lambda_sq*( dWdI1 + dWdI2*(I1-lambda_sq) );
174 
175  a_term = 2.0*(dWdI1 + dWdI2*lambda_sq);
176  A_term = 2.0*dWdI2*A_over_a + p;
177 
178  return;
179  }

Friends And Related Function Documentation

template<typename StrainEnergy >
friend class StressStrainLaw< IncompressiblePlaneStressHyperelasticity< StrainEnergy > >
friend

Member Data Documentation

template<typename StrainEnergy >
StrainEnergy GRINS::IncompressiblePlaneStressHyperelasticity< StrainEnergy >::_W
private

The documentation for this class was generated from the following files:

Generated on Tue Dec 19 2017 12:47:31 for GRINS-0.8.0 by  doxygen 1.8.9.1