https://mooseframework.inl.gov
InterfaceMeshCut3DUserObject.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 
13 
19 
21 {
22 public:
24 
26 
27  virtual bool cutElementByGeometry(const Elem * elem,
28  std::vector<Xfem::CutEdge> & cut_edges,
29  std::vector<Xfem::CutNode> & cut_nodes) const override;
30  virtual bool cutElementByGeometry(const Elem * elem,
31  std::vector<Xfem::CutFace> & cut_faces) const override;
32  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_edges,
33  std::vector<Xfem::CutEdge> & cut_edges) const override;
34  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_faces,
35  std::vector<Xfem::CutFace> & cut_faces) const override;
36 
37  virtual Real calculateSignedDistance(Point p) const override;
38 
39  virtual Point nodeNormal(const unsigned int & node_id) override;
40 
41  virtual void calculateNormals() override;
42 
43 protected:
46  std::unordered_map<unsigned int, std::array<Point, 7>> _pseudo_normal;
47 };
std::unordered_map< unsigned int, std::array< Point, 7 > > _pseudo_normal
Map of information defining cutting elements, stored in this order for each element: pseudo normal...
virtual Real calculateSignedDistance(Point p) const override
Calculate the signed distance for a given point relative to the surface.
virtual Point nodeNormal(const unsigned int &node_id) override
return the normal at a node in the cutting mesh
InterfaceMeshCut3DUserObject(const InputParameters &parameters)
virtual bool cutFragmentByGeometry(std::vector< std::vector< Point >> &frag_edges, std::vector< Xfem::CutEdge > &cut_edges) const override
virtual void calculateNormals() override
calculate the element normal values for all of the elements.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual bool cutElementByGeometry(const Elem *elem, std::vector< Xfem::CutEdge > &cut_edges, std::vector< Xfem::CutNode > &cut_nodes) const override