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)
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
const Point _plane_normal
A normal vector of the cutting plane.
This CutMeshByPlaneGenerator object is designed to trim the input mesh by removing all the elements o...
const Point _plane_point
A point on the cutting plane.
const std::string & name() const
Get the name of the class.
static InputParameters validParams()
std::vector< GenericReal< is_ad > > _func_params
Array to stage the parameters passed to the functions when calling Eval.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
CutMeshByPlaneGenerator(const InputParameters ¶meters)
static InputParameters validParams()
void setParserFeatureFlags(SymFunctionPtr &) const
apply input parameters to internal feature flags of the parser object