https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
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
42protected:
44 std::unordered_map<unsigned int, Point> _element_normals;
45};
const Real p
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 Point nodeNormal(const unsigned int &node_id) override
return the normal at a node in the cutting mesh
virtual bool cutElementByGeometry(const Elem *elem, std::vector< Xfem::CutEdge > &cut_edges, std::vector< Xfem::CutNode > &cut_nodes) const override
std::unordered_map< unsigned int, Point > _element_normals
Map of element normal.
virtual void calculateNormals() override
calculate the element normal values for all of the elements.
const InputParameters & parameters() const