22 "Vector of Real values providing cut information");
24 params.
addParam<std::vector<Real>>(
"cut_scale",
"X,Y scale factors for geometric cuts");
25 params.
addParam<std::vector<Real>>(
"cut_translate",
"X,Y translations for geometric cuts");
27 params.
addClassDescription(
"Creates a UserObject for a line segment cut on 2D meshes for XFEM");
36 const int cut_data_len = 4;
40 mooseError(
"Length of LineSegmentCutUserObject cut_data must be 4");
43 std::pair<Real, Real>
scale;
46 auto vec_scale = getParam<std::vector<Real>>(
"cut_scale");
47 scale = std::make_pair(vec_scale[0], vec_scale[1]);
51 scale = std::make_pair(1.0, 1.0);
54 std::pair<Real, Real> trans;
57 auto vec_trans = getParam<std::vector<Real>>(
"cut_translate");
58 trans = std::make_pair(vec_trans[0], vec_trans[1]);
62 trans = std::make_pair(0.0, 0.0);
74 mooseError(
"Number of start/end times must match number of cut line endpoint sets");
77 const std::vector<Point>
80 mooseError(
"getCrackFrontPoints() is not implemented for this object.");
83 const std::vector<RealVectorValue>
86 mooseError(
"getCrackPlaneNormals() is not implemented for this object.");
std::vector< Real > _cut_data
std::vector< std::pair< Point, Point > > _cut_line_endpoints
static InputParameters validParams()
virtual const std::vector< Point > getCrackFrontPoints(unsigned int num_crack_front_points) const override
get a set of points along a crack front from a XFEM GeometricCutUserObject
LineSegmentCutUserObject(const InputParameters ¶meters)
bool isParamValid(const std::string &name) const
registerMooseObject("XFEMApp", LineSegmentCutUserObject)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
std::vector< std::pair< Real, Real > > _cut_time_ranges
Vector of start/end times for each cut segment.
static InputParameters validParams()
virtual const std::vector< RealVectorValue > getCrackPlaneNormals(unsigned int num_crack_front_points) const override
get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject ...