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

#include <triangle.hpp>

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

Public Member Functions

 Triangle (std::vector< double > pt0, std::vector< double > pt1, std::vector< double > pt2, 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

Geometry to determine if a point is inside of a triangular prism (projected from both sides of triangle). An optional max distance from the base triangle can be provided.

Member Function Documentation

◆ InsideGeometry()

bool ablate::mathFunctions::geom::Triangle::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: