https://mooseframework.inl.gov
LevelSetMeshingHelper.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "FunctionParserUtils.h"
13 #include "InputParameters.h"
14 
20 {
21 public:
23 
24  LevelSetMeshingHelper(const InputParameters & parameters);
25 
26 protected:
29 
32 
38  Real levelSetEvaluator(const Point & point);
39 
44  void levelSetCorrection(Node & node);
45 };
std::shared_ptr< SymFunction > SymFunctionPtr
Shorthand for an smart pointer to an autodiff function parser object.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Helper class to define, parameterize and create a level set function used in meshing, often to correct the position of nodes on a surface.
LevelSetMeshingHelper(const InputParameters &parameters)
static InputParameters validParams()
SymFunctionPtr _func_level_set
function parser object describing the level set
void levelSetCorrection(Node &node)
Correct the position of a node based on the level set function.
Real levelSetEvaluator(const Point &point)
Evaluate the level set function at a given point.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _max_level_set_correction_iterations
Maximum number of iterations to correct the nodes based on the level set function.