23 "level_set",
"Level set used to cut the mesh as a function of x, y, and z.");
24 params.
addParam<std::vector<std::string>>(
25 "constant_names", {},
"Vector of constants used in the parsed function");
26 params.
addParam<std::vector<std::string>>(
27 "constant_expressions",
29 "Vector of values for the constants in constant_names (can be an FParser expression)");
32 "This CutMeshByLevelSetGenerator object is designed to trim the input mesh by removing all "
33 "the elements on outside the give level set with special processing on the elements crossed "
34 "by the cutting surface to ensure a smooth cross-section. The output mesh only consists of "
48 getParam<std::vector<std::string>>(
"constant_names"),
49 getParam<std::vector<std::string>>(
"constant_expressions"),
registerMooseObject("MooseApp", CutMeshByLevelSetGenerator)
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 CutMeshByLevelSetGenerator object is designed to trim the input mesh by removing all the element...
static InputParameters validParams()
CutMeshByLevelSetGenerator(const InputParameters ¶meters)
const std::string _level_set
The analytic level set function in the form of a string that can be parsed by FParser.
std::vector< GenericReal< is_ad > > _func_params
Array to stage the parameters passed to the functions when calling Eval.
void parsedFunctionSetup(SymFunctionPtr &function, const std::string &expression, const std::string &variables, const std::vector< std::string > &constant_names, const std::vector< std::string > &constant_expressions, const libMesh::Parallel::Communicator &comm) const
Performs setup steps on a SymFunction.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
const Parallel::Communicator & comm() const