www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
GeometricCutUserObject Class Referenceabstract

#include <GeometricCutUserObject.h>

Inheritance diagram for GeometricCutUserObject:
[legend]

Public Member Functions

 GeometricCutUserObject (const InputParameters &parameters)
 Factory constructor, takes parameters so that all derived classes can be built using the same constructor. More...
 
virtual void initialize ()
 
virtual void execute ()
 
virtual void finalize ()
 
virtual bool active (Real time) const =0
 
virtual bool cutElementByGeometry (const Elem *elem, std::vector< CutEdge > &cut_edges, std::vector< CutNode > &cut_nodes, Real time) const =0
 
virtual bool cutElementByGeometry (const Elem *elem, std::vector< CutFace > &cut_faces, Real time) const =0
 
virtual bool cutFragmentByGeometry (std::vector< std::vector< Point >> &frag_edges, std::vector< CutEdge > &cut_edges, Real time) const =0
 
virtual bool cutFragmentByGeometry (std::vector< std::vector< Point >> &frag_faces, std::vector< CutFace > &cut_faces, Real time) const =0
 
Real cutFraction (unsigned int cut_num, Real time) const
 

Protected Attributes

std::vector< std::pair< Real, Real > > _cut_time_ranges
 

Detailed Description

Definition at line 47 of file GeometricCutUserObject.h.

Constructor & Destructor Documentation

GeometricCutUserObject::GeometricCutUserObject ( const InputParameters &  parameters)

Factory constructor, takes parameters so that all derived classes can be built using the same constructor.

Definition at line 29 of file GeometricCutUserObject.C.

31  : GeneralUserObject(parameters),
33 {
34  _cut_time_ranges.push_back(
35  std::make_pair(getParam<Real>("time_start_cut"), getParam<Real>("time_end_cut")));
36 }
std::vector< std::pair< Real, Real > > _cut_time_ranges

Member Function Documentation

virtual bool GeometricCutUserObject::active ( Real  time) const
pure virtual
virtual bool GeometricCutUserObject::cutElementByGeometry ( const Elem *  elem,
std::vector< CutEdge > &  cut_edges,
std::vector< CutNode > &  cut_nodes,
Real  time 
) const
pure virtual
virtual bool GeometricCutUserObject::cutElementByGeometry ( const Elem *  elem,
std::vector< CutFace > &  cut_faces,
Real  time 
) const
pure virtual
Real GeometricCutUserObject::cutFraction ( unsigned int  cut_num,
Real  time 
) const

Definition at line 39 of file GeometricCutUserObject.C.

Referenced by GeometricCut2DUserObject::active(), GeometricCut2DUserObject::cutElementByGeometry(), and GeometricCut2DUserObject::cutFragmentByGeometry().

40 {
41  Real fraction = 0.0;
42 
43  if (time >= _cut_time_ranges[cut_num].first)
44  {
45  if (time >= _cut_time_ranges[cut_num].second)
46  fraction = 1.0;
47  else
48  fraction = (time - _cut_time_ranges[cut_num].first) /
49  (_cut_time_ranges[cut_num].second - _cut_time_ranges[cut_num].first);
50  }
51  return fraction;
52 }
std::vector< std::pair< Real, Real > > _cut_time_ranges
virtual bool GeometricCutUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_edges,
std::vector< CutEdge > &  cut_edges,
Real  time 
) const
pure virtual
virtual bool GeometricCutUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_faces,
std::vector< CutFace > &  cut_faces,
Real  time 
) const
pure virtual
virtual void GeometricCutUserObject::execute ( )
inlinevirtual
virtual void GeometricCutUserObject::finalize ( )
inlinevirtual
virtual void GeometricCutUserObject::initialize ( )
inlinevirtual

Member Data Documentation

std::vector<std::pair<Real, Real> > GeometricCutUserObject::_cut_time_ranges
protected

The documentation for this class was generated from the following files: