OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::PointSwarm Class Reference

#include <geometry.h>

+ Inheritance diagram for oofem::PointSwarm:
+ Collaboration diagram for oofem::PointSwarm:

Public Member Functions

 PointSwarm ()
 
virtual ~PointSwarm ()
 
 PointSwarm (std::list< int >pointsID)
 
virtual BasicGeometryClone ()
 
virtual void computeNormalSignDist (double &oDist, const FloatArray &iPoint) const
 Functions for computing signed distance in normal and tangential direction. More...
 
virtual void computeTangentialSignDist (double &oDist, const FloatArray &iPoint, double &oMinDistArcPos) const
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Computes the normal distance to the surface not to the center. More...
 
- Public Member Functions inherited from oofem::BasicGeometry
 BasicGeometry ()
 Constructor. More...
 
 BasicGeometry (const BasicGeometry &iBasicGeometry)
 Copy constructor: should be implemented when a class deals with pointers. More...
 
virtual ~BasicGeometry ()
 Destructor. More...
 
virtual double computeDistanceTo (const FloatArray *point)
 Computes normal signed distance between this object and a point. More...
 
virtual void printVTK (int iTStepIndex, int iIndex)
 
virtual void computeLocalCoordinates (FloatArray &oLocCoord, const FloatArray &iPoint) const
 
virtual void giveSubPolygon (std::vector< FloatArray > &oPoints, const double &iXiStart, const double &iXiEnd) const
 
virtual void giveGlobalCoordinates (FloatArray &oGlobalCoord, const double &iArcPos) const
 
virtual void giveTangent (FloatArray &oTangent, const double &iArcPosition) const
 Computes tangential direction at given local coordinate (arcPos) More...
 
virtual bool intersects (Element *element)
 Checks whether an element is interacted, Element reference will be later replaced by Geometry. More...
 
virtual int computeNumberOfIntersectionPoints (Element *element)
 Gives number of intersection points of Geometry entity with an element, Element reference will be later replaced by Geometry. More...
 
virtual void computeIntersectionPoints (Element *element, std::vector< FloatArray > &oIntersectionPoints)
 Gives intersection points between this Geometry and Element. More...
 
const FloatArraygiveVertex (int n) const
 
void setVertices (const std::vector< FloatArray > &iVertices)
 
void removeDuplicatePoints (const double &iTolSquare)
 
void insertVertexFront (const FloatArray &iP)
 
void insertVertexBack (const FloatArray &iP)
 
void clear ()
 
void translate (const FloatArray &iTrans)
 
virtual void giveInputRecord (DynamicInputRecord &input)
 
virtual const char * giveClassName () const
 Gives class name. More...
 
std::string errorInfo (const char *func) const
 
int giveNrVertices () const
 Returns number of Geometry vertices. More...
 
virtual bool isOutside (BasicGeometry *bg)
 
virtual bool isInside (Element *el)
 
virtual bool isInside (FloatArray &point)
 
virtual void printYourself ()
 
virtual contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Stores the state of receiver to output stream. More...
 
virtual contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Restores the state of receiver from output stream. More...
 
virtual void draw (oofegGraphicContext &gc)
 
virtual bool giveTips (TipInfo &oStartTipInfo, TipInfo &oEndTipInfo) const
 Returns start and end tip of the geometry, if applicable. More...
 
virtual void giveBoundingSphere (FloatArray &oCenter, double &oRadius)
 

Protected Attributes

std::list< int > idList
 
- Protected Attributes inherited from oofem::BasicGeometry
std::vector< FloatArraymVertices
 List of geometry vertices. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from oofem::BasicGeometry
static double computeLineDistance (const FloatArray &iP1, const FloatArray &iP2, const FloatArray &iQ1, const FloatArray &iQ2)
 Computes the distance between two lines. More...
 

Detailed Description

Definition at line 360 of file geometry.h.

Constructor & Destructor Documentation

oofem::PointSwarm::PointSwarm ( )
inline

Definition at line 365 of file geometry.h.

virtual oofem::PointSwarm::~PointSwarm ( )
inlinevirtual

Definition at line 366 of file geometry.h.

oofem::PointSwarm::PointSwarm ( std::list< int >  pointsID)

Member Function Documentation

virtual BasicGeometry* oofem::PointSwarm::Clone ( )
inlinevirtual

Implements oofem::BasicGeometry.

Definition at line 369 of file geometry.h.

virtual void oofem::PointSwarm::computeNormalSignDist ( double &  oDist,
const FloatArray iPoint 
) const
inlinevirtual

Functions for computing signed distance in normal and tangential direction.

Used by XFEM level set functions.

Implements oofem::BasicGeometry.

Definition at line 371 of file geometry.h.

References OOFEM_ERROR.

virtual void oofem::PointSwarm::computeTangentialSignDist ( double &  oDist,
const FloatArray iPoint,
double &  oMinDistArcPos 
) const
inlinevirtual

Implements oofem::BasicGeometry.

Definition at line 372 of file geometry.h.

References OOFEM_ERROR.

IRResultType oofem::PointSwarm::initializeFrom ( InputRecord ir)
virtual

Computes the normal distance to the surface not to the center.

Reimplemented from oofem::BasicGeometry.

Definition at line 1811 of file geometry.C.

References _IFT_PointSwarm_nodeID, oofem::IntArray::at(), oofem::IntArray::giveSize(), IR_GIVE_FIELD, and oofem::IRRT_OK.

Member Data Documentation

std :: list< int > oofem::PointSwarm::idList
protected

Definition at line 363 of file geometry.h.


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011