https://mooseframework.inl.gov
GeometricCut2DUserObject.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 
12 #include "GeometricCutUserObject.h"
13 
14 // Forward declarations
15 
17 {
18 public:
20 
22 
23  virtual bool cutElementByGeometry(const Elem * elem,
24  std::vector<Xfem::CutEdge> & cut_edges,
25  std::vector<Xfem::CutNode> & cut_nodes) const override;
26  virtual bool cutElementByGeometry(const Elem * elem,
27  std::vector<Xfem::CutFace> & cut_faces) const override;
28 
29  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_edges,
30  std::vector<Xfem::CutEdge> & cut_edges) const override;
31  virtual bool cutFragmentByGeometry(std::vector<std::vector<Point>> & frag_faces,
32  std::vector<Xfem::CutFace> & cut_faces) const override;
33 
34 protected:
35  std::vector<std::pair<Point, Point>> _cut_line_endpoints;
36 
44  virtual Real cutFraction(unsigned int cut_num) const;
45 
47  std::vector<std::pair<Real, Real>> _cut_time_ranges;
48 };
virtual Real cutFraction(unsigned int cut_num) const
Find the fractional distance along a specified cut line for the current time that is currently active...
std::vector< std::pair< Point, Point > > _cut_line_endpoints
static InputParameters validParams()
GeometricCut2DUserObject(const InputParameters &parameters)
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::vector< std::pair< Real, Real > > _cut_time_ranges
Vector of start/end times for each cut segment.
const InputParameters & parameters() const
virtual bool cutFragmentByGeometry(std::vector< std::vector< Point >> &frag_edges, std::vector< Xfem::CutEdge > &cut_edges) const override