www.mooseframework.org
Functions
CrackFrontDefinition.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< CrackFrontDefinition > ()
 
void addCrackFrontDefinitionParams (InputParameters &params)
 

Function Documentation

void addCrackFrontDefinitionParams ( InputParameters &  params)

Definition at line 31 of file CrackFrontDefinition.C.

Referenced by validParams< CrackFrontDefinition >(), and validParams< DomainIntegralAction >().

32 {
33  MooseEnum direction_method("CrackDirectionVector CrackMouth CurvedCrackFront");
34  MooseEnum end_direction_method("NoSpecialTreatment CrackDirectionVector", "NoSpecialTreatment");
35  params.addParam<std::vector<Point>>("crack_front_points", "Set of points to define crack front");
36  params.addParam<bool>("closed_loop", false, "Set of points forms forms a closed loop");
37  params.addRequiredParam<MooseEnum>(
38  "crack_direction_method",
39  direction_method,
40  "Method to determine direction of crack propagation. Choices are: " +
41  direction_method.getRawNames());
42  params.addParam<MooseEnum>(
43  "crack_end_direction_method",
44  end_direction_method,
45  "Method to determine direction of crack propagation at ends of crack. Choices are: " +
46  end_direction_method.getRawNames());
47  params.addParam<RealVectorValue>("crack_direction_vector", "Direction of crack propagation");
48  params.addParam<RealVectorValue>(
49  "crack_direction_vector_end_1",
50  "Direction of crack propagation for the node at end 1 of the crack");
51  params.addParam<RealVectorValue>(
52  "crack_direction_vector_end_2",
53  "Direction of crack propagation for the node at end 2 of the crack");
54  params.addParam<std::vector<BoundaryName>>(
55  "crack_mouth_boundary", "Boundaries whose average coordinate defines the crack mouth");
56  params.addParam<std::vector<BoundaryName>>("intersecting_boundary",
57  "Boundaries intersected by ends of crack");
58  params.addParam<bool>("2d", false, "Treat body as two-dimensional");
59  params.addRangeCheckedParam<unsigned int>(
60  "axis_2d",
61  2,
62  "axis_2d>=0 & axis_2d<=2",
63  "Out of plane axis for models treated as two-dimensional (0=x, 1=y, 2=z)");
64  params.addParam<unsigned int>("symmetry_plane",
65  "Account for a symmetry plane passing through "
66  "the plane of the crack, normal to the specified "
67  "axis (0=x, 1=y, 2=z)");
68  params.addParam<bool>("t_stress", false, "Calculate T-stress");
69  params.addParam<bool>("q_function_rings", false, "Generate rings of nodes for q-function");
70  params.addParam<unsigned int>("last_ring", "The number of rings of nodes to generate");
71  params.addParam<unsigned int>("first_ring", "The number of rings of nodes to generate");
72  params.addParam<VariableName>("disp_x", "Variable containing the x displacement");
73  params.addParam<VariableName>("disp_y", "Variable containing the y displacement");
74  params.addParam<VariableName>("disp_z", "Variable containing the z displacement");
75  params.addParam<std::vector<Real>>("j_integral_radius_inner",
76  "Radius for J-Integral calculation");
77  params.addParam<std::vector<Real>>("j_integral_radius_outer",
78  "Radius for J-Integral calculation");
79  MooseEnum q_function_type("Geometry Topology", "Geometry");
80  params.addParam<MooseEnum>("q_function_type",
81  q_function_type,
82  "The method used to define the integration domain. Options are: " +
83  q_function_type.getRawNames());
84 }
template<>
InputParameters validParams< CrackFrontDefinition > ( )

Definition at line 21 of file CrackFrontDefinition.C.

22 {
23  InputParameters params = validParams<GeneralUserObject>();
24  params += validParams<BoundaryRestrictable>();
26  params.set<bool>("use_displaced_mesh") = false;
27  return params;
28 }
void addCrackFrontDefinitionParams(InputParameters &params)