https://mooseframework.inl.gov
InterfaceMeshCut2DUserObject.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
18 
20 {
21 public:
23 
25 
26  virtual bool cutElementByGeometry(const Elem * elem,
27  std::vector<Xfem::CutEdge> & cut_edges,
28  std::vector<Xfem::CutNode> & cut_nodes) const override;
29  virtual bool cutElementByGeometry(const Elem * elem,
30  std::vector<Xfem::CutFace> & cut_faces) const override;
31  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_edges,
32  std::vector<Xfem::CutEdge> & cut_edges) const override;
33  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_faces,
34  std::vector<Xfem::CutFace> & cut_faces) const override;
35 
36  virtual Real calculateSignedDistance(Point p) const override;
37 
38  virtual Point nodeNormal(const unsigned int & node_id) override;
39 
40  virtual void calculateNormals() override;
41 
42 protected:
44  std::unordered_map<unsigned int, Point> _element_normals;
45 };
InterfaceMeshCut2DUserObject(const InputParameters &parameters)
virtual void calculateNormals() override
calculate the element normal values for all of the elements.
virtual Point nodeNormal(const unsigned int &node_id) override
return the normal at a node in the cutting mesh
virtual bool cutFragmentByGeometry(std::vector< std::vector< Point >> &frag_edges, std::vector< Xfem::CutEdge > &cut_edges) const override
virtual Real calculateSignedDistance(Point p) const override
Calculate the signed distance for a given point relative to the surface.
virtual bool cutElementByGeometry(const Elem *elem, std::vector< Xfem::CutEdge > &cut_edges, std::vector< Xfem::CutNode > &cut_nodes) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::unordered_map< unsigned int, Point > _element_normals
Map of element normal.
const InputParameters & parameters() const