23 params.
addRequiredParam<Point>(
"plane_normal",
"The normal vector of the plane.");
26 "This CutMeshByPlaneGenerator object is designed to trim the input mesh by removing all the "
27 "elements on one side of a given plane with special processing on the elements crossed by "
28 "the cutting plane to ensure a smooth cross-section. The output mesh only consists of TET4 "
36 _plane_point(getParam<Point>(
"plane_point")),
37 _plane_normal(getParam<Point>(
"plane_normal").unit())
44 std::stringstream level_set_ss;
46 level_set_ss << std::fixed << std::setprecision(15) <<
_plane_normal(0) <<
"*(x-"
53 mooseError(
"The given plane_point and plane_normal lead to invalid level set.\n",
55 "\nin CutMeshByPlaneGenerator ",
registerMooseObject("MooseApp", CutMeshByPlaneGenerator)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
This CutMeshByLevelSetGeneratorBase object is designed to be the base class of mesh generator that cu...
SymFunctionPtr _func_level_set
function parser object describing the level set
static InputParameters validParams()
This CutMeshByPlaneGenerator object is designed to trim the input mesh by removing all the elements o...
CutMeshByPlaneGenerator(const InputParameters ¶meters)
static InputParameters validParams()
const Point _plane_point
A point on the cutting plane.
const Point _plane_normal
A normal vector of the cutting plane.
std::vector< GenericReal< is_ad > > _func_params
Array to stage the parameters passed to the functions when calling Eval.
void setParserFeatureFlags(SymFunctionPtr &) const
apply input parameters to internal feature flags of the parser object
const std::string & name() const
Get the name of the class.