https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SurfaceEdge2.C
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#include "SurfaceEdge2.h"
11#include "Ball.h"
12
14 : LineSegment(elem->point(0), elem->point(1)), SurfaceElement(elem, LineSegment::normal())
15{
16 mooseAssert(elem->type() == EDGE2, "Element must be of type EDGE2");
17 mooseAssert(MooseUtils::absoluteFuzzyEqual(elem->point(0)(2), elem->point(1)(2)),
18 "Currently SurfaceEdge2 must be parallel to the x-y plane, i.e., z-coordinates of "
19 "points must be equal");
20}
The LineSegment class is used by the LineMaterialSamplerBase class and for some ray tracing stuff.
Definition LineSegment.h:31
SurfaceEdge2(const Elem *elem)
Constructor.
Base class for a single surface (boundary) element of a closed surface mesh.
const Elem & elem() const
Getter for the underlying element.