ABLATE Source Documentation  0.12.34
ablate::mathFunctions::geom::ConvexPolygon Class Reference

#include <convexPolygon.hpp>

+ Inheritance diagram for ablate::mathFunctions::geom::ConvexPolygon:

Public Member Functions

 ConvexPolygon (std::vector< std::vector< double >> points, double maxDistance={}, const std::shared_ptr< mathFunctions::MathFunction > &insideValues={}, const std::shared_ptr< mathFunctions::MathFunction > &outsideValues={})
 
 ConvexPolygon (std::vector< std::shared_ptr< std::vector< double >>> points, double maxDistance={}, const std::shared_ptr< mathFunctions::MathFunction > &insideValues={}, const std::shared_ptr< mathFunctions::MathFunction > &outsideValues={})
 
bool InsideGeometry (const double *xyz, const int &ndims, const double &time) const override
 
- Public Member Functions inherited from ablate::mathFunctions::geom::Geometry
double Eval (const double &x, const double &y, const double &z, const double &t) const override
 
double Eval (const double *xyz, const int &ndims, const double &t) const override
 
void Eval (const double &x, const double &y, const double &z, const double &t, std::vector< double > &result) const override
 
void Eval (const double *xyz, const int &ndims, const double &t, std::vector< double > &result) const override
 
void * GetContext () override
 
PetscFunction GetPetscFunction () override
 
const std::shared_ptr< mathFunctions::MathFunction > & InsideValues () const
 
const std::shared_ptr< mathFunctions::MathFunctionOutsideValues () const
 
- Public Member Functions inherited from ablate::mathFunctions::MathFunction
virtual ~MathFunction ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from ablate::mathFunctions::geom::Geometry
 Geometry (const std::shared_ptr< mathFunctions::MathFunction > &insideValues, const std::shared_ptr< mathFunctions::MathFunction > &outsideValues)
 
- Static Protected Member Functions inherited from ablate::mathFunctions::geom::Geometry
static PetscErrorCode GeometryPetscFunction (PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, PetscScalar *u, void *ctx)
 

Detailed Description

Creates a convex polygon out of the center location and triangles.

Constructor & Destructor Documentation

◆ ConvexPolygon()

ablate::mathFunctions::geom::ConvexPolygon::ConvexPolygon ( std::vector< std::shared_ptr< std::vector< double >>>  points,
double  maxDistance = {},
const std::shared_ptr< mathFunctions::MathFunction > &  insideValues = {},
const std::shared_ptr< mathFunctions::MathFunction > &  outsideValues = {} 
)
explicit

This is just helper constructor to because the registrar does not support vector of vectors

Parameters
points
maxDistance
insideValues
outsideValues

Member Function Documentation

◆ InsideGeometry()

bool ablate::mathFunctions::geom::ConvexPolygon::InsideGeometry ( const double *  xyz,
const int &  ndims,
const double &  time 
) const
overridevirtual

determines if inside geometry

Parameters
xyz
ndims
time
Returns

Implements ablate::mathFunctions::geom::Geometry.


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