Continuum Membrane 719025a62b1e384a6ff80e2f2a223ef4012153dc
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Vertex Class Reference

Defines a vertex in Mesh. More...

#include <Vertex.hpp>

Public Member Functions

 Vertex ()
 Construct a new Vertex object with members declared not initialized.
 
 Vertex (const int index, const double x, const double y, const double z)
 Constructs a new Vertex object with x,y,z coordinates.
 
 Vertex (const int index, const Matrix &coord)
 Constructs a new Vertex object with Matrix of size (3,1)
 
void update_coord_with_prev_coord ()
 Update the current vertex coordinate with the previous coordinate by copying the values of the previous coordinate matrix to the current coordinate.
 
void approximate_unit_normal_vector (std::vector< Face > &faces)
 Approximate the normal vector of the current vertex by averaging the normal vector of all surrounding faces. The output will be store in member variable normVector.
 

Public Attributes

int index
 index number of the vertex
 
Matrix coord
 coordinate of the vertex
 
Matrix coordPrev
 coordinate of previous step
 
Matrix coordRef
 reference coordinate
 
std::vector< int > adjacentVertices
 index of adjacent vertices
 
std::vector< int > adjacentFaces
 inde of adjacent faces
 
Matrix normVector
 normal vector to the corresponding point on limit surface
 
int layerIndex = 0
 used in multi-layer (a.k.a. leaflet) model; 0 for middle layer; +1 for upper layer
 
VertexType type = VertexType::Real
 used in boundary condition
 
int reflectiveVertexIndex = -1
 reflective vertex used in periodic boundary condition
 
bool isBoundary = false
 
Force force
 force exerted on the vertex
 
Force forcePrev
 force exerted on the vertex from the previous iteration
 
bool isGhost = false
 “Ghost vertices” are defined as points on the boundary of the triangular mesh that only serve to provide reference when calculating limit surface on the boundary, as calculating position of a point on the limit surface require the coordinates of 12 neighboring vertices (if regular). However, the “ghost vertices” themselves do not correspond to real points on the surface.
 

Detailed Description

Defines a vertex in Mesh.

Constructor & Destructor Documentation

◆ Vertex() [1/3]

Vertex::Vertex ( )

Construct a new Vertex object with members declared not initialized.

◆ Vertex() [2/3]

Vertex::Vertex ( const int  index,
const double  x,
const double  y,
const double  z 
)

Constructs a new Vertex object with x,y,z coordinates.

Parameters
indexThe index of the vertex.
xThe x coordinate of the vertex.
yThe y coordinate of the vertex.
zThe z coordinate of the vertex.

◆ Vertex() [3/3]

Vertex::Vertex ( const int  index,
const Matrix coord 
)

Constructs a new Vertex object with Matrix of size (3,1)

Parameters
indexThe index of the vertex
coordMatrix(3,1) coordinates of the vertex

Member Function Documentation

◆ approximate_unit_normal_vector()

void Vertex::approximate_unit_normal_vector ( std::vector< Face > &  faces)

Approximate the normal vector of the current vertex by averaging the normal vector of all surrounding faces. The output will be store in member variable normVector.

◆ update_coord_with_prev_coord()

void Vertex::update_coord_with_prev_coord ( )

Update the current vertex coordinate with the previous coordinate by copying the values of the previous coordinate matrix to the current coordinate.

Member Data Documentation

◆ adjacentFaces

std::vector<int> Vertex::adjacentFaces

inde of adjacent faces

◆ adjacentVertices

std::vector<int> Vertex::adjacentVertices

index of adjacent vertices

◆ coord

Matrix Vertex::coord

coordinate of the vertex

◆ coordPrev

Matrix Vertex::coordPrev

coordinate of previous step

◆ coordRef

Matrix Vertex::coordRef

reference coordinate

◆ force

Force Vertex::force

force exerted on the vertex

◆ forcePrev

Force Vertex::forcePrev

force exerted on the vertex from the previous iteration

◆ index

int Vertex::index

index number of the vertex

◆ isBoundary

bool Vertex::isBoundary = false
Deprecated:
point on boundary of the membrane; determined by boundary condition

◆ isGhost

bool Vertex::isGhost = false

“Ghost vertices” are defined as points on the boundary of the triangular mesh that only serve to provide reference when calculating limit surface on the boundary, as calculating position of a point on the limit surface require the coordinates of 12 neighboring vertices (if regular). However, the “ghost vertices” themselves do not correspond to real points on the surface.

◆ layerIndex

int Vertex::layerIndex = 0

used in multi-layer (a.k.a. leaflet) model; 0 for middle layer; +1 for upper layer

◆ normVector

Matrix Vertex::normVector

normal vector to the corresponding point on limit surface

◆ reflectiveVertexIndex

int Vertex::reflectiveVertexIndex = -1

reflective vertex used in periodic boundary condition

◆ type

VertexType Vertex::type = VertexType::Real

used in boundary condition


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