OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Triangle Class Reference

Triangle provides geometric data to OpenMD. More...

#include <Triangle.hpp>

Public Member Functions

 Triangle (Vector3d P1, Vector3d P2, Vector3d P3)
 
void setUnitNormal (Vector3d normal)
 
void addVertices (Vector3d P1, Vector3d P2, Vector3d P3)
 
void addVertexSD (StuntDouble *thisSD)
 
std::vector< StuntDouble * > getVertices ()
 
void setArea (RealType area)
 
Vector3d getNormal ()
 
Vector3d getUnitNormal ()
 
void flipNormal ()
 
RealType getArea ()
 
RealType computeArea ()
 
Vector3d computeNormal ()
 
Vector3d computeCentroid ()
 
Vector3d computeUnitNormal ()
 
void setCentroid (Vector3d centroid)
 
Vector3d getCentroid ()
 
Vector3d getFacetVelocity ()
 
void setFacetVelocity (Vector3d facetVelocity)
 
void setFacetMass (RealType mass)
 
RealType getFacetMass ()
 
Vector3d vertex1 () const
 
Vector3d vertex2 () const
 
Vector3d vertex3 () const
 
RealType a ()
 
RealType b ()
 
RealType c ()
 
RealType getHydroLength ()
 
RealType getIncircleRadius ()
 
RealType getCircumcircleRadius ()
 
Mat3x3d computeHydrodynamicTensor (RealType viscosity)
 
Vector3d cartesionToBarycentric (Vector3d p)
 
Vector3d barycentricToCartesian (const Vector3d &barycentric) const
 

Detailed Description

Triangle provides geometric data to OpenMD.

Triangle includes information about the normal, centroid and the atoms that belong to this triangle.

Definition at line 65 of file Triangle.hpp.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

Triangle::Triangle ( )

Definition at line 49 of file Triangle.cpp.

◆ Triangle() [2/2]

Triangle::Triangle ( Vector3d P1,
Vector3d P2,
Vector3d P3 )

Definition at line 55 of file Triangle.cpp.

◆ ~Triangle()

virtual OpenMD::Triangle::~Triangle ( )
inlinevirtual

Definition at line 69 of file Triangle.hpp.

Member Function Documentation

◆ a()

RealType OpenMD::Triangle::a ( )
inline

Definition at line 154 of file Triangle.hpp.

◆ addVertexSD()

void OpenMD::Triangle::addVertexSD ( StuntDouble * thisSD)
inline

Definition at line 78 of file Triangle.hpp.

◆ addVertices()

void Triangle::addVertices ( Vector3d P1,
Vector3d P2,
Vector3d P3 )

Definition at line 71 of file Triangle.cpp.

◆ b()

RealType OpenMD::Triangle::b ( )
inline

Definition at line 156 of file Triangle.hpp.

◆ barycentricToCartesian()

Vector3d OpenMD::Triangle::barycentricToCartesian ( const Vector3d & barycentric) const
inline

Definition at line 199 of file Triangle.hpp.

◆ c()

RealType OpenMD::Triangle::c ( )
inline

Definition at line 158 of file Triangle.hpp.

◆ cartesionToBarycentric()

Vector3d OpenMD::Triangle::cartesionToBarycentric ( Vector3d p)
inline

Definition at line 185 of file Triangle.hpp.

◆ computeArea()

RealType Triangle::computeArea ( )

Definition at line 82 of file Triangle.cpp.

◆ computeCentroid()

Vector3d Triangle::computeCentroid ( )

Definition at line 101 of file Triangle.cpp.

◆ computeHydrodynamicTensor()

Mat3x3d Triangle::computeHydrodynamicTensor ( RealType viscosity)

Definition at line 107 of file Triangle.cpp.

◆ computeNormal()

Vector3d Triangle::computeNormal ( )

Definition at line 88 of file Triangle.cpp.

◆ computeUnitNormal()

Vector3d Triangle::computeUnitNormal ( )

Definition at line 94 of file Triangle.cpp.

◆ flipNormal()

void OpenMD::Triangle::flipNormal ( )
inline

Definition at line 102 of file Triangle.hpp.

◆ getArea()

RealType OpenMD::Triangle::getArea ( )
inline

Definition at line 114 of file Triangle.hpp.

◆ getCentroid()

Vector3d OpenMD::Triangle::getCentroid ( )
inline

Definition at line 132 of file Triangle.hpp.

◆ getCircumcircleRadius()

RealType OpenMD::Triangle::getCircumcircleRadius ( )
inline

Definition at line 172 of file Triangle.hpp.

◆ getFacetMass()

RealType OpenMD::Triangle::getFacetMass ( )
inline

Definition at line 148 of file Triangle.hpp.

◆ getFacetVelocity()

Vector3d OpenMD::Triangle::getFacetVelocity ( )
inline

Definition at line 140 of file Triangle.hpp.

◆ getHydroLength()

RealType OpenMD::Triangle::getHydroLength ( )
inline

Definition at line 160 of file Triangle.hpp.

◆ getIncircleRadius()

RealType OpenMD::Triangle::getIncircleRadius ( )
inline

Definition at line 170 of file Triangle.hpp.

◆ getNormal()

Vector3d OpenMD::Triangle::getNormal ( )
inline

Definition at line 87 of file Triangle.hpp.

◆ getUnitNormal()

Vector3d OpenMD::Triangle::getUnitNormal ( )
inline

Definition at line 94 of file Triangle.hpp.

◆ getVertices()

std::vector< StuntDouble * > OpenMD::Triangle::getVertices ( )
inline

Definition at line 80 of file Triangle.hpp.

◆ setArea()

void OpenMD::Triangle::setArea ( RealType area)
inline

Definition at line 82 of file Triangle.hpp.

◆ setCentroid()

void OpenMD::Triangle::setCentroid ( Vector3d centroid)
inline

Definition at line 127 of file Triangle.hpp.

◆ setFacetMass()

void OpenMD::Triangle::setFacetMass ( RealType mass)
inline

Definition at line 146 of file Triangle.hpp.

◆ setFacetVelocity()

void OpenMD::Triangle::setFacetVelocity ( Vector3d facetVelocity)
inline

Definition at line 142 of file Triangle.hpp.

◆ setUnitNormal()

void OpenMD::Triangle::setUnitNormal ( Vector3d normal)
inline

Definition at line 71 of file Triangle.hpp.

◆ vertex1()

Vector3d OpenMD::Triangle::vertex1 ( ) const
inline

Definition at line 150 of file Triangle.hpp.

◆ vertex2()

Vector3d OpenMD::Triangle::vertex2 ( ) const
inline

Definition at line 151 of file Triangle.hpp.

◆ vertex3()

Vector3d OpenMD::Triangle::vertex3 ( ) const
inline

Definition at line 152 of file Triangle.hpp.


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