BaseIF Class Reference

#include <BaseIF.H>

Inheritance diagram for BaseIF:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is the base class for an implicit function specification of geometry. All that is needed is a constructor/destructor, a method to give the value of the function at any point in space (in 2D or 3D), and a factory method (these will probably all be very similar).

Public Member Functions

 BaseIF ()
 Default constructor.
virtual ~BaseIF ()
 Default destructor.
virtual IndMomSpaceDim getExactVolumeMoments (const VolIndex &a_vof, const Real &a_dx) const
 return int x^p dV for the vof
virtual IndMomSpaceDim getExactEBMoments (const VolIndex &a_vof, const Real &a_dx) const
 return int_eb x^p dA for the eb
virtual IndMomSpaceDim getExactEBNormalMoments (const VolIndex &a_vof, const Real &a_dx, const int &a_ni) const
 return int_eb x^p n_i dA for the eb
virtual IndMomSpaceDim getExactEBNormalPartialDerivs (const VolIndex &a_vof, const Real &a_dx, const int &a_ni) const
virtual IndMomSDMinOne getExactFaceMoments (const FaceIndex &a_face, const Real &a_dx) const
 return int x^p dA for the face
virtual Real value (const RealVect &a_point) const =0
virtual Real derivative (const IntVect &a_deriv, const RealVect &a_point) const
 return the partial derivative at the point
