https://mooseframework.inl.gov
Loading...
Searching...
No Matches
solid_mechanics
src
materials
ComputeRotatedElasticityTensorBase.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#include "
ComputeRotatedElasticityTensorBase.h
"
11
#include "
RotationTensor.h
"
12
13
template
<
bool
is_ad>
14
InputParameters
15
ComputeRotatedElasticityTensorBaseTempl<is_ad>::validParams
()
16
{
17
InputParameters
params =
ComputeElasticityTensorBaseTempl<is_ad>::validParams
();
18
params.
addParam
<Real>(
"euler_angle_1"
, 0.0,
"Euler angle in direction 1"
);
19
params.
addParam
<Real>(
"euler_angle_2"
, 0.0,
"Euler angle in direction 2"
);
20
params.
addParam
<Real>(
"euler_angle_3"
, 0.0,
"Euler angle in direction 3"
);
21
params.
addParam
<RealTensorValue>(
"rotation_matrix"
,
22
"Rotation matrix to apply to elasticity tensor."
);
23
return
params;
24
}
25
26
template
<
bool
is_ad>
27
ComputeRotatedElasticityTensorBaseTempl<is_ad>::ComputeRotatedElasticityTensorBaseTempl
(
28
const
InputParameters
& parameters)
29
:
ComputeElasticityTensorBaseTempl
<is_ad>(parameters),
30
_Euler_angles(this->template getParam<Real>(
"euler_angle_1"
),
31
this->template getParam<Real>(
"euler_angle_2"
),
32
this->template getParam<Real>(
"euler_angle_3"
)),
33
_rotation_matrix(this->isParamValid(
"rotation_matrix"
)
34
? this->template getParam<RealTensorValue>(
"rotation_matrix"
)
35
: RealTensorValue(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0))
36
{
37
}
38
39
template
class
ComputeRotatedElasticityTensorBaseTempl<false>
;
40
template
class
ComputeRotatedElasticityTensorBaseTempl<true>
;
ComputeRotatedElasticityTensorBase.h
RotationTensor.h
ComputeElasticityTensorBaseTempl
ComputeElasticityTensorBase the base class for computing elasticity tensors.
Definition
ComputeElasticityTensorBase.h:24
ComputeElasticityTensorBaseTempl::validParams
static InputParameters validParams()
ComputeRotatedElasticityTensorBaseTempl
ComputeRotatedElasticityTensorBase is an intermediate base class that rotates an elasticity tensor ba...
Definition
ComputeRotatedElasticityTensorBase.h:20
ComputeRotatedElasticityTensorBaseTempl::validParams
static InputParameters validParams()
Definition
ComputeRotatedElasticityTensorBase.C:15
ComputeRotatedElasticityTensorBaseTempl::ComputeRotatedElasticityTensorBaseTempl
ComputeRotatedElasticityTensorBaseTempl(const InputParameters ¶meters)
Definition
ComputeRotatedElasticityTensorBase.C:27
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
InputParameters
Generated on Fri Aug 21 2026 13:41:42 for https://mooseframework.inl.gov by
1.9.8