www.mooseframework.org
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
SolidModel Class Reference

SolidModel is the base class for all this module's solid mechanics material models. More...

#include <SolidModel.h>

Inheritance diagram for SolidModel:
[legend]

Public Types

enum  CRACKING_RELEASE { CR_ABRUPT = 0, CR_EXPONENTIAL, CR_POWER, CR_UNKNOWN }
 

Public Member Functions

 SolidModel (const InputParameters &parameters)
 
virtual ~SolidModel ()
 
virtual void initStatefulProperties (unsigned n_points)
 
virtual void applyThermalStrain ()
 
virtual void applyVolumetricStrain ()
 
QBase * qrule ()
 
const Point & q_point (unsigned i) const
 
Real JxW (unsigned i) const
 

Static Public Member Functions

static void rotateSymmetricTensor (const ColumnMajorMatrix &R, const SymmTensor &T, SymmTensor &result)
 

Protected Member Functions

virtual void initQpStatefulProperties ()
 
virtual void initialSetup ()
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void computeProperties ()
 
void computeElasticityTensor ()
 
virtual bool updateElasticityTensor (SymmElasticityTensor &tensor)
 Return true if the elasticity tensor changed. More...
 
virtual void elementInit ()
 
virtual void modifyStrainIncrement ()
 Modify increment for things like thermal strain. More...
 
virtual void crackingStrainDirections ()
 Determine cracking directions. Rotate elasticity tensor. More...
 
virtual unsigned int getNumKnownCrackDirs () const
 
virtual void computeStress ()
 Compute the stress (sigma += deltaSigma) More...
 
virtual void computeEshelby ()
 
virtual void computeStrainEnergyDensity ()
 
virtual void computeThermalJvec ()
 
virtual void computeCurrentInstantaneousThermalExpansionCoefficient ()
 
virtual void crackingStressRotation ()
 
virtual Real computeCrackFactor (int i, Real &sigma, Real &flagVal)
 
virtual void finalizeStress ()
 Rotate stress to current configuration. More...
 
virtual void computePreconditioning ()
 
void applyCracksToTensor (SymmTensor &tensor, const RealVectorValue &sigma)
 
void elasticityTensor (SymmElasticityTensor *e)
 
SymmElasticityTensorelasticityTensor () const
 
const SolidMechanics::Elementelement () const
 
int delta (int i, int j) const
 
template<typename T >
MaterialProperty< T > & createProperty (const std::string &prop_name)
 
template<typename T >
const MaterialProperty< T > & getPropertyOld (const std::string &prop_name)
 
virtual void checkElasticConstants ()
 
virtual void createElasticityTensor ()
 
virtual void computeConstitutiveModelStress ()
 Compute the stress (sigma += deltaSigma) More...
 
void createConstitutiveModel (const std::string &cm_name)
 

Protected Attributes

Moose::CoordinateSystemType _coord_type
 
const std::string _appended_property_name
 
bool _bulk_modulus_set
 
bool _lambda_set
 
bool _poissons_ratio_set
 
bool _shear_modulus_set
 
bool _youngs_modulus_set
 
Real _bulk_modulus
 
Real _lambda
 
Real _poissons_ratio
 
Real _shear_modulus
 
Real _youngs_modulus
 
Function * _youngs_modulus_function
 
Function * _poissons_ratio_function
 
const CRACKING_RELEASE _cracking_release
 
Real _cracking_stress
 
const Real _cracking_residual_stress
 
const Real _cracking_beta
 
const std::string _compute_method
 
Function *const _cracking_stress_function
 
Real _cracking_alpha
 
std::vector< unsigned int > _active_crack_planes
 
const unsigned int _max_cracks
 
const Real _cracking_neg_fraction
 
const bool _has_temp
 
const VariableValue & _temperature
 
const VariableValue & _temperature_old
 
const VariableGradient & _temp_grad
 
const Real _alpha
 
Function * _alpha_function
 
PiecewiseLinear * _piecewise_linear_alpha_function
 
bool _has_stress_free_temp
 
Real _stress_free_temp
 
bool _mean_alpha_function
 
Real _ref_temp
 
std::map< SubdomainID, std::vector< MooseSharedPointer< VolumetricModel > > > _volumetric_models
 
std::set< std::string > _dep_matl_props
 
MaterialProperty< SymmTensor > & _stress
 
SymmTensor _stress_old
 
MaterialProperty< SymmTensor > & _total_strain
 
const MaterialProperty< SymmTensor > & _total_strain_old
 
MaterialProperty< SymmTensor > & _elastic_strain
 
const MaterialProperty< SymmTensor > & _elastic_strain_old
 
MaterialProperty< RealVectorValue > * _crack_flags
 
const MaterialProperty< RealVectorValue > * _crack_flags_old
 
RealVectorValue _crack_flags_local
 
MaterialProperty< RealVectorValue > * _crack_count
 
const MaterialProperty< RealVectorValue > * _crack_count_old
 
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
 
const MaterialProperty< ColumnMajorMatrix > * _crack_rotation_old
 
MaterialProperty< RealVectorValue > * _crack_strain
 
const MaterialProperty< RealVectorValue > * _crack_strain_old
 
MaterialProperty< RealVectorValue > * _crack_max_strain
 
const MaterialProperty< RealVectorValue > * _crack_max_strain_old
 
ColumnMajorMatrix _principal_strain
 
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
 
MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
 
SymmTensor _d_strain_dT
 
MaterialProperty< SymmTensor > & _d_stress_dT
 
SymmTensor _total_strain_increment
 Total strain increment, including mechanical strains and eigenstrains. More...
 
SymmTensor _mechanical_strain_increment
 Mechanical strain increment, which is the total strain increment minus eigenstrains. More...
 
SymmTensor _strain_increment
 In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment. More...
 
const bool _compute_JIntegral
 
const bool _compute_InteractionIntegral
 
MaterialProperty< Real > * _SED
 
const MaterialProperty< Real > * _SED_old
 
MaterialProperty< RankTwoTensor > * _Eshelby_tensor
 
MaterialProperty< RealVectorValue > * _J_thermal_term_vec
 
MaterialProperty< Real > * _current_instantaneous_thermal_expansion_coef
 
std::vector< SubdomainID > _block_id
 
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
 
std::set< MooseSharedPointer< ConstitutiveModel > > _models_to_free
 
bool _constitutive_active
 
bool & _step_zero
 Restartable data to check for the zeroth and first time steps for thermal calculations. More...
 
bool & _step_one
 

Private Member Functions

void computeCrackStrainAndOrientation (ColumnMajorMatrix &principal_strain)
 
SolidMechanics::ElementcreateElement ()
 

Private Attributes

const MaterialProperty< SymmTensor > & _stress_old_prop
 
SolidMechanics::Element_element
 
SymmElasticityTensor_local_elasticity_tensor
 

Detailed Description

SolidModel is the base class for all this module's solid mechanics material models.

Definition at line 34 of file SolidModel.h.

Member Enumeration Documentation

◆ CRACKING_RELEASE

Enumerator
CR_ABRUPT 
CR_EXPONENTIAL 
CR_POWER 
CR_UNKNOWN 

Definition at line 48 of file SolidModel.h.

Constructor & Destructor Documentation

◆ SolidModel()

SolidModel::SolidModel ( const InputParameters &  parameters)

Definition at line 140 of file SolidModel.C.

141  : DerivativeMaterialInterface<Material>(parameters),
142  _appended_property_name(getParam<std::string>("appended_property_name")),
143  _bulk_modulus_set(parameters.isParamValid("bulk_modulus")),
144  _lambda_set(parameters.isParamValid("lambda")),
145  _poissons_ratio_set(parameters.isParamValid("poissons_ratio")),
146  _shear_modulus_set(parameters.isParamValid("shear_modulus")),
147  _youngs_modulus_set(parameters.isParamValid("youngs_modulus")),
148  _bulk_modulus(_bulk_modulus_set ? getParam<Real>("bulk_modulus") : -1),
149  _lambda(_lambda_set ? getParam<Real>("lambda") : -1),
150  _poissons_ratio(_poissons_ratio_set ? getParam<Real>("poissons_ratio") : -1),
151  _shear_modulus(_shear_modulus_set ? getParam<Real>("shear_modulus") : -1),
152  _youngs_modulus(_youngs_modulus_set ? getParam<Real>("youngs_modulus") : -1),
154  isParamValid("youngs_modulus_function") ? &getFunction("youngs_modulus_function") : NULL),
156  isParamValid("poissons_ratio_function") ? &getFunction("poissons_ratio_function") : NULL),
157  _cracking_release(getCrackingModel(getParam<std::string>("cracking_release"))),
159  parameters.isParamValid("cracking_stress")
160  ? (getParam<Real>("cracking_stress") > 0 ? getParam<Real>("cracking_stress") : -1)
161  : -1),
162  _cracking_residual_stress(getParam<Real>("cracking_residual_stress")),
163  _cracking_beta(getParam<Real>("cracking_beta")),
164  _compute_method(getParam<MooseEnum>("compute_method")),
165  _cracking_stress_function(getParam<FunctionName>("cracking_stress_function") != ""
166  ? &getFunction("cracking_stress_function")
167  : NULL),
168  _cracking_alpha(0),
169  _active_crack_planes(3, 1),
170  _max_cracks(getParam<unsigned int>("max_cracks")),
172  isParamValid("cracking_neg_fraction") ? getParam<Real>("cracking_neg_fraction") : 0),
173  _has_temp(isCoupled("temp")),
174  _temperature(_has_temp ? coupledValue("temp") : _zero),
175  _temperature_old(_has_temp ? coupledValueOld("temp") : _zero),
176  _temp_grad(coupledGradient("temp")),
177  _alpha(parameters.isParamValid("thermal_expansion") ? getParam<Real>("thermal_expansion") : 0.),
178  _alpha_function(parameters.isParamValid("thermal_expansion_function")
179  ? &getFunction("thermal_expansion_function")
180  : NULL),
182  _has_stress_free_temp(false),
183  _stress_free_temp(0.0),
184  _ref_temp(0.0),
186  _dep_matl_props(),
187  _stress(createProperty<SymmTensor>("stress")),
189  _stress_old(0),
190  _total_strain(createProperty<SymmTensor>("total_strain")),
191  _total_strain_old(getPropertyOld<SymmTensor>("total_strain")),
192  _elastic_strain(createProperty<SymmTensor>("elastic_strain")),
193  _elastic_strain_old(getPropertyOld<SymmTensor>("elastic_strain")),
194  _crack_flags(NULL),
195  _crack_flags_old(NULL),
197  _crack_count(NULL),
198  _crack_count_old(NULL),
199  _crack_rotation(NULL),
200  _crack_rotation_old(NULL),
201  _crack_strain(NULL),
202  _crack_strain_old(NULL),
203  _crack_max_strain(NULL),
204  _crack_max_strain_old(NULL),
205  _principal_strain(3, 1),
208  _d_strain_dT(),
209  _d_stress_dT(createProperty<SymmTensor>("d_stress_dT")),
213  _compute_JIntegral(getParam<bool>("compute_JIntegral")),
214  _compute_InteractionIntegral(getParam<bool>("compute_InteractionIntegral")),
215  _SED(NULL),
216  _SED_old(NULL),
217  _Eshelby_tensor(NULL),
218  _J_thermal_term_vec(NULL),
220  _block_id(std::vector<SubdomainID>(blockIDs().begin(), blockIDs().end())),
221  _constitutive_active(false),
222  _step_zero(declareRestartableData<bool>("step_zero", true)),
223  _step_one(declareRestartableData<bool>("step_one", true)),
224  _element(NULL),
226 {
227  bool same_coord_type = true;
228 
229  for (unsigned int i = 1; i < _block_id.size(); ++i)
230  same_coord_type &=
231  (_subproblem.getCoordSystem(_block_id[0]) == _subproblem.getCoordSystem(_block_id[i]));
232  if (!same_coord_type)
233  mooseError("Material '",
234  name(),
235  "' was specified on multiple blocks that do not have the same coordinate system");
236  // Use the first block to figure out the coordinate system (the above check ensures that they are
237  // the same)
238  _coord_type = _subproblem.getCoordSystem(_block_id[0]);
240 
241  const std::vector<std::string> & dmp = getParam<std::vector<std::string>>("dep_matl_props");
242  _dep_matl_props.insert(dmp.begin(), dmp.end());
243  for (std::set<std::string>::const_iterator i = _dep_matl_props.begin();
244  i != _dep_matl_props.end();
245  ++i)
246  {
247  // Tell MOOSE that we need this MaterialProperty. This enables dependency checking.
248  getMaterialProperty<Real>(*i);
249  }
250 
252 
253  if (_cracking_stress > 0)
254  {
255  _crack_flags = &createProperty<RealVectorValue>("crack_flags");
256  _crack_flags_old = &getPropertyOld<RealVectorValue>("crack_flags");
258  {
259  _crack_count = &createProperty<RealVectorValue>("crack_count");
260  _crack_count_old = &getPropertyOld<RealVectorValue>("crack_count");
261  }
262  _crack_rotation = &createProperty<ColumnMajorMatrix>("crack_rotation");
263  _crack_rotation_old = &getPropertyOld<ColumnMajorMatrix>("crack_rotation");
264  _crack_max_strain = &createProperty<RealVectorValue>("crack_max_strain");
265  _crack_max_strain_old = &getPropertyOld<RealVectorValue>("crack_max_strain");
266  _crack_strain = &createProperty<RealVectorValue>("crack_strain");
267  _crack_strain_old = &getPropertyOld<RealVectorValue>("crack_strain");
268 
269  if (parameters.isParamValid("active_crack_planes"))
270  {
271  const std::vector<unsigned int> & planes =
272  getParam<std::vector<unsigned>>("active_crack_planes");
273  for (unsigned i(0); i < 3; ++i)
274  _active_crack_planes[i] = 0;
275 
276  for (unsigned i(0); i < planes.size(); ++i)
277  {
278  if (planes[i] > 2)
279  mooseError("Active planes must be 0, 1, or 2");
280  _active_crack_planes[planes[i]] = 1;
281  }
282  }
283  if (_cracking_residual_stress < 0 || _cracking_residual_stress > 1)
284  {
285  mooseError("cracking_residual_stress must be between 0 and 1");
286  }
287  if (isParamValid("cracking_neg_fraction") &&
288  (_cracking_neg_fraction <= 0 || _cracking_neg_fraction > 1))
289  {
290  mooseError("cracking_neg_fraction must be > zero and <= 1");
291  }
292  }
293 
294  if (parameters.isParamValid("stress_free_temperature"))
295  {
296  _has_stress_free_temp = true;
297  _stress_free_temp = getParam<Real>("stress_free_temperature");
298  if (!_has_temp)
299  mooseError("Cannot specify stress_free_temperature without coupling to temperature");
300  }
301 
302  if (parameters.isParamValid("thermal_expansion_function_type"))
303  {
304  if (!_alpha_function)
305  mooseError("thermal_expansion_function_type can only be set when thermal_expansion_function "
306  "is used");
307  MooseEnum tec = getParam<MooseEnum>("thermal_expansion_function_type");
308  if (tec == "mean")
309  _mean_alpha_function = true;
310  else if (tec == "instantaneous")
311  _mean_alpha_function = false;
312  else
313  mooseError("Invalid option for thermal_expansion_function_type");
314  }
315  else
316  _mean_alpha_function = false;
317 
318  if (parameters.isParamValid("thermal_expansion_reference_temperature"))
319  {
320  if (!_alpha_function)
321  mooseError("thermal_expansion_reference_temperature can only be set when "
322  "thermal_expansion_function is used");
324  mooseError("thermal_expansion_reference_temperature can only be set when "
325  "thermal_expansion_function_type = mean");
326  _ref_temp = getParam<Real>("thermal_expansion_reference_temperature");
327  if (!_has_temp)
328  mooseError(
329  "Cannot specify thermal_expansion_reference_temperature without coupling to temperature");
330  }
331 
333  {
334  if (!parameters.isParamValid("thermal_expansion_reference_temperature") ||
336  mooseError(
337  "Must specify both stress_free_temperature and thermal_expansion_reference_temperature "
338  "if thermal_expansion_function_type = mean");
339  }
340 
341  if (parameters.isParamValid("thermal_expansion") &&
342  parameters.isParamValid("thermal_expansion_function"))
343  mooseError("Cannot specify both thermal_expansion and thermal_expansion_function");
344 
345  if (_compute_JIntegral)
346  {
347  _SED = &declareProperty<Real>("strain_energy_density");
348  _SED_old = &getMaterialPropertyOld<Real>("strain_energy_density");
349  _Eshelby_tensor = &declareProperty<RankTwoTensor>("Eshelby_tensor");
350  _J_thermal_term_vec = &declareProperty<RealVectorValue>("J_thermal_term_vec");
352  &declareProperty<Real>("current_instantaneous_thermal_expansion_coef");
353  }
354 
356  !hasMaterialProperty<Real>("current_instantaneous_thermal_expansion_coef"))
358  &declareProperty<Real>("current_instantaneous_thermal_expansion_coef");
359 }
This class defines a basic set of capabilities any elasticity tensor should have. ...
const std::string _appended_property_name
Definition: SolidModel.h:63
std::set< std::string > _dep_matl_props
Definition: SolidModel.h:107
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
Definition: SolidModel.h:128
const MaterialProperty< RealVectorValue > * _crack_count_old
Definition: SolidModel.h:127
Real _poissons_ratio
Definition: SolidModel.h:73
const MaterialProperty< Real > * _SED_old
Definition: SolidModel.h:159
MaterialProperty< Real > * _SED
Definition: SolidModel.h:158
const bool _compute_JIntegral
Definition: SolidModel.h:154
const unsigned int _max_cracks
Definition: SolidModel.h:89
const Real _cracking_residual_stress
Definition: SolidModel.h:82
const MaterialProperty< T > & getPropertyOld(const std::string &prop_name)
Definition: SolidModel.h:239
Real _cracking_stress
Definition: SolidModel.h:81
const Real _alpha
Definition: SolidModel.h:98
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273
bool _constitutive_active
Definition: SolidModel.h:254
SymmTensor _total_strain_increment
Total strain increment, including mechanical strains and eigenstrains.
Definition: SolidModel.h:146
MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
Definition: SolidModel.h:137
MaterialProperty< RealVectorValue > * _crack_count
Definition: SolidModel.h:126
const bool _compute_InteractionIntegral
Definition: SolidModel.h:155
const VariableValue & _temperature_old
Definition: SolidModel.h:96
MaterialProperty< T > & createProperty(const std::string &prop_name)
Definition: SolidModel.h:232
Real _stress_free_temp
Definition: SolidModel.h:102
Real _bulk_modulus
Definition: SolidModel.h:71
bool _youngs_modulus_set
Definition: SolidModel.h:69
bool _poissons_ratio_set
Definition: SolidModel.h:67
SymmTensor _mechanical_strain_increment
Mechanical strain increment, which is the total strain increment minus eigenstrains.
Definition: SolidModel.h:148
Function * _youngs_modulus_function
Definition: SolidModel.h:77
const CRACKING_RELEASE _cracking_release
Definition: SolidModel.h:80
Function *const _cracking_stress_function
Definition: SolidModel.h:85
MaterialProperty< SymmTensor > & _total_strain
Definition: SolidModel.h:117
std::vector< SubdomainID > _block_id
Definition: SolidModel.h:249
const MaterialProperty< SymmTensor > & _total_strain_old
Definition: SolidModel.h:118
const MaterialProperty< SymmTensor > & _stress_old_prop
Definition: SolidModel.h:112
MaterialProperty< SymmTensor > & _d_stress_dT
Definition: SolidModel.h:143
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
Definition: SolidModel.h:136
const std::string _compute_method
Definition: SolidModel.h:84
bool & _step_zero
Restartable data to check for the zeroth and first time steps for thermal calculations.
Definition: SolidModel.h:262
const VariableGradient & _temp_grad
Definition: SolidModel.h:97
MaterialProperty< RealVectorValue > * _J_thermal_term_vec
Definition: SolidModel.h:161
const std::string name
Definition: Setup.h:22
bool & _step_one
Definition: SolidModel.h:263
bool _mean_alpha_function
Definition: SolidModel.h:103
bool _shear_modulus_set
Definition: SolidModel.h:68
const MaterialProperty< RealVectorValue > * _crack_flags_old
Definition: SolidModel.h:124
PiecewiseLinear * _piecewise_linear_alpha_function
Definition: SolidModel.h:100
Real _cracking_alpha
Definition: SolidModel.h:87
Function * _poissons_ratio_function
Definition: SolidModel.h:78
const Real _cracking_neg_fraction
Definition: SolidModel.h:90
const bool _has_temp
Definition: SolidModel.h:94
SymmTensor _d_strain_dT
Definition: SolidModel.h:140
bool _bulk_modulus_set
Definition: SolidModel.h:65
Moose::CoordinateSystemType _coord_type
Definition: SolidModel.h:61
Real _youngs_modulus
Definition: SolidModel.h:75
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
MaterialProperty< RealVectorValue > * _crack_flags
Definition: SolidModel.h:123
ColumnMajorMatrix _principal_strain
Definition: SolidModel.h:134
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
SymmTensor _stress_old
Definition: SolidModel.h:115
const MaterialProperty< ColumnMajorMatrix > * _crack_rotation_old
Definition: SolidModel.h:129
const MaterialProperty< RealVectorValue > * _crack_max_strain_old
Definition: SolidModel.h:133
const VariableValue & _temperature
Definition: SolidModel.h:95
const MaterialProperty< SymmTensor > & _elastic_strain_old
Definition: SolidModel.h:121
MaterialProperty< RealVectorValue > * _crack_max_strain
Definition: SolidModel.h:132
const MaterialProperty< RealVectorValue > * _crack_strain_old
Definition: SolidModel.h:131
bool _has_stress_free_temp
Definition: SolidModel.h:101
SolidMechanics::Element * _element
Definition: SolidModel.h:271
MaterialProperty< RealVectorValue > * _crack_strain
Definition: SolidModel.h:130
SolidMechanics::Element * createElement()
Definition: SolidModel.C:1462
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109
MaterialProperty< Real > * _current_instantaneous_thermal_expansion_coef
Definition: SolidModel.h:164
Function * _alpha_function
Definition: SolidModel.h:99
Real _ref_temp
Definition: SolidModel.h:104
bool _lambda_set
Definition: SolidModel.h:66
Real _lambda
Definition: SolidModel.h:72
std::map< SubdomainID, std::vector< MooseSharedPointer< VolumetricModel > > > _volumetric_models
Definition: SolidModel.h:106
std::vector< unsigned int > _active_crack_planes
Definition: SolidModel.h:88
Real _shear_modulus
Definition: SolidModel.h:74
MaterialProperty< RankTwoTensor > * _Eshelby_tensor
Definition: SolidModel.h:160
RealVectorValue _crack_flags_local
Definition: SolidModel.h:125
const Real _cracking_beta
Definition: SolidModel.h:83

◆ ~SolidModel()

SolidModel::~SolidModel ( )
virtual

Definition at line 363 of file SolidModel.C.

364 {
366  delete _element;
367 }
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273
SolidMechanics::Element * _element
Definition: SolidModel.h:271

Member Function Documentation

◆ applyCracksToTensor()

void SolidModel::applyCracksToTensor ( SymmTensor tensor,
const RealVectorValue &  sigma 
)
protected

Definition at line 1118 of file SolidModel.C.

Referenced by crackingStressRotation().

1119 {
1120  // Form transformation matrix R*E*R^T
1121  const ColumnMajorMatrix & R((*_crack_rotation)[_qp]);
1122 
1123  // Rotate to crack frame
1124  rotateSymmetricTensor(R.transpose(), tensor, tensor);
1125 
1126  // Reset stress if cracked
1127  if ((*_crack_flags)[_qp](0) < 1)
1128  {
1129  tensor(0, 0) = sigma(0);
1130  }
1131  if ((*_crack_flags)[_qp](1) < 1)
1132  {
1133  tensor(1, 1) = sigma(1);
1134  }
1135  if ((*_crack_flags)[_qp](2) < 1)
1136  {
1137  tensor(2, 2) = sigma(2);
1138  }
1139 
1140  // Rotate back to global frame
1141  rotateSymmetricTensor(R, tensor, tensor);
1142 }
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
Definition: SolidModel.h:128
MaterialProperty< RealVectorValue > * _crack_flags
Definition: SolidModel.h:123
static void rotateSymmetricTensor(const ColumnMajorMatrix &R, const SymmTensor &T, SymmTensor &result)
Definition: SolidModel.C:658

◆ applyThermalStrain()

void SolidModel::applyThermalStrain ( )
virtual

Definition at line 586 of file SolidModel.C.

Referenced by modifyStrainIncrement().

587 {
588  if (_has_temp && !_step_zero)
589  {
590  Real inc_thermal_strain;
591  Real d_thermal_strain_d_temp;
592 
593  Real old_temp;
595  old_temp = _stress_free_temp;
596  else
597  old_temp = _temperature_old[_qp];
598 
599  Real current_temp = _temperature[_qp];
600 
601  Real delta_t = current_temp - old_temp;
602 
603  Real alpha = _alpha;
604 
605  if (_alpha_function)
606  {
607  Point p;
608  Real alpha_current_temp = _alpha_function->value(current_temp, p);
609  Real alpha_old_temp = _alpha_function->value(old_temp, p);
610 
612  {
613  Real alpha_stress_free_temperature = _alpha_function->value(_stress_free_temp, p);
614  Real small(1e-6);
615 
616  Real numerator = alpha_current_temp * (current_temp - _ref_temp) -
617  alpha_old_temp * (old_temp - _ref_temp);
618  Real denominator = 1.0 + alpha_stress_free_temperature * (_stress_free_temp - _ref_temp);
619  if (denominator < small)
620  mooseError("Denominator too small in thermal strain calculation");
621  inc_thermal_strain = numerator / denominator;
622  d_thermal_strain_d_temp = alpha_current_temp * (current_temp - _ref_temp);
623  }
624  else
625  {
626  inc_thermal_strain = delta_t * 0.5 * (alpha_current_temp + alpha_old_temp);
627  d_thermal_strain_d_temp = alpha_current_temp;
628  }
629  }
630  else
631  {
632  inc_thermal_strain = delta_t * alpha;
633  d_thermal_strain_d_temp = alpha;
634  }
635 
636  _strain_increment.addDiag(-inc_thermal_strain);
637  _d_strain_dT.addDiag(-d_thermal_strain_d_temp);
638  }
639 }
const Real _alpha
Definition: SolidModel.h:98
const VariableValue & _temperature_old
Definition: SolidModel.h:96
Real _stress_free_temp
Definition: SolidModel.h:102
bool & _step_zero
Restartable data to check for the zeroth and first time steps for thermal calculations.
Definition: SolidModel.h:262
bool & _step_one
Definition: SolidModel.h:263
bool _mean_alpha_function
Definition: SolidModel.h:103
const bool _has_temp
Definition: SolidModel.h:94
SymmTensor _d_strain_dT
Definition: SolidModel.h:140
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
const VariableValue & _temperature
Definition: SolidModel.h:95
bool _has_stress_free_temp
Definition: SolidModel.h:101
Function * _alpha_function
Definition: SolidModel.h:99
Real _ref_temp
Definition: SolidModel.h:104
void addDiag(Real value)
Definition: SymmTensor.h:282

◆ applyVolumetricStrain()

void SolidModel::applyVolumetricStrain ( )
virtual

Definition at line 644 of file SolidModel.C.

Referenced by modifyStrainIncrement().

645 {
646  const Real V0Vold = 1 / _element->volumeRatioOld(_qp);
647  const SubdomainID current_block = _current_elem->subdomain_id();
648  const std::vector<MooseSharedPointer<VolumetricModel>> & vm(_volumetric_models[current_block]);
649  for (unsigned int i(0); i < vm.size(); ++i)
650  {
651  vm[i]->modifyStrain(_qp, V0Vold, _strain_increment, _d_strain_dT);
652  }
653 }
SymmTensor _d_strain_dT
Definition: SolidModel.h:140
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
SolidMechanics::Element * _element
Definition: SolidModel.h:271
std::map< SubdomainID, std::vector< MooseSharedPointer< VolumetricModel > > > _volumetric_models
Definition: SolidModel.h:106
virtual Real volumeRatioOld(unsigned) const
Definition: Element.h:61

◆ checkElasticConstants()

void SolidModel::checkElasticConstants ( )
protectedvirtual

Reimplemented in MacroElastic.

Definition at line 372 of file SolidModel.C.

Referenced by initialSetup().

373 {
374  int num_elastic_constants = _bulk_modulus_set + _lambda_set + _poissons_ratio_set +
376 
377  if (num_elastic_constants != 2)
378  {
379  std::string err("Exactly two elastic constants must be defined for material '");
380  err += name();
381  err += "'.";
382  mooseError(err);
383  }
384 
385  if (_bulk_modulus_set && _bulk_modulus <= 0)
386  {
387  std::string err("Bulk modulus must be positive in material '");
388  err += name();
389  err += "'.";
390  mooseError(err);
391  }
392  if (_poissons_ratio_set && (_poissons_ratio <= -1.0 || _poissons_ratio >= 0.5))
393  {
394  std::string err("Poissons ratio must be greater than -1 and less than 0.5 in material '");
395  err += name();
396  err += "'.";
397  mooseError(err);
398  }
400  {
401  std::string err("Shear modulus must not be negative in material '");
402  err += name();
403  err += "'.";
404  mooseError(err);
405  }
407  {
408  std::string err("Youngs modulus must be positive in material '");
409  err += name();
410  err += "'.";
411  mooseError(err);
412  }
413 
414  // Calculate lambda, the shear modulus, and Young's modulus
415  if (_lambda_set && _shear_modulus_set) // First and second Lame
416  {
420  }
421  else if (_lambda_set && _poissons_ratio_set)
422  {
423  _shear_modulus = (_lambda * (1.0 - 2.0 * _poissons_ratio)) / (2.0 * _poissons_ratio);
426  }
427  else if (_lambda_set && _bulk_modulus_set)
428  {
429  _shear_modulus = 3.0 * (_bulk_modulus - _lambda) / 2.0;
433  }
434  else if (_lambda_set && _youngs_modulus_set)
435  {
437  ((_youngs_modulus - 3.0 * _lambda) / 4.0) +
438  (std::sqrt((_youngs_modulus - 3.0 * _lambda) * (_youngs_modulus - 3.0 * _lambda) +
439  8.0 * _lambda * _youngs_modulus) /
440  4.0);
442  }
444  {
445  _lambda = (2.0 * _shear_modulus * _poissons_ratio) / (1.0 - 2.0 * _poissons_ratio);
448  }
450  {
451  _lambda = _bulk_modulus - 2.0 * _shear_modulus / 3.0;
455  (3 * _bulk_modulus - 2 * _shear_modulus) / (2 * (3 * _bulk_modulus + _shear_modulus));
456  }
458  {
462  }
464  {
467  (3.0 * _bulk_modulus * (1.0 - 2.0 * _poissons_ratio)) / (2.0 * (1.0 + _poissons_ratio));
470  }
471  else if (_youngs_modulus_set && _poissons_ratio_set) // Young's Modulus and Poisson's Ratio
472  {
474  ((1.0 + _poissons_ratio) * (1 - 2.0 * _poissons_ratio));
475  _shear_modulus = _youngs_modulus / (2.0 * (1.0 + _poissons_ratio));
476  }
478  {
479  _lambda = 3.0 * _bulk_modulus * (3.0 * _bulk_modulus - _youngs_modulus) /
480  (9.0 * _bulk_modulus - _youngs_modulus);
484  }
485 
486  _lambda_set = true;
487  _shear_modulus_set = true;
488  _youngs_modulus_set = true;
489  _poissons_ratio_set = true;
490 }
Real _poissons_ratio
Definition: SolidModel.h:73
Real _bulk_modulus
Definition: SolidModel.h:71
bool _youngs_modulus_set
Definition: SolidModel.h:69
bool _poissons_ratio_set
Definition: SolidModel.h:67
const std::string name
Definition: Setup.h:22
bool _shear_modulus_set
Definition: SolidModel.h:68
bool _bulk_modulus_set
Definition: SolidModel.h:65
Real _youngs_modulus
Definition: SolidModel.h:75
bool _lambda_set
Definition: SolidModel.h:66
Real _lambda
Definition: SolidModel.h:72
Real _shear_modulus
Definition: SolidModel.h:74

◆ computeConstitutiveModelStress()

void SolidModel::computeConstitutiveModelStress ( )
protectedvirtual

Compute the stress (sigma += deltaSigma)

Definition at line 836 of file SolidModel.C.

Referenced by computeProperties().

837 {
838  // Given the stretching, compute the stress increment and add it to the old stress. Also update
839  // the creep strain
840  // stress = stressOld + stressIncrement
841 
842  const SubdomainID current_block = _current_elem->subdomain_id();
843  MooseSharedPointer<ConstitutiveModel> cm = _constitutive_model[current_block];
844 
845  mooseAssert(_constitutive_active, "Logic error. ConstitutiveModel not active.");
846 
847  // Let's be a little careful and check for a non-existent
848  // ConstitutiveModel, which could be returned as a default value
849  // from std::map::operator[]
850  if (!cm)
851  mooseError("Logic error. No ConstitutiveModel for current_block=", current_block, ".");
852 
853  cm->setQp(_qp);
854  cm->computeStress(
855  *_current_elem, *elasticityTensor(), _stress_old, _strain_increment, _stress[_qp]);
856 }
bool _constitutive_active
Definition: SolidModel.h:254
SymmElasticityTensor * elasticityTensor() const
Definition: SolidModel.h:225
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
SymmTensor _stress_old
Definition: SolidModel.h:115
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109

◆ computeCrackFactor()

Real SolidModel::computeCrackFactor ( int  i,
Real &  sigma,
Real &  flagVal 
)
protectedvirtual

Definition at line 1403 of file SolidModel.C.

Referenced by crackingStressRotation().

1404 {
1406  {
1407  if ((*_crack_max_strain)[_qp](i) < (*_crack_strain)[_qp](i))
1408  {
1409  std::stringstream err;
1410  err << "Max strain less than crack strain: " << i << " " << sigma << ", "
1411  << (*_crack_max_strain)[_qp](i) << ", " << (*_crack_strain)[_qp](i) << ", "
1412  << _principal_strain(0, 0) << ", " << _principal_strain(1, 0) << ", "
1413  << _principal_strain(2, 0) << _elastic_strain[_qp] << std::endl;
1414  mooseError(err.str());
1415  }
1416  const Real crackMaxStrain((*_crack_max_strain)[_qp](i));
1417  // Compute stress that follows exponental curve
1421  (crackMaxStrain - (*_crack_strain)[_qp](i))));
1422  // Compute ratio of current stiffness to original stiffness
1423  flagVal = sigma * (*_crack_strain)[_qp](i) / (crackMaxStrain * _cracking_stress);
1424  }
1425  else
1426  {
1427  if (_cracking_residual_stress == 0)
1428  {
1429  const Real tiny(1e-16);
1430  flagVal = tiny;
1431  sigma = tiny * (*_crack_strain)[_qp](i) * _youngs_modulus;
1432  }
1433  else
1434  {
1436  flagVal = sigma / ((*_crack_max_strain)[_qp](i) * _youngs_modulus);
1437  }
1438  }
1439  if (flagVal < 0)
1440  {
1441  std::stringstream err;
1442  err << "Negative crack flag found: " << i << " " << flagVal << ", "
1443  << (*_crack_max_strain)[_qp](i) << ", " << (*_crack_strain)[_qp](i) << ", " << std::endl;
1444  mooseError(err.str());
1445  }
1446  return flagVal;
1447 }
const Real _cracking_residual_stress
Definition: SolidModel.h:82
Real _cracking_stress
Definition: SolidModel.h:81
const CRACKING_RELEASE _cracking_release
Definition: SolidModel.h:80
Real _cracking_alpha
Definition: SolidModel.h:87
Real _youngs_modulus
Definition: SolidModel.h:75
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
ColumnMajorMatrix _principal_strain
Definition: SolidModel.h:134
MaterialProperty< RealVectorValue > * _crack_max_strain
Definition: SolidModel.h:132
MaterialProperty< RealVectorValue > * _crack_strain
Definition: SolidModel.h:130
const Real _cracking_beta
Definition: SolidModel.h:83

◆ computeCrackStrainAndOrientation()

void SolidModel::computeCrackStrainAndOrientation ( ColumnMajorMatrix &  principal_strain)
private

Definition at line 1147 of file SolidModel.C.

Referenced by crackingStressRotation().

1148 {
1149  // The rotation tensor is ordered such that known dirs appear last in the list of
1150  // columns. So, if one dir is known, it corresponds with the last column in the
1151  // rotation tensor.
1152  //
1153  // This convention is based on the eigen routine returning eigen values in
1154  // ascending order.
1155  const unsigned int numKnownDirs = getNumKnownCrackDirs();
1156 
1158 
1159  (*_crack_rotation)[_qp] = (*_crack_rotation_old)[_qp];
1160 
1161  if (numKnownDirs == 0)
1162  {
1163  ColumnMajorMatrix e_vec(3, 3);
1164  _elastic_strain[_qp].columnMajorMatrix().eigen(principal_strain, e_vec);
1165  // If the elastic strain is beyond the cracking strain, save the eigen vectors as
1166  // the rotation tensor.
1167  (*_crack_rotation)[_qp] = e_vec;
1168  }
1169  else if (numKnownDirs == 1)
1170  {
1171  // This is easily the most complicated case.
1172  // 1. Rotate the elastic strain to the orientation associated with the known
1173  // crack.
1174  // 2. Extract the upper 2x2 diagonal block into a separate tensor.
1175  // 3. Run the eigen solver on the result.
1176  // 4. Update the rotation tensor to reflect the effect of the 2 eigenvectors.
1177 
1178  // 1.
1179  ColumnMajorMatrix RT((*_crack_rotation)[_qp].transpose());
1180  SymmTensor ePrime;
1181  rotateSymmetricTensor(RT, _elastic_strain[_qp], ePrime);
1182 
1183  // 2.
1184  ColumnMajorMatrix e2x2(2, 2);
1185  e2x2(0, 0) = ePrime(0, 0);
1186  e2x2(1, 0) = ePrime(1, 0);
1187  e2x2(0, 1) = ePrime(0, 1);
1188  e2x2(1, 1) = ePrime(1, 1);
1189 
1190  // 3.
1191  ColumnMajorMatrix e_val2x1(2, 1);
1192  ColumnMajorMatrix e_vec2x2(2, 2);
1193  e2x2.eigen(e_val2x1, e_vec2x2);
1194 
1195  // 4.
1196  ColumnMajorMatrix e_vec(3, 3);
1197  e_vec(0, 0) = e_vec2x2(0, 0);
1198  e_vec(1, 0) = e_vec2x2(1, 0);
1199  e_vec(2, 0) = 0;
1200  e_vec(0, 1) = e_vec2x2(0, 1);
1201  e_vec(1, 1) = e_vec2x2(1, 1);
1202  e_vec(2, 1) = 0;
1203  e_vec(2, 0) = 0;
1204  e_vec(2, 1) = 0;
1205  e_vec(2, 2) = 1;
1206  (*_crack_rotation)[_qp] = (*_crack_rotation_old)[_qp] * e_vec;
1207 
1208  principal_strain(0, 0) = e_val2x1(0, 0);
1209  principal_strain(1, 0) = e_val2x1(1, 0);
1210  principal_strain(2, 0) = ePrime(2, 2);
1211  }
1212  else if (numKnownDirs == 2 || numKnownDirs == 3)
1213  {
1214  // Rotate to cracked orientation and pick off the strains in the rotated
1215  // coordinate directions.
1216  ColumnMajorMatrix RT((*_crack_rotation)[_qp].transpose());
1217  SymmTensor ePrime;
1218  rotateSymmetricTensor(RT, _elastic_strain[_qp], ePrime);
1219  principal_strain(0, 0) = ePrime.xx();
1220  principal_strain(1, 0) = ePrime.yy();
1221  principal_strain(2, 0) = ePrime.zz();
1222  }
1223  else
1224  {
1225  mooseError("Invalid number of known crack directions");
1226  }
1227 }
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
Definition: SolidModel.h:128
virtual unsigned int getNumKnownCrackDirs() const
Definition: SolidModel.C:1450
Real yy() const
Definition: SymmTensor.h:133
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
Real xx() const
Definition: SymmTensor.h:132
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
const MaterialProperty< SymmTensor > & _elastic_strain_old
Definition: SolidModel.h:121
Real zz() const
Definition: SymmTensor.h:134
static void rotateSymmetricTensor(const ColumnMajorMatrix &R, const SymmTensor &T, SymmTensor &result)
Definition: SolidModel.C:658

◆ computeCurrentInstantaneousThermalExpansionCoefficient()

void SolidModel::computeCurrentInstantaneousThermalExpansionCoefficient ( )
protectedvirtual

Definition at line 1638 of file SolidModel.C.

Referenced by computeProperties(), and computeThermalJvec().

1639 {
1641  "_current_instantaneous_thermal_expansion_coef not initialized");
1642 
1643  (*_current_instantaneous_thermal_expansion_coef)[_qp] = 0.0;
1644 
1645  if (_alpha_function)
1646  {
1647  Point p;
1648  Real current_temp = _temperature[_qp];
1649 
1650  if (!_mean_alpha_function)
1651  {
1652  Real alpha = _alpha_function->value(current_temp, p);
1653  (*_current_instantaneous_thermal_expansion_coef)[_qp] = alpha;
1654  }
1655  else
1656  {
1657  Real small(1e-6);
1658  Real dalphabar_dT = _alpha_function->timeDerivative(current_temp, p);
1659  Real alphabar_Tsf = _alpha_function->value(_stress_free_temp, p);
1660  Real alphabar = _alpha_function->value(current_temp, p);
1661  Real numerator = dalphabar_dT * (current_temp - _ref_temp) + alphabar;
1662  Real denominator = 1.0 + alphabar_Tsf * (_stress_free_temp - _ref_temp);
1663  if (denominator < small)
1664  mooseError("Denominator too small in thermal strain calculation");
1665  (*_current_instantaneous_thermal_expansion_coef)[_qp] = numerator / denominator;
1666  }
1667  }
1668  else
1670 }
const Real _alpha
Definition: SolidModel.h:98
Real _stress_free_temp
Definition: SolidModel.h:102
bool _mean_alpha_function
Definition: SolidModel.h:103
const VariableValue & _temperature
Definition: SolidModel.h:95
MaterialProperty< Real > * _current_instantaneous_thermal_expansion_coef
Definition: SolidModel.h:164
Function * _alpha_function
Definition: SolidModel.h:99
Real _ref_temp
Definition: SolidModel.h:104

◆ computeElasticityTensor()

void SolidModel::computeElasticityTensor ( )
protected

Definition at line 860 of file SolidModel.C.

Referenced by computeProperties().

861 {
862  if (_cracking_stress_function != NULL)
863  {
864  _cracking_stress = _cracking_stress_function->value(_t, _q_point[_qp]);
865  }
866 
868 
870 
872 
874 
876 
877  if (changed || _cracking_stress > 0)
878  {
880  }
881 }
Real _cracking_stress
Definition: SolidModel.h:81
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273
virtual bool updateElasticityTensor(SymmElasticityTensor &tensor)
Return true if the elasticity tensor changed.
Definition: SolidModel.C:886
Function *const _cracking_stress_function
Definition: SolidModel.h:85
const MaterialProperty< SymmTensor > & _stress_old_prop
Definition: SolidModel.h:112
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
Definition: SolidModel.h:136
void calculate(unsigned int qp)
Public function that will be called whenever the values for this matrix need to be filled in...
SymmTensor _stress_old
Definition: SolidModel.h:115
const MaterialProperty< SymmTensor > & _elastic_strain_old
Definition: SolidModel.h:121
virtual void crackingStrainDirections()
Determine cracking directions. Rotate elasticity tensor.
Definition: SolidModel.C:1043

◆ computeEshelby()

void SolidModel::computeEshelby ( )
protectedvirtual

Definition at line 787 of file SolidModel.C.

Referenced by computeProperties().

788 {
789  mooseAssert(_SED, "_SED not initialized");
790  mooseAssert(_Eshelby_tensor, "_Eshelby_tensor not initialized");
791  // Cauchy stress (sigma) in a colum major matrix:
792  ColumnMajorMatrix stress_CMM;
793  stress_CMM(0, 0) = _stress[_qp].xx();
794  stress_CMM(0, 1) = _stress[_qp].xy();
795  stress_CMM(0, 2) = _stress[_qp].xz();
796  stress_CMM(1, 0) = _stress[_qp].xy();
797  stress_CMM(1, 1) = _stress[_qp].yy();
798  stress_CMM(1, 2) = _stress[_qp].yz();
799  stress_CMM(2, 0) = _stress[_qp].xz();
800  stress_CMM(2, 1) = _stress[_qp].yz();
801  stress_CMM(2, 2) = _stress[_qp].zz();
802 
803  // Deformation gradient (F):
804  ColumnMajorMatrix F;
806  // Displacement gradient (H):
807  ColumnMajorMatrix H(F);
808  H.addDiag(-1.0);
809  Real detF = _element->detMatrix(F);
810  ColumnMajorMatrix Finv;
811  _element->invertMatrix(F, Finv);
812  ColumnMajorMatrix FinvT;
813  FinvT = Finv.transpose();
814  ColumnMajorMatrix HT;
815  HT = H.transpose();
816 
817  // 1st Piola-Kirchoff Stress (P):
818  ColumnMajorMatrix piola;
819  piola = stress_CMM * FinvT;
820  piola *= detF;
821 
822  // HTP = H^T * P = H^T * detF * sigma * FinvT;
823  ColumnMajorMatrix HTP;
824  HTP = HT * piola;
825 
826  ColumnMajorMatrix WI;
827  WI.identity();
828  WI *= (*_SED)[_qp];
829  WI *= detF;
830  (*_Eshelby_tensor)[_qp] = WI - HTP;
831 }
MaterialProperty< Real > * _SED
Definition: SolidModel.h:158
virtual void computeDeformationGradient(unsigned int, ColumnMajorMatrix &)
Definition: Element.h:51
static Real detMatrix(const ColumnMajorMatrix &A)
Definition: Element.C:31
SolidMechanics::Element * _element
Definition: SolidModel.h:271
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109
static void invertMatrix(const ColumnMajorMatrix &A, ColumnMajorMatrix &Ainv)
Definition: Element.C:52
MaterialProperty< RankTwoTensor > * _Eshelby_tensor
Definition: SolidModel.h:160

◆ computePreconditioning()

void SolidModel::computePreconditioning ( )
protectedvirtual

Definition at line 939 of file SolidModel.C.

Referenced by computeProperties().

940 {
941  mooseAssert(_local_elasticity_tensor, "null elasticity tensor");
942 
943  // _Jacobian_mult[_qp] = *_local_elasticity_tensor;
944  // _d_stress_dT[_qp] = *_local_elasticity_tensor * _d_strain_dT;
947 }
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273
MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
Definition: SolidModel.h:137
MaterialProperty< SymmTensor > & _d_stress_dT
Definition: SolidModel.h:143
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
Definition: SolidModel.h:136
SymmTensor _d_strain_dT
Definition: SolidModel.h:140

◆ computeProperties()

void SolidModel::computeProperties ( )
protectedvirtual

Definition at line 724 of file SolidModel.C.

725 {
726  if (_t_step >= 1)
727  _step_zero = false;
728 
729  if (_t_step >= 2)
730  _step_one = false;
731 
732  elementInit();
733  _element->init();
734 
735  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
736  {
739 
742 
744 
746  computeStress();
747  else
749 
750  if (_compute_JIntegral)
752 
754 
756 
757  finalizeStress();
758 
759  if (_compute_JIntegral)
760  computeEshelby();
761 
764 
767 
769  }
770 }
const bool _compute_JIntegral
Definition: SolidModel.h:154
bool _constitutive_active
Definition: SolidModel.h:254
SymmTensor _total_strain_increment
Total strain increment, including mechanical strains and eigenstrains.
Definition: SolidModel.h:146
virtual void modifyStrainIncrement()
Modify increment for things like thermal strain.
Definition: SolidModel.C:555
const bool _compute_InteractionIntegral
Definition: SolidModel.h:155
virtual void computeStrain(const unsigned qp, const SymmTensor &total_strain_old, SymmTensor &total_strain_new, SymmTensor &strain_increment)=0
virtual void computeEshelby()
Definition: SolidModel.C:787
SymmTensor _mechanical_strain_increment
Mechanical strain increment, which is the total strain increment minus eigenstrains.
Definition: SolidModel.h:148
virtual void computePreconditioning()
Definition: SolidModel.C:939
MaterialProperty< SymmTensor > & _total_strain
Definition: SolidModel.h:117
const MaterialProperty< SymmTensor > & _total_strain_old
Definition: SolidModel.h:118
virtual void crackingStressRotation()
Definition: SolidModel.C:1232
virtual void computeCurrentInstantaneousThermalExpansionCoefficient()
Definition: SolidModel.C:1638
virtual void elementInit()
Definition: SolidModel.h:180
bool & _step_zero
Restartable data to check for the zeroth and first time steps for thermal calculations.
Definition: SolidModel.h:262
bool & _step_one
Definition: SolidModel.h:263
const bool _has_temp
Definition: SolidModel.h:94
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
virtual void computeConstitutiveModelStress()
Compute the stress (sigma += deltaSigma)
Definition: SolidModel.C:836
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152
const MaterialProperty< SymmTensor > & _elastic_strain_old
Definition: SolidModel.h:121
SolidMechanics::Element * _element
Definition: SolidModel.h:271
virtual void computeStrainEnergyDensity()
Definition: SolidModel.C:775
virtual void finalizeStress()
Rotate stress to current configuration.
Definition: SolidModel.C:927
virtual void computeThermalJvec()
Definition: SolidModel.C:1622
virtual void init()
Definition: Element.h:49
virtual void computeStress()
Compute the stress (sigma += deltaSigma)
Definition: SolidModel.h:191
void computeElasticityTensor()
Definition: SolidModel.C:860

◆ computeStrainEnergyDensity()

void SolidModel::computeStrainEnergyDensity ( )
protectedvirtual

Definition at line 775 of file SolidModel.C.

Referenced by computeProperties().

776 {
777  mooseAssert(_SED, "_SED not initialized");
778  mooseAssert(_SED_old, "_SED_old not initialized");
779  (*_SED)[_qp] = (*_SED_old)[_qp] +
780  _stress[_qp].doubleContraction(_mechanical_strain_increment) / 2 +
781  _stress_old_prop[_qp].doubleContraction(_mechanical_strain_increment) / 2;
782 }
const MaterialProperty< Real > * _SED_old
Definition: SolidModel.h:159
MaterialProperty< Real > * _SED
Definition: SolidModel.h:158
SymmTensor _mechanical_strain_increment
Mechanical strain increment, which is the total strain increment minus eigenstrains.
Definition: SolidModel.h:148
const MaterialProperty< SymmTensor > & _stress_old_prop
Definition: SolidModel.h:112
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109

◆ computeStress()

virtual void SolidModel::computeStress ( )
inlineprotectedvirtual

Compute the stress (sigma += deltaSigma)

Reimplemented in AbaqusUmatMaterial, AbaqusCreepMaterial, and PLC_LSH.

Definition at line 191 of file SolidModel.h.

Referenced by computeProperties().

192  {
193  mooseError("SolidModel::computeStress must be defined by the derived class");
194  }

◆ computeThermalJvec()

void SolidModel::computeThermalJvec ( )
protectedvirtual

Definition at line 1622 of file SolidModel.C.

Referenced by computeProperties().

1623 {
1624  mooseAssert(_J_thermal_term_vec, "_J_thermal_term_vec not initialized");
1625 
1626  Real stress_trace = _stress[_qp].xx() + _stress[_qp].yy() + _stress[_qp].zz();
1627 
1629  for (unsigned int i = 0; i < LIBMESH_DIM; ++i)
1630  {
1631  Real dthermstrain_dx =
1633  (*_J_thermal_term_vec)[_qp](i) = stress_trace * dthermstrain_dx;
1634  }
1635 }
virtual void computeCurrentInstantaneousThermalExpansionCoefficient()
Definition: SolidModel.C:1638
const VariableGradient & _temp_grad
Definition: SolidModel.h:97
MaterialProperty< RealVectorValue > * _J_thermal_term_vec
Definition: SolidModel.h:161
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109
MaterialProperty< Real > * _current_instantaneous_thermal_expansion_coef
Definition: SolidModel.h:164

◆ crackingStrainDirections()

void SolidModel::crackingStrainDirections ( )
protectedvirtual

Determine cracking directions. Rotate elasticity tensor.

Definition at line 1043 of file SolidModel.C.

Referenced by computeElasticityTensor().

1044 {
1045  bool cracking_locally_active(false);
1046  if (_cracking_stress > 0)
1047  {
1048  // Compute whether cracking has occurred
1049  (*_crack_rotation)[_qp] = (*_crack_rotation_old)[_qp];
1050 
1051  ColumnMajorMatrix RT((*_crack_rotation)[_qp].transpose());
1052  SymmTensor ePrime;
1053  rotateSymmetricTensor(RT, _elastic_strain[_qp], ePrime);
1054 
1055  for (unsigned int i(0); i < 3; ++i)
1056  {
1057  (*_crack_max_strain)[_qp](i) = (*_crack_max_strain_old)[_qp](i);
1058 
1059  if (_cracking_neg_fraction == 0 && ePrime(i, i) < 0)
1060  {
1061  _crack_flags_local(i) = 1;
1062  }
1063  else if (_cracking_neg_fraction > 0 &&
1064  (*_crack_strain)[_qp](i) * _cracking_neg_fraction > ePrime(i, i))
1065  {
1066  if (-(*_crack_strain)[_qp](i) * _cracking_neg_fraction > ePrime(i, i))
1067  {
1068  _crack_flags_local(i) = 1;
1069  }
1070  else
1071  {
1072  // s = a*e^2 + b*e + c
1073  // a = (Ec-Eo)/(4etr)
1074  // b = (Ec+Eo)/2
1075  // c = (Ec-Eo)*etr/4
1076  // etr = _cracking_neg_fraction * strain when crack occurred
1077  const Real etr = _cracking_neg_fraction * (*_crack_strain)[_qp](i);
1078  const Real Eo = _cracking_stress / (*_crack_strain)[_qp](i);
1079  const Real Ec = Eo * (*_crack_flags_old)[_qp](i);
1080  const Real a = (Ec - Eo) / (4 * etr);
1081  const Real b = (Ec + Eo) / 2;
1082  // Compute the ratio of the current transition stiffness to the original stiffness
1083  _crack_flags_local(i) = (2 * a * etr + b) / Eo;
1084  cracking_locally_active = true;
1085  }
1086  }
1087  else
1088  {
1089  _crack_flags_local(i) = (*_crack_flags_old)[_qp](i);
1090  if (_crack_flags_local(i) < 1)
1091  {
1092  cracking_locally_active = true;
1093  }
1094  }
1095  }
1096  }
1097  if (cracking_locally_active)
1098  {
1099  // Adjust the elasticity matrix for cracking. This must be used by the
1100  // constitutive law.
1101  if (_compute_method == "ShearRetention")
1103  else
1105 
1106  ColumnMajorMatrix R_9x9(9, 9);
1107  const ColumnMajorMatrix & R((*_crack_rotation)[_qp]);
1110 
1112  }
1113 }
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
Definition: SolidModel.h:128
Real _cracking_stress
Definition: SolidModel.h:81
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273
void form9x9Rotation(const ColumnMajorMatrix &R_3x3, ColumnMajorMatrix &R_9x9) const
virtual void adjustForCrackingWithShearRetention(const RealVectorValue &crack_flags)
virtual void adjustForCracking(const RealVectorValue &crack_flags)
MaterialProperty< SymmElasticityTensor > & _elasticity_tensor
Definition: SolidModel.h:136
const std::string _compute_method
Definition: SolidModel.h:84
const Real _cracking_neg_fraction
Definition: SolidModel.h:90
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
void rotateFromLocalToGlobal(const ColumnMajorMatrix &R)
const MaterialProperty< RealVectorValue > * _crack_max_strain_old
Definition: SolidModel.h:133
MaterialProperty< RealVectorValue > * _crack_strain
Definition: SolidModel.h:130
RealVectorValue _crack_flags_local
Definition: SolidModel.h:125
static void rotateSymmetricTensor(const ColumnMajorMatrix &R, const SymmTensor &T, SymmTensor &result)
Definition: SolidModel.C:658

◆ crackingStressRotation()

void SolidModel::crackingStressRotation ( )
protectedvirtual

Definition at line 1232 of file SolidModel.C.

Referenced by computeProperties().

1233 {
1234  if (_cracking_stress_function != NULL)
1235  {
1236  _cracking_stress = _cracking_stress_function->value(_t, _q_point[_qp]);
1237  }
1238 
1239  if (_cracking_stress > 0)
1240  {
1241 
1243 
1244  for (unsigned i(0); i < 3; ++i)
1245  {
1246  if (_principal_strain(i, 0) > (*_crack_max_strain_old)[_qp](i))
1247  {
1248  (*_crack_max_strain)[_qp](i) = _principal_strain(i, 0);
1249  }
1250  }
1251 
1252  // Check for new cracks.
1253  // This must be done in the crack-local coordinate frame.
1254 
1255  // Rotate stress to cracked orientation.
1256  ColumnMajorMatrix R((*_crack_rotation)[_qp]);
1257  ColumnMajorMatrix RT((*_crack_rotation)[_qp].transpose());
1258  SymmTensor sigmaPrime;
1259  rotateSymmetricTensor(RT, _stress[_qp], sigmaPrime);
1260 
1261  unsigned int num_cracks(0);
1262  for (unsigned i(0); i < 3; ++i)
1263  {
1264  _crack_flags_local(i) = 1;
1265  (*_crack_strain)[_qp](i) = (*_crack_strain_old)[_qp](i);
1266  if ((*_crack_flags_old)[_qp](i) < 1)
1267  {
1268  ++num_cracks;
1269  }
1270  }
1271 
1272  bool new_crack(false);
1273  bool cracked(false);
1274  RealVectorValue sigma;
1275  for (unsigned i(0); i < 3; ++i)
1276  {
1277  sigma(i) = sigmaPrime(i, i);
1278  (*_crack_flags)[_qp](i) = (*_crack_flags_old)[_qp](i);
1279  if (sigma(i) <= 1e-4)
1280  {
1281  if ((*_crack_flags)[_qp](i) == 1)
1282  {
1283  (*_crack_max_strain)[_qp](i) = _principal_strain(i, 0);
1284  }
1285  }
1286 
1287  // _cracked_this_step[_q_point[_qp]] = 0;
1288  Real crackFactor(1);
1289  if (_cracking_release == CR_POWER)
1290  {
1291  (*_crack_count)[_qp](i) = (*_crack_count_old)[_qp](i);
1292  }
1293  if ((_cracking_release == CR_POWER && sigma(i) > _cracking_stress &&
1294  _active_crack_planes[i] == 1
1295  // && (*_crack_count)[_qp](i) == 0
1296  )
1297  // || _cracked_this_step_count[_q_point[_qp]] > 5
1298  )
1299  {
1300  cracked = true;
1301  ++((*_crack_count)[_qp](i));
1302  // _cracked_this_step[_q_point[_qp]] = 1;
1303  // Assume Poisson's ratio drops to zero for this direction. Stiffness is then Young's
1304  // modulus.
1305  const Real stiff = _youngs_modulus_function
1306  ? _youngs_modulus_function->value(_temperature[_qp], Point())
1307  : _youngs_modulus;
1308 
1309  if ((*_crack_count_old)[_qp](i) == 0)
1310  {
1311  new_crack = true;
1312  ++num_cracks;
1313 
1314  (*_crack_strain)[_qp](i) = _cracking_stress / stiff;
1315  }
1316  // Compute stress, factor....
1317  (*_crack_flags)[_qp](i) *= 1. / 3.;
1318 
1319  if ((*_crack_max_strain)[_qp](i) < (*_crack_strain)[_qp](i))
1320  {
1321  (*_crack_max_strain)[_qp](i) = (*_crack_strain)[_qp](i);
1322  }
1323  sigma(i) = (*_crack_flags)[_qp](i) * stiff * _principal_strain(i, 0);
1324  }
1325  else if ((_cracking_release != CR_POWER && (*_crack_flags_old)[_qp](i) == 1 &&
1326  sigma(i) > _cracking_stress && num_cracks < _max_cracks &&
1327  _active_crack_planes[i] == 1)
1328  // || _cracked_this_step_count[_q_point[_qp]] > 5
1329  )
1330  {
1331  // A new crack
1332  // _cracked_this_step[_q_point[_qp]] = 1;
1333 
1334  cracked = true;
1335  new_crack = true;
1336  ++num_cracks;
1337 
1338  // Assume Poisson's ratio drops to zero for this direction. Stiffness is then Young's
1339  // modulus.
1340  const Real stiff = _youngs_modulus_function
1341  ? _youngs_modulus_function->value(_temperature[_qp], Point())
1342  : _youngs_modulus;
1343 
1344  (*_crack_strain)[_qp](i) = _cracking_stress / stiff;
1345  if ((*_crack_max_strain)[_qp](i) < (*_crack_strain)[_qp](i))
1346  {
1347  (*_crack_max_strain)[_qp](i) = (*_crack_strain)[_qp](i);
1348  }
1349 
1350  crackFactor = computeCrackFactor(i, sigma(i), (*_crack_flags)[_qp](i));
1351 
1352  (*_crack_flags)[_qp](i) = crackFactor;
1353  _crack_flags_local(i) = crackFactor;
1354 
1355  // May want to set the old value. This may help with the nonlinear solve
1356  // since the stress cannot bounce between just below the critical stress and
1357  // effectively zero. However, this may set allow cracking prematurely.
1358  // (*_crack_flags_old)[_qp](i) = crackFactor;
1359  // (*_crack_strain_old)[_qp](i) = _principal_strain(i,0);
1360  }
1361  else if (_cracking_release != CR_POWER && (*_crack_flags_old)[_qp](i) < 1 &&
1362  std::abs(_principal_strain(i, 0) - (*_crack_max_strain)[_qp](i)) < 1e-10)
1363  {
1364  // Previously cracked,
1365  // Crack opening
1366  cracked = true;
1367  crackFactor = computeCrackFactor(i, sigma(i), (*_crack_flags)[_qp](i));
1368  (*_crack_flags)[_qp](i) = crackFactor;
1369  _crack_flags_local(i) = crackFactor;
1370  }
1371  else if (_cracking_neg_fraction > 0 &&
1374  {
1375  // s = a*e^2 + b*e + c
1376  // a = (Ec-Eo)/(4etr)
1377  // b = (Ec+Eo)/2
1378  // c = (Ec-Eo)*etr/4
1379  // etr = _cracking_neg_fraction * strain when crack occurred
1380  cracked = true;
1381  const Real etr = _cracking_neg_fraction * (*_crack_strain)[_qp](i);
1382  const Real Eo = _cracking_stress / (*_crack_strain)[_qp](i);
1383  const Real Ec = Eo * (*_crack_flags_old)[_qp](i);
1384  const Real a = (Ec - Eo) / (4 * etr);
1385  const Real b = (Ec + Eo) / 2;
1386  const Real c = (Ec - Eo) * etr / 4;
1387  sigma(i) = (a * _principal_strain(i, 0) + b) * _principal_strain(i, 0) + c;
1388  }
1389  }
1390 
1391  if (!new_crack)
1392  {
1393  (*_crack_rotation)[_qp] = (*_crack_rotation_old)[_qp];
1394  }
1395  if (cracked)
1396  {
1397  applyCracksToTensor(_stress[_qp], sigma);
1398  }
1399  }
1400 }
MaterialProperty< ColumnMajorMatrix > * _crack_rotation
Definition: SolidModel.h:128
const MaterialProperty< RealVectorValue > * _crack_count_old
Definition: SolidModel.h:127
const unsigned int _max_cracks
Definition: SolidModel.h:89
Real _cracking_stress
Definition: SolidModel.h:81
void applyCracksToTensor(SymmTensor &tensor, const RealVectorValue &sigma)
Definition: SolidModel.C:1118
virtual Real computeCrackFactor(int i, Real &sigma, Real &flagVal)
Definition: SolidModel.C:1403
Function * _youngs_modulus_function
Definition: SolidModel.h:77
const CRACKING_RELEASE _cracking_release
Definition: SolidModel.h:80
Function *const _cracking_stress_function
Definition: SolidModel.h:85
const MaterialProperty< RealVectorValue > * _crack_flags_old
Definition: SolidModel.h:124
void computeCrackStrainAndOrientation(ColumnMajorMatrix &principal_strain)
Definition: SolidModel.C:1147
const Real _cracking_neg_fraction
Definition: SolidModel.h:90
Real _youngs_modulus
Definition: SolidModel.h:75
MaterialProperty< RealVectorValue > * _crack_flags
Definition: SolidModel.h:123
ColumnMajorMatrix _principal_strain
Definition: SolidModel.h:134
const MaterialProperty< RealVectorValue > * _crack_max_strain_old
Definition: SolidModel.h:133
const VariableValue & _temperature
Definition: SolidModel.h:95
MaterialProperty< RealVectorValue > * _crack_max_strain
Definition: SolidModel.h:132
const MaterialProperty< RealVectorValue > * _crack_strain_old
Definition: SolidModel.h:131
MaterialProperty< RealVectorValue > * _crack_strain
Definition: SolidModel.h:130
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109
std::vector< unsigned int > _active_crack_planes
Definition: SolidModel.h:88
RealVectorValue _crack_flags_local
Definition: SolidModel.h:125
static void rotateSymmetricTensor(const ColumnMajorMatrix &R, const SymmTensor &T, SymmTensor &result)
Definition: SolidModel.C:658

◆ createConstitutiveModel()

void SolidModel::createConstitutiveModel ( const std::string &  cm_name)
protected

Definition at line 1586 of file SolidModel.C.

Referenced by CLSHPlasticMaterial::CLSHPlasticMaterial(), Elastic::Elastic(), LinearStrainHardening::LinearStrainHardening(), and PowerLawCreep::PowerLawCreep().

1587 {
1588 
1589  Factory & factory = _app.getFactory();
1590  InputParameters params = factory.getValidParams(cm_name);
1591 
1592  params += parameters();
1593  MooseSharedPointer<ConstitutiveModel> cm =
1594  factory.create<ConstitutiveModel>(cm_name, name() + "Model", params, _tid);
1595 
1596  _models_to_free.insert(
1597  cm); // Keep track of the dynamic memory that is created internally to this object
1598 
1599  _constitutive_active = true;
1600  for (unsigned i(0); i < _block_id.size(); ++i)
1601  {
1602  _constitutive_model[_block_id[i]] = cm;
1603  }
1604 }
bool _constitutive_active
Definition: SolidModel.h:254
std::vector< SubdomainID > _block_id
Definition: SolidModel.h:249
const std::string name
Definition: Setup.h:22
std::set< MooseSharedPointer< ConstitutiveModel > > _models_to_free
Definition: SolidModel.h:253
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251

◆ createElasticityTensor()

void SolidModel::createElasticityTensor ( )
protectedvirtual

Reimplemented in MacroElastic.

Definition at line 495 of file SolidModel.C.

Referenced by initialSetup().

496 {
497  bool constant(true);
498 
501  {
502  constant = false;
503  }
504 
506  mooseAssert(_youngs_modulus_set, "Internal error: Youngs modulus not set");
507  mooseAssert(_poissons_ratio_set, "Internal error: Poissons ratio not set");
510  iso->calculate(0);
511  elasticityTensor(iso);
512 }
Real _poissons_ratio
Definition: SolidModel.h:73
Real _cracking_stress
Definition: SolidModel.h:81
SymmElasticityTensor * elasticityTensor() const
Definition: SolidModel.h:225
bool _youngs_modulus_set
Definition: SolidModel.h:69
bool _poissons_ratio_set
Definition: SolidModel.h:67
Function * _youngs_modulus_function
Definition: SolidModel.h:77
Function *const _cracking_stress_function
Definition: SolidModel.h:85
Function * _poissons_ratio_function
Definition: SolidModel.h:78
void calculate(unsigned int qp)
Public function that will be called whenever the values for this matrix need to be filled in...
Real _youngs_modulus
Definition: SolidModel.h:75
void setYoungsModulus(const Real E)
Set the Young&#39;s Modulus.
Defines an Isotropic Elasticity Tensor.
void setPoissonsRatio(const Real nu)
Set Poissons Ratio.

◆ createElement()

SolidMechanics::Element * SolidModel::createElement ( )
private

Definition at line 1462 of file SolidModel.C.

Referenced by SolidModel().

1463 {
1464  std::string mat_name = name();
1465  InputParameters parameters = emptyInputParameters();
1466  parameters += this->parameters();
1467 
1469 
1470  std::string formulation = getParam<MooseEnum>("formulation");
1471  std::transform(formulation.begin(), formulation.end(), formulation.begin(), ::tolower);
1472  if (formulation == "nonlinear3d")
1473  {
1474  if (!isCoupled("disp_x") || !isCoupled("disp_y") || !isCoupled("disp_z"))
1475  mooseError("Nonlinear3D requires all three displacements");
1476 
1477  if (isCoupled("disp_r"))
1478  mooseError("Linear must not define disp_r");
1479 
1480  if (_coord_type == Moose::COORD_RZ)
1481  mooseError("Nonlinear3D formulation requested for coord_type = RZ problem");
1482 
1483  element = new SolidMechanics::Nonlinear3D(*this, mat_name, parameters);
1484  }
1485  else if (formulation == "nonlinearrz")
1486  {
1487  if (!isCoupled("disp_r") || !isCoupled("disp_z"))
1488  mooseError("NonlinearRZ must define disp_r and disp_z");
1489 
1490  element = new SolidMechanics::NonlinearRZ(*this, mat_name, parameters);
1491  }
1492  else if (formulation == "axisymmetricrz")
1493  {
1494  if (!isCoupled("disp_r") || !isCoupled("disp_z"))
1495  mooseError("AxisymmetricRZ must define disp_r and disp_z");
1496  element = new SolidMechanics::AxisymmetricRZ(*this, mat_name, parameters);
1497  }
1498  else if (formulation == "sphericalr")
1499  {
1500  if (!isCoupled("disp_r"))
1501  mooseError("SphericalR must define disp_r");
1502  element = new SolidMechanics::SphericalR(*this, mat_name, parameters);
1503  }
1504  else if (formulation == "planestrain")
1505  {
1506  if (!isCoupled("disp_x") || !isCoupled("disp_y"))
1507  mooseError("PlaneStrain must define disp_x and disp_y");
1508  element = new SolidMechanics::PlaneStrain(*this, mat_name, parameters);
1509  }
1510  else if (formulation == "nonlinearplanestrain")
1511  {
1512  if (!isCoupled("disp_x") || !isCoupled("disp_y"))
1513  mooseError("NonlinearPlaneStrain must define disp_x and disp_y");
1514  element = new SolidMechanics::NonlinearPlaneStrain(*this, mat_name, parameters);
1515  }
1516  else if (formulation == "linear")
1517  {
1518  if (isCoupled("disp_r"))
1519  mooseError("Linear must not define disp_r");
1520  if (_coord_type == Moose::COORD_RZ)
1521  mooseError("Linear formulation requested for coord_type = RZ problem");
1522  element = new SolidMechanics::Linear(*this, mat_name, parameters);
1523  }
1524  else if (formulation != "")
1525  mooseError("Unknown formulation: " + formulation);
1526 
1527  if (!element && _coord_type == Moose::COORD_RZ)
1528  {
1529  if (!isCoupled("disp_r") || !isCoupled("disp_z"))
1530  {
1531  std::string err(name());
1532  err += ": RZ coord sys requires disp_r and disp_z for AxisymmetricRZ formulation";
1533  mooseError(err);
1534  }
1535  element = new SolidMechanics::AxisymmetricRZ(*this, mat_name, parameters);
1536  }
1537  else if (!element && _coord_type == Moose::COORD_RSPHERICAL)
1538  {
1539  if (!isCoupled("disp_r"))
1540  {
1541  std::string err(name());
1542  err += ": RSPHERICAL coord sys requires disp_r for SphericalR formulation";
1543  mooseError(err);
1544  }
1545  element = new SolidMechanics::SphericalR(*this, mat_name, parameters);
1546  }
1547 
1548  if (!element)
1549  {
1550  if (isCoupled("disp_x") && isCoupled("disp_y") && isCoupled("disp_z"))
1551  {
1552  if (isCoupled("disp_r"))
1553  mooseError("Error with displacement specification in material " + mat_name);
1554  element = new SolidMechanics::Nonlinear3D(*this, mat_name, parameters);
1555  }
1556  else if (isCoupled("disp_x") && isCoupled("disp_y"))
1557  {
1558  if (isCoupled("disp_r"))
1559  mooseError("Error with displacement specification in material " + mat_name);
1560  element = new SolidMechanics::PlaneStrain(*this, mat_name, parameters);
1561  }
1562  else if (isCoupled("disp_r") && isCoupled("disp_z"))
1563  {
1564  if (_coord_type != Moose::COORD_RZ)
1565  mooseError("RZ coord system not specified, but disp_r and disp_z are");
1566  element = new SolidMechanics::AxisymmetricRZ(*this, mat_name, parameters);
1567  }
1568  else if (isCoupled("disp_r"))
1569  {
1570  if (_coord_type != Moose::COORD_RSPHERICAL)
1571  mooseError("RSPHERICAL coord system not specified, but disp_r is");
1572  element = new SolidMechanics::SphericalR(*this, mat_name, parameters);
1573  }
1574  else if (isCoupled("disp_x"))
1575  element = new SolidMechanics::Linear(*this, mat_name, parameters);
1576  else
1577  mooseError("Unable to determine formulation for material " + mat_name);
1578  }
1579 
1580  mooseAssert(element, "No Element created for material " + mat_name);
1581 
1582  return element;
1583 }
Element is the base class for all of this module&#39;s solid mechanics element formulations.
Definition: Element.h:26
Nonlinear3D is the base class for all 3D nonlinear solid mechanics material models.
Definition: Nonlinear3D.h:25
const SolidMechanics::Element * element() const
Definition: SolidModel.h:227
const std::string name
Definition: Setup.h:22
Moose::CoordinateSystemType _coord_type
Definition: SolidModel.h:61
NonlinearPlaneStrain is a class for large deformation plane strain.
NonlinearRZ is the base class for all RZ nonlinear solid mechanics material models.
Definition: NonlinearRZ.h:21

◆ createProperty()

template<typename T >
MaterialProperty<T>& SolidModel::createProperty ( const std::string &  prop_name)
inlineprotected

Definition at line 232 of file SolidModel.h.

233  {
234  std::string name(prop_name + _appended_property_name);
235  return declareProperty<T>(name);
236  }
const std::string _appended_property_name
Definition: SolidModel.h:63
const std::string name
Definition: Setup.h:22

◆ delta()

int SolidModel::delta ( int  i,
int  j 
) const
inlineprotected

Definition at line 229 of file SolidModel.h.

229 { return i == j; }

◆ elasticityTensor() [1/2]

void SolidModel::elasticityTensor ( SymmElasticityTensor e)
protected

Definition at line 546 of file SolidModel.C.

547 {
550 }
SymmElasticityTensor * _local_elasticity_tensor
Definition: SolidModel.h:273

◆ elasticityTensor() [2/2]

SymmElasticityTensor* SolidModel::elasticityTensor ( ) const
inlineprotected

◆ element()

const SolidMechanics::Element* SolidModel::element ( ) const
inlineprotected

Definition at line 227 of file SolidModel.h.

Referenced by createElement().

227 { return _element; }
SolidMechanics::Element * _element
Definition: SolidModel.h:271

◆ elementInit()

virtual void SolidModel::elementInit ( )
inlineprotectedvirtual

Definition at line 180 of file SolidModel.h.

Referenced by computeProperties().

180 {}

◆ finalizeStress()

void SolidModel::finalizeStress ( )
protectedvirtual

Rotate stress to current configuration.

Definition at line 927 of file SolidModel.C.

Referenced by computeProperties().

928 {
929  std::vector<SymmTensor *> t(3);
930  t[0] = &_elastic_strain[_qp];
931  t[1] = &_total_strain[_qp];
932  t[2] = &_stress[_qp];
934 }
virtual void finalizeStress(std::vector< SymmTensor *> &)
Rotate stress to current configuration.
Definition: Element.h:64
MaterialProperty< SymmTensor > & _total_strain
Definition: SolidModel.h:117
MaterialProperty< SymmTensor > & _elastic_strain
Definition: SolidModel.h:120
SolidMechanics::Element * _element
Definition: SolidModel.h:271
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109

◆ getNumKnownCrackDirs()

unsigned int SolidModel::getNumKnownCrackDirs ( ) const
protectedvirtual

Definition at line 1450 of file SolidModel.C.

Referenced by computeCrackStrainAndOrientation().

1451 {
1452  const unsigned fromElement = _element->getNumKnownCrackDirs();
1453  unsigned int retVal(0);
1454  for (unsigned int i(0); i < 3 - fromElement; ++i)
1455  {
1456  retVal += ((*_crack_flags_old)[_qp](i) < 1);
1457  }
1458  return retVal + fromElement;
1459 }
virtual unsigned int getNumKnownCrackDirs() const
Definition: Element.h:66
SolidMechanics::Element * _element
Definition: SolidModel.h:271

◆ getPropertyOld()

template<typename T >
const MaterialProperty<T>& SolidModel::getPropertyOld ( const std::string &  prop_name)
inlineprotected

Definition at line 239 of file SolidModel.h.

240  {
241  std::string name(prop_name + _appended_property_name);
242  return getMaterialPropertyOld<T>(name);
243  }
const std::string _appended_property_name
Definition: SolidModel.h:63
const std::string name
Definition: Setup.h:22

◆ initialSetup()

void SolidModel::initialSetup ( )
protectedvirtual

Definition at line 952 of file SolidModel.C.

953 {
954 
956 
958 
959  // Load in the volumetric models and constitutive models
960  bool set_constitutive_active = false;
961  for (unsigned i(0); i < _block_id.size(); ++i)
962  {
963 
964  // const std::vector<Material*> * mats_p;
965  std::vector<MooseSharedPointer<Material>> const * mats_p;
966  std::string suffix;
967  if (_bnd)
968  {
969  mats_p = &_fe_problem.getMaterialWarehouse()[Moose::FACE_MATERIAL_DATA].getActiveBlockObjects(
970  _block_id[i], _tid);
971  suffix = "_face";
972  }
973  else
974  mats_p = &_fe_problem.getMaterialWarehouse().getActiveBlockObjects(_block_id[i], _tid);
975 
976  const std::vector<MooseSharedPointer<Material>> & mats = *mats_p;
977 
978  for (unsigned int j = 0; j < mats.size(); ++j)
979  {
980  MooseSharedPointer<VolumetricModel> vm =
981  MooseSharedNamespace::dynamic_pointer_cast<VolumetricModel>(mats[j]);
982  if (vm)
983  {
984  const std::vector<std::string> & dep_matl_props = vm->getDependentMaterialProperties();
985  for (unsigned k = 0; k < dep_matl_props.size(); ++k)
986  {
987  if ("" != dep_matl_props[k] &&
988  _dep_matl_props.find(dep_matl_props[k]) == _dep_matl_props.end())
989  {
990  mooseError("A VolumetricModel depends on " + dep_matl_props[k] +
991  ", but that material property was not given in the dep_matl_props line.");
992  }
993  }
994  _volumetric_models[_block_id[i]].push_back(vm);
995  }
996  }
997 
998  for (std::map<SubdomainID, MooseSharedPointer<ConstitutiveModel>>::iterator iter =
999  _constitutive_model.begin();
1000  iter != _constitutive_model.end();
1001  ++iter)
1002  {
1003  iter->second->initialSetup();
1004  }
1005 
1006  if (isParamValid("constitutive_model") && !_constitutive_active)
1007  {
1008  // User-defined name of the constitutive model (a Material object)
1009  std::string constitutive_model = getParam<std::string>("constitutive_model") + suffix;
1010 
1011  for (unsigned int j = 0; j < mats.size(); ++j)
1012  {
1013  MooseSharedPointer<ConstitutiveModel> cm =
1014  MooseSharedNamespace::dynamic_pointer_cast<ConstitutiveModel>(mats[j]);
1015 
1016  if (cm && cm->name() == constitutive_model)
1017  {
1018  _constitutive_model[_block_id[i]] = cm;
1019  set_constitutive_active = true;
1020  break;
1021  }
1022  }
1023 
1024  if (!set_constitutive_active)
1025  mooseError("Unable to find constitutive model " + constitutive_model);
1026  }
1027  }
1028  if (set_constitutive_active)
1029  _constitutive_active = true;
1030 
1032  {
1033  // Make sure that timeDerivative is supported for _alpha_function. If not, it will error out.
1034  Point dummy_point;
1035  Real dummy_temp = 0;
1036  _alpha_function->timeDerivative(dummy_temp, dummy_point);
1037  }
1038 }
std::set< std::string > _dep_matl_props
Definition: SolidModel.h:107
const bool _compute_JIntegral
Definition: SolidModel.h:154
bool _constitutive_active
Definition: SolidModel.h:254
virtual void checkElasticConstants()
Definition: SolidModel.C:372
virtual void createElasticityTensor()
Definition: SolidModel.C:495
std::vector< SubdomainID > _block_id
Definition: SolidModel.h:249
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251
Function * _alpha_function
Definition: SolidModel.h:99
virtual std::vector< std::string > getDependentMaterialProperties() const
std::map< SubdomainID, std::vector< MooseSharedPointer< VolumetricModel > > > _volumetric_models
Definition: SolidModel.h:106

◆ initQpStatefulProperties()

void SolidModel::initQpStatefulProperties ( )
protectedvirtual

Reimplemented in AbaqusUmatMaterial, and PLC_LSH.

Definition at line 691 of file SolidModel.C.

Referenced by PLC_LSH::initQpStatefulProperties(), and initStatefulProperties().

692 {
693  if (isParamValid("initial_stress"))
694  {
695  const std::vector<Real> & s = getParam<std::vector<Real>>("initial_stress");
696  if (6 != s.size())
697  {
698  mooseError("initial_stress must give six values");
699  }
700  _stress[_qp].fillFromInputVector(s);
701  }
702 
703  if (_cracking_stress_function != NULL)
704  {
705  _cracking_stress = _cracking_stress_function->value(_t, _q_point[_qp]);
706  }
707  if (_cracking_stress > 0)
708  {
709  (*_crack_flags)[_qp](0) = (*_crack_flags)[_qp](1) = (*_crack_flags)[_qp](2) = 1;
710  if (_crack_count)
711  {
712  (*_crack_count)[_qp](0) = (*_crack_count)[_qp](1) = (*_crack_count)[_qp](2) = 0;
713  }
714 
715  (*_crack_rotation)[_qp].identity();
716  }
717  if (_SED)
718  (*_SED)[_qp] = 0;
719 }
MaterialProperty< Real > * _SED
Definition: SolidModel.h:158
Real _cracking_stress
Definition: SolidModel.h:81
MaterialProperty< RealVectorValue > * _crack_count
Definition: SolidModel.h:126
Function *const _cracking_stress_function
Definition: SolidModel.h:85
MaterialProperty< RealVectorValue > * _crack_flags
Definition: SolidModel.h:123
MaterialProperty< SymmTensor > & _stress
Definition: SolidModel.h:109

◆ initStatefulProperties()

void SolidModel::initStatefulProperties ( unsigned  n_points)
virtual

Reimplemented in AbaqusCreepMaterial.

Definition at line 1607 of file SolidModel.C.

1608 {
1609  for (_qp = 0; _qp < n_points; ++_qp)
1610  {
1612  }
1614  {
1615  const SubdomainID current_block = _current_elem->subdomain_id();
1616  MooseSharedPointer<ConstitutiveModel> cm = _constitutive_model[current_block];
1617  cm->initStatefulProperties(n_points);
1618  }
1619 }
bool _constitutive_active
Definition: SolidModel.h:254
virtual void initQpStatefulProperties()
Definition: SolidModel.C:691
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251

◆ jacobianSetup()

void SolidModel::jacobianSetup ( )
protectedvirtual

Definition at line 528 of file SolidModel.C.

529 {
530  // if (_cracking_stress > 0)
531  // {
532  // for (std::map<Point, unsigned>::iterator i = _cracked_this_step.begin();
533  // i != _cracked_this_step.end(); ++i)
534  // {
535  // if (i->second)
536  // {
537  // ++_cracked_this_step_count[i->first];
538  // }
539  // }
540  // }
541 }

◆ JxW()

Real SolidModel::JxW ( unsigned  i) const
inline

◆ modifyStrainIncrement()

void SolidModel::modifyStrainIncrement ( )
protectedvirtual

Modify increment for things like thermal strain.

Definition at line 555 of file SolidModel.C.

Referenced by computeProperties().

556 {
557  bool modified = false;
558  _d_strain_dT.zero();
559 
560  const SubdomainID current_block = _current_elem->subdomain_id();
562  {
563  MooseSharedPointer<ConstitutiveModel> cm = _constitutive_model[current_block];
564 
565  // Let's be a little careful and check for a non-existent
566  // ConstitutiveModel, which could be returned as a default value
567  // from std::map::operator[]
568  if (!cm)
569  mooseError("ConstitutiveModel not available for block ", current_block);
570 
571  cm->setQp(_qp);
572  modified |= cm->modifyStrainIncrement(*_current_elem, _strain_increment, _d_strain_dT);
573  }
574 
575  if (!modified)
576  {
578  }
579 
581 }
bool _constitutive_active
Definition: SolidModel.h:254
void zero()
Definition: SymmTensor.h:276
virtual void applyThermalStrain()
Definition: SolidModel.C:586
SymmTensor _d_strain_dT
Definition: SolidModel.h:140
virtual void applyVolumetricStrain()
Definition: SolidModel.C:644
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251
SymmTensor _strain_increment
In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.
Definition: SolidModel.h:152

◆ q_point()

const Point& SolidModel::q_point ( unsigned  i) const
inline

◆ qrule()

QBase* SolidModel::qrule ( )
inline

◆ rotateSymmetricTensor()

void SolidModel::rotateSymmetricTensor ( const ColumnMajorMatrix &  R,
const SymmTensor T,
SymmTensor result 
)
static

Definition at line 658 of file SolidModel.C.

Referenced by applyCracksToTensor(), computeCrackStrainAndOrientation(), crackingStrainDirections(), and crackingStressRotation().

661 {
662 
663  // R T Rt
664  // 00 01 02 00 01 02 00 10 20
665  // 10 11 12 * 10 11 12 * 01 11 21
666  // 20 21 22 20 21 22 02 12 22
667  //
668  const Real T00 = R(0, 0) * T.xx() + R(0, 1) * T.xy() + R(0, 2) * T.zx();
669  const Real T01 = R(0, 0) * T.xy() + R(0, 1) * T.yy() + R(0, 2) * T.yz();
670  const Real T02 = R(0, 0) * T.zx() + R(0, 1) * T.yz() + R(0, 2) * T.zz();
671 
672  const Real T10 = R(1, 0) * T.xx() + R(1, 1) * T.xy() + R(1, 2) * T.zx();
673  const Real T11 = R(1, 0) * T.xy() + R(1, 1) * T.yy() + R(1, 2) * T.yz();
674  const Real T12 = R(1, 0) * T.zx() + R(1, 1) * T.yz() + R(1, 2) * T.zz();
675 
676  const Real T20 = R(2, 0) * T.xx() + R(2, 1) * T.xy() + R(2, 2) * T.zx();
677  const Real T21 = R(2, 0) * T.xy() + R(2, 1) * T.yy() + R(2, 2) * T.yz();
678  const Real T22 = R(2, 0) * T.zx() + R(2, 1) * T.yz() + R(2, 2) * T.zz();
679 
680  result.xx(T00 * R(0, 0) + T01 * R(0, 1) + T02 * R(0, 2));
681  result.yy(T10 * R(1, 0) + T11 * R(1, 1) + T12 * R(1, 2));
682  result.zz(T20 * R(2, 0) + T21 * R(2, 1) + T22 * R(2, 2));
683  result.xy(T00 * R(1, 0) + T01 * R(1, 1) + T02 * R(1, 2));
684  result.yz(T10 * R(2, 0) + T11 * R(2, 1) + T12 * R(2, 2));
685  result.zx(T00 * R(2, 0) + T01 * R(2, 1) + T02 * R(2, 2));
686 }
Real yz() const
Definition: SymmTensor.h:136
Real zx() const
Definition: SymmTensor.h:137
Real yy() const
Definition: SymmTensor.h:133
Real xx() const
Definition: SymmTensor.h:132
Real xy() const
Definition: SymmTensor.h:135
Real zz() const
Definition: SymmTensor.h:134

◆ timestepSetup()

void SolidModel::timestepSetup ( )
protectedvirtual

Definition at line 517 of file SolidModel.C.

518 {
519  // if (_cracking_stress > 0)
520  // {
521  // _cracked_this_step_count.clear();
522  // }
523 }

◆ updateElasticityTensor()

bool SolidModel::updateElasticityTensor ( SymmElasticityTensor tensor)
protectedvirtual

Return true if the elasticity tensor changed.

Reimplemented in MacroElastic.

Definition at line 886 of file SolidModel.C.

Referenced by computeElasticityTensor().

887 {
888  bool changed(false);
890  {
891  const SubdomainID current_block = _current_elem->subdomain_id();
892  MooseSharedPointer<ConstitutiveModel> cm = _constitutive_model[current_block];
893 
894  // Let's be a little careful and check for a non-existent
895  // ConstitutiveModel, which could be returned as a default value
896  // from std::map::operator[]
897  if (!cm)
898  mooseError("ConstitutiveModel not available for block ", current_block);
899 
900  cm->setQp(_qp);
901  changed |= cm->updateElasticityTensor(tensor);
902  }
903 
905  {
906  SymmIsotropicElasticityTensor * t = dynamic_cast<SymmIsotropicElasticityTensor *>(&tensor);
907  if (!t)
908  {
909  mooseError("Cannot use Youngs modulus or Poissons ratio functions");
910  }
911  t->unsetConstants();
912  Point p;
914  ? _youngs_modulus_function->value(_temperature[_qp], p)
915  : _youngs_modulus));
917  ? _poissons_ratio_function->value(_temperature[_qp], p)
918  : _poissons_ratio));
919  changed = true;
920  }
921  return changed;
922 }
Real _poissons_ratio
Definition: SolidModel.h:73
bool _constitutive_active
Definition: SolidModel.h:254
Function * _youngs_modulus_function
Definition: SolidModel.h:77
Function * _poissons_ratio_function
Definition: SolidModel.h:78
std::map< SubdomainID, MooseSharedPointer< ConstitutiveModel > > _constitutive_model
Definition: SolidModel.h:251
Real _youngs_modulus
Definition: SolidModel.h:75
const VariableValue & _temperature
Definition: SolidModel.h:95
void setYoungsModulus(const Real E)
Set the Young&#39;s Modulus.
Defines an Isotropic Elasticity Tensor.
void setPoissonsRatio(const Real nu)
Set Poissons Ratio.

Member Data Documentation

◆ _active_crack_planes

std::vector<unsigned int> SolidModel::_active_crack_planes
protected

Definition at line 88 of file SolidModel.h.

Referenced by crackingStressRotation(), and SolidModel().

◆ _alpha

const Real SolidModel::_alpha
protected

◆ _alpha_function

Function* SolidModel::_alpha_function
protected

◆ _appended_property_name

const std::string SolidModel::_appended_property_name
protected

Definition at line 63 of file SolidModel.h.

Referenced by createProperty(), and getPropertyOld().

◆ _block_id

std::vector<SubdomainID> SolidModel::_block_id
protected

Definition at line 249 of file SolidModel.h.

Referenced by createConstitutiveModel(), initialSetup(), and SolidModel().

◆ _bulk_modulus

Real SolidModel::_bulk_modulus
protected

Definition at line 71 of file SolidModel.h.

Referenced by checkElasticConstants().

◆ _bulk_modulus_set

bool SolidModel::_bulk_modulus_set
protected

Definition at line 65 of file SolidModel.h.

Referenced by checkElasticConstants().

◆ _compute_InteractionIntegral

const bool SolidModel::_compute_InteractionIntegral
protected

Definition at line 155 of file SolidModel.h.

Referenced by computeProperties(), and SolidModel().

◆ _compute_JIntegral

const bool SolidModel::_compute_JIntegral
protected

Definition at line 154 of file SolidModel.h.

Referenced by computeProperties(), initialSetup(), and SolidModel().

◆ _compute_method

const std::string SolidModel::_compute_method
protected

Definition at line 84 of file SolidModel.h.

Referenced by crackingStrainDirections().

◆ _constitutive_active

bool SolidModel::_constitutive_active
protected

◆ _constitutive_model

std::map<SubdomainID, MooseSharedPointer<ConstitutiveModel> > SolidModel::_constitutive_model
protected

◆ _coord_type

Moose::CoordinateSystemType SolidModel::_coord_type
protected

Definition at line 61 of file SolidModel.h.

Referenced by createElement(), and SolidModel().

◆ _crack_count

MaterialProperty<RealVectorValue>* SolidModel::_crack_count
protected

Definition at line 126 of file SolidModel.h.

Referenced by initQpStatefulProperties(), and SolidModel().

◆ _crack_count_old

const MaterialProperty<RealVectorValue>* SolidModel::_crack_count_old
protected

Definition at line 127 of file SolidModel.h.

Referenced by crackingStressRotation(), and SolidModel().

◆ _crack_flags

MaterialProperty<RealVectorValue>* SolidModel::_crack_flags
protected

◆ _crack_flags_local

RealVectorValue SolidModel::_crack_flags_local
protected

Definition at line 125 of file SolidModel.h.

Referenced by crackingStrainDirections(), and crackingStressRotation().

◆ _crack_flags_old

const MaterialProperty<RealVectorValue>* SolidModel::_crack_flags_old
protected

Definition at line 124 of file SolidModel.h.

Referenced by crackingStressRotation(), and SolidModel().

◆ _crack_max_strain

MaterialProperty<RealVectorValue>* SolidModel::_crack_max_strain
protected

Definition at line 132 of file SolidModel.h.

Referenced by computeCrackFactor(), crackingStressRotation(), and SolidModel().

◆ _crack_max_strain_old

const MaterialProperty<RealVectorValue>* SolidModel::_crack_max_strain_old
protected

Definition at line 133 of file SolidModel.h.

Referenced by crackingStrainDirections(), crackingStressRotation(), and SolidModel().

◆ _crack_rotation

MaterialProperty<ColumnMajorMatrix>* SolidModel::_crack_rotation
protected

◆ _crack_rotation_old

const MaterialProperty<ColumnMajorMatrix>* SolidModel::_crack_rotation_old
protected

Definition at line 129 of file SolidModel.h.

Referenced by SolidModel().

◆ _crack_strain

MaterialProperty<RealVectorValue>* SolidModel::_crack_strain
protected

◆ _crack_strain_old

const MaterialProperty<RealVectorValue>* SolidModel::_crack_strain_old
protected

Definition at line 131 of file SolidModel.h.

Referenced by crackingStressRotation(), and SolidModel().

◆ _cracking_alpha

Real SolidModel::_cracking_alpha
protected

Definition at line 87 of file SolidModel.h.

Referenced by computeCrackFactor(), and SolidModel().

◆ _cracking_beta

const Real SolidModel::_cracking_beta
protected

Definition at line 83 of file SolidModel.h.

Referenced by computeCrackFactor().

◆ _cracking_neg_fraction

const Real SolidModel::_cracking_neg_fraction
protected

Definition at line 90 of file SolidModel.h.

Referenced by crackingStrainDirections(), and crackingStressRotation().

◆ _cracking_release

const CRACKING_RELEASE SolidModel::_cracking_release
protected

Definition at line 80 of file SolidModel.h.

Referenced by computeCrackFactor(), crackingStressRotation(), and SolidModel().

◆ _cracking_residual_stress

const Real SolidModel::_cracking_residual_stress
protected

Definition at line 82 of file SolidModel.h.

Referenced by computeCrackFactor().

◆ _cracking_stress

Real SolidModel::_cracking_stress
protected

◆ _cracking_stress_function

Function* const SolidModel::_cracking_stress_function
protected

◆ _current_instantaneous_thermal_expansion_coef

MaterialProperty<Real>* SolidModel::_current_instantaneous_thermal_expansion_coef
protected

◆ _d_strain_dT

SymmTensor SolidModel::_d_strain_dT
protected

◆ _d_stress_dT

MaterialProperty<SymmTensor>& SolidModel::_d_stress_dT
protected

Definition at line 143 of file SolidModel.h.

Referenced by computePreconditioning().

◆ _dep_matl_props

std::set<std::string> SolidModel::_dep_matl_props
protected

Definition at line 107 of file SolidModel.h.

Referenced by initialSetup(), and SolidModel().

◆ _elastic_strain

MaterialProperty<SymmTensor>& SolidModel::_elastic_strain
protected

◆ _elastic_strain_old

const MaterialProperty<SymmTensor>& SolidModel::_elastic_strain_old
protected

◆ _elasticity_tensor

MaterialProperty<SymmElasticityTensor>& SolidModel::_elasticity_tensor
protected

◆ _element

SolidMechanics::Element* SolidModel::_element
private

◆ _Eshelby_tensor

MaterialProperty<RankTwoTensor>* SolidModel::_Eshelby_tensor
protected

Definition at line 160 of file SolidModel.h.

Referenced by computeEshelby(), and SolidModel().

◆ _has_stress_free_temp

bool SolidModel::_has_stress_free_temp
protected

Definition at line 101 of file SolidModel.h.

Referenced by applyThermalStrain(), and SolidModel().

◆ _has_temp

const bool SolidModel::_has_temp
protected

◆ _J_thermal_term_vec

MaterialProperty<RealVectorValue>* SolidModel::_J_thermal_term_vec
protected

Definition at line 161 of file SolidModel.h.

Referenced by computeThermalJvec(), and SolidModel().

◆ _Jacobian_mult

MaterialProperty<SymmElasticityTensor>& SolidModel::_Jacobian_mult
protected

Definition at line 137 of file SolidModel.h.

Referenced by computePreconditioning().

◆ _lambda

Real SolidModel::_lambda
protected

Definition at line 72 of file SolidModel.h.

Referenced by checkElasticConstants().

◆ _lambda_set

bool SolidModel::_lambda_set
protected

Definition at line 66 of file SolidModel.h.

Referenced by checkElasticConstants().

◆ _local_elasticity_tensor

SymmElasticityTensor* SolidModel::_local_elasticity_tensor
private

◆ _max_cracks

const unsigned int SolidModel::_max_cracks
protected

Definition at line 89 of file SolidModel.h.

Referenced by crackingStressRotation().

◆ _mean_alpha_function

bool SolidModel::_mean_alpha_function
protected

◆ _mechanical_strain_increment

SymmTensor SolidModel::_mechanical_strain_increment
protected

Mechanical strain increment, which is the total strain increment minus eigenstrains.

Definition at line 148 of file SolidModel.h.

Referenced by computeProperties(), and computeStrainEnergyDensity().

◆ _models_to_free

std::set<MooseSharedPointer<ConstitutiveModel> > SolidModel::_models_to_free
protected

Definition at line 253 of file SolidModel.h.

Referenced by createConstitutiveModel().

◆ _piecewise_linear_alpha_function

PiecewiseLinear* SolidModel::_piecewise_linear_alpha_function
protected

Definition at line 100 of file SolidModel.h.

◆ _poissons_ratio

Real SolidModel::_poissons_ratio
protected

◆ _poissons_ratio_function

Function* SolidModel::_poissons_ratio_function
protected

Definition at line 78 of file SolidModel.h.

Referenced by createElasticityTensor(), and updateElasticityTensor().

◆ _poissons_ratio_set

bool SolidModel::_poissons_ratio_set
protected

Definition at line 67 of file SolidModel.h.

Referenced by checkElasticConstants(), and createElasticityTensor().

◆ _principal_strain

ColumnMajorMatrix SolidModel::_principal_strain
protected

Definition at line 134 of file SolidModel.h.

Referenced by computeCrackFactor(), and crackingStressRotation().

◆ _ref_temp

Real SolidModel::_ref_temp
protected

◆ _SED

MaterialProperty<Real>* SolidModel::_SED
protected

◆ _SED_old

const MaterialProperty<Real>* SolidModel::_SED_old
protected

Definition at line 159 of file SolidModel.h.

Referenced by computeStrainEnergyDensity(), and SolidModel().

◆ _shear_modulus

Real SolidModel::_shear_modulus
protected

Definition at line 74 of file SolidModel.h.

Referenced by checkElasticConstants(), PLC_LSH::computeCreep(), and PLC_LSH::computeLSH().

◆ _shear_modulus_set

bool SolidModel::_shear_modulus_set
protected

Definition at line 68 of file SolidModel.h.

Referenced by checkElasticConstants().

◆ _step_one

bool& SolidModel::_step_one
protected

Definition at line 263 of file SolidModel.h.

Referenced by applyThermalStrain(), and computeProperties().

◆ _step_zero

bool& SolidModel::_step_zero
protected

Restartable data to check for the zeroth and first time steps for thermal calculations.

Definition at line 262 of file SolidModel.h.

Referenced by applyThermalStrain(), and computeProperties().

◆ _strain_increment

SymmTensor SolidModel::_strain_increment
protected

In most models, this is the mechanical strain increment, but for inelastic models, it has the inelastic component subtracted from it, so it is the elastic strain increment.

Definition at line 152 of file SolidModel.h.

Referenced by applyThermalStrain(), applyVolumetricStrain(), computeConstitutiveModelStress(), computeCrackStrainAndOrientation(), computeProperties(), PLC_LSH::computeStress(), AbaqusCreepMaterial::computeStress(), AbaqusUmatMaterial::computeStress(), and modifyStrainIncrement().

◆ _stress

MaterialProperty<SymmTensor>& SolidModel::_stress
protected

◆ _stress_free_temp

Real SolidModel::_stress_free_temp
protected

◆ _stress_old

SymmTensor SolidModel::_stress_old
protected

◆ _stress_old_prop

const MaterialProperty<SymmTensor>& SolidModel::_stress_old_prop
private

Definition at line 112 of file SolidModel.h.

Referenced by computeElasticityTensor(), and computeStrainEnergyDensity().

◆ _temp_grad

const VariableGradient& SolidModel::_temp_grad
protected

Definition at line 97 of file SolidModel.h.

Referenced by computeThermalJvec().

◆ _temperature

const VariableValue& SolidModel::_temperature
protected

◆ _temperature_old

const VariableValue& SolidModel::_temperature_old
protected

Definition at line 96 of file SolidModel.h.

Referenced by applyThermalStrain().

◆ _total_strain

MaterialProperty<SymmTensor>& SolidModel::_total_strain
protected

◆ _total_strain_increment

SymmTensor SolidModel::_total_strain_increment
protected

Total strain increment, including mechanical strains and eigenstrains.

Definition at line 146 of file SolidModel.h.

Referenced by computeProperties().

◆ _total_strain_old

const MaterialProperty<SymmTensor>& SolidModel::_total_strain_old
protected

Definition at line 118 of file SolidModel.h.

Referenced by computeProperties().

◆ _volumetric_models

std::map<SubdomainID, std::vector<MooseSharedPointer<VolumetricModel> > > SolidModel::_volumetric_models
protected

Definition at line 106 of file SolidModel.h.

Referenced by applyVolumetricStrain(), and initialSetup().

◆ _youngs_modulus

Real SolidModel::_youngs_modulus
protected

◆ _youngs_modulus_function

Function* SolidModel::_youngs_modulus_function
protected

◆ _youngs_modulus_set

bool SolidModel::_youngs_modulus_set
protected

Definition at line 69 of file SolidModel.h.

Referenced by checkElasticConstants(), and createElasticityTensor().


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