virtual Real value (const IndexTM< int, GLOBALDIM > &a_partialDerivative, const IndexTM< Real, GLOBALDIM > &a_point) const
virtual Real value (const IntVect &a_deriv, const RealVect &a_point) const
virtual bool fastIntersection (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
virtual bool fastIntersection (const RealVect &a_low, const RealVect &a_high) const
virtual GeometryService::InOut InsideOutside (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
virtual GeometryService::InOut InsideOutside (const RealVect &a_low, const RealVect &a_high) const
virtual Real value (const IndexTM< Real, GLOBALDIM > &a_point) const
virtual Real derivative (const IndexTM< int, GLOBALDIM > &a_deriv, const IndexTM< Real, GLOBALDIM > &a_point) const
virtual BaseIFnewImplicitFunction () const =0
virtual void print (ostream &out) const
virtual void boxLayoutChanged (const DisjointBoxLayout &a_newBoxLayout, const RealVect &a_dx)

Static Public Member Functions

static void corners (const Box &a_region, const RealVect &a_origin, const Real &a_dx, RealVect &a_lo, RealVect &a_hi)

Constructor & Destructor Documentation

BaseIF::BaseIF (  )  [inline]

Default constructor.

virtual BaseIF::~BaseIF (  )  [inline, virtual]

Default destructor.


Member Function Documentation

virtual IndMomSpaceDim BaseIF::getExactVolumeMoments ( const VolIndex a_vof,
const Real a_dx 
) const [inline, virtual]

return int x^p dV for the vof

References MayDay::Error(), and IndexedMoments< Dim, P >::setToZero().

virtual IndMomSpaceDim BaseIF::getExactEBMoments ( const VolIndex a_vof,
const Real a_dx 
) const [inline, virtual]

return int_eb x^p dA for the eb

References MayDay::Error(), and IndexedMoments< Dim, P >::setToZero().

virtual IndMomSpaceDim BaseIF::getExactEBNormalMoments ( const VolIndex a_vof,
const Real a_dx,
const int &  a_ni 
) const [inline, virtual]

return int_eb x^p n_i dA for the eb

References MayDay::Error(), and IndexedMoments< Dim, P >::setToZero().

virtual IndMomSpaceDim BaseIF::getExactEBNormalPartialDerivs ( const VolIndex a_vof,
const Real a_dx,
const int &  a_ni 
) const [inline, virtual]

virtual IndMomSDMinOne BaseIF::getExactFaceMoments ( const FaceIndex a_face,
const Real a_dx 
) const [inline, virtual]

return int x^p dA for the face

References MayDay::Error(), and IndexedMoments< Dim, P >::setToZero().

virtual Real BaseIF::value ( const RealVect a_point  )  const [pure virtual]

Return the value of the function at a_point. When delineating a domain, the level set value=0 represents the boundary and value<0 is inside the fluid.

Implemented in BilinearIF, ComplementIF, DataFileIF, DEMIF, EllipsoidIF, GaussianIF, GaussianSphereIF, HelicoilIF, HelixIF, HyperPlaneIF, HyperSphereIF, IntersectionIF, LatheIF, MollifyIF, MultiSphereIF, PolarIF, PolynomialIF, ReferenceHeightIF, RhodoneaIF, SineIF, SmoothIntersection, SmoothUnion, SphereArrayIF, STLIF, SumIF, TiltedCylinderIF, TorusIF, TransformIF, TylerChannelIF, and UnionIF.

Referenced by ReferenceHeightIF::value(), and value().

virtual Real BaseIF::derivative ( const IntVect a_deriv,
const RealVect a_point 
) const [inline, virtual]

return the partial derivative at the point

Reimplemented in GaussianSphereIF, SmoothIntersection, and SmoothUnion.

References MayDay::Error().

Referenced by derivative(), and value().

virtual Real BaseIF::value ( const IndexTM< int, GLOBALDIM > &  a_partialDerivative,
const IndexTM< Real, GLOBALDIM > &  a_point 
) const [inline, virtual]

virtual Real BaseIF::value ( const IntVect a_deriv,
const RealVect a_point 
) const [inline, virtual]

References SpaceDim, and value().

virtual bool BaseIF::fastIntersection ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const [inline, virtual]

References corners().

Referenced by ComplementIF::fastIntersection().

virtual bool BaseIF::fastIntersection ( const RealVect a_low,
const RealVect a_high 
) const [inline, virtual]

virtual GeometryService::InOut BaseIF::InsideOutside ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const [inline, virtual]

References corners().

virtual GeometryService::InOut BaseIF::InsideOutside ( const RealVect a_low,
const RealVect a_high 
) const [inline, virtual]

virtual Real BaseIF::value ( const IndexTM< Real, GLOBALDIM > &  a_point  )  const [inline, virtual]

Return the value of the function at a_point (of type INdexTM).

Reimplemented in BilinearIF, ComplementIF, DataFileIF, HyperPlaneIF, HyperSphereIF, IntersectionIF, MollifyIF, ReferenceHeightIF, SumIF, TransformIF, and UnionIF.

References CH_assert, GLOBALDIM, SpaceDim, and value().

virtual Real BaseIF::derivative ( const IndexTM< int, GLOBALDIM > &  a_deriv,
const IndexTM< Real, GLOBALDIM > &  a_point 
) const [inline, virtual]

Return the derivative of the function at a_point (of type INdexTM).

References CH_assert, derivative(), GLOBALDIM, and SpaceDim.

virtual BaseIF* BaseIF::newImplicitFunction (  )  const [pure virtual]

virtual void BaseIF::print ( ostream &  out  )  const [inline, virtual]

Reimplemented in ReferenceHeightIF.

References MayDay::Abort().

Referenced by ReferenceHeightIF::print().

static void BaseIF::corners ( const Box a_region,
const RealVect a_origin,
const Real a_dx,
RealVect a_lo,
RealVect a_hi 
) [inline, static]

virtual void BaseIF::boxLayoutChanged ( const DisjointBoxLayout a_newBoxLayout,
const RealVect a_dx 
) [inline, virtual]

Inform the implicit function, IF, of a BoxLayout change in the application that is using it. If the implicit function uses distributed data, this gives it a chance to react to the spatial layout of the application that is using it.

This is a empty implementation for IFs that don't need this functionality.

Reimplemented in ComplementIF, HelicoilIF, HelixIF, IntersectionIF, LatheIF, MollifyIF, ReferenceHeightIF, SumIF, TransformIF, and UnionIF.

Referenced by TransformIF::boxLayoutChanged(), ReferenceHeightIF::boxLayoutChanged(), MollifyIF::boxLayoutChanged(), LatheIF::boxLayoutChanged(), HelixIF::boxLayoutChanged(), HelicoilIF::boxLayoutChanged(), and ComplementIF::boxLayoutChanged().


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

Generated on Wed Mar 29 03:26:53 2017 for Chombo + EB + MF by  doxygen 1.5.5