MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon Class Reference
Collaboration diagram for FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon:
[legend]

Public Member Functions

 CsgPolygon (std::vector< CsgVertex > _vertices, MInt _setIndex, MInt _faceId, MInt _faceType, MInt _bodyId)
 
 CsgPolygon (std::vector< CsgVertex > _vertices, MInt _setIndex, MInt _faceId, MInt _faceType, MInt _bodyId, CsgPlane _plane)
 
 ~CsgPolygon ()=default
 
CsgPolygon clone () const
 
void flip ()
 

Public Attributes

std::vector< CsgVertexvertices
 
CsgPlane plane
 
MInt setIndex {}
 
MInt bodyId {}
 
MInt faceId {}
 
MInt faceType {}
 

Private Member Functions

 CsgPolygon ()=default
 

Detailed Description

template<MInt nDim, class SysEqn>
class FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon

Definition at line 1560 of file fvmbcartesiansolverxd.h.

Constructor & Destructor Documentation

◆ CsgPolygon() [1/3]

template<MInt nDim, class SysEqn >
FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::CsgPolygon ( std::vector< CsgVertex _vertices,
MInt  _setIndex,
MInt  _faceId,
MInt  _faceType,
MInt  _bodyId 
)
inline

Definition at line 1570 of file fvmbcartesiansolverxd.h.

1570 {
1571 for(MInt i = 0; (unsigned)i < _vertices.size(); i++) {
1572 vertices.push_back(_vertices[i].clone());
1573 }
1574 setIndex = _setIndex;
1575 faceId = _faceId;
1576 faceType = _faceType;
1577 bodyId = _bodyId;
1578 CsgVector abc[nDim];
1579 for(MInt i = 0; i < nDim; i++)
1580 abc[i] = vertices[i].pos;
1581 CsgPlane tmp = CsgPlane(abc);
1582 plane = tmp;
1583 }
int32_t MInt
Definition: maiatypes.h:62

◆ CsgPolygon() [2/3]

template<MInt nDim, class SysEqn >
FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::CsgPolygon ( std::vector< CsgVertex _vertices,
MInt  _setIndex,
MInt  _faceId,
MInt  _faceType,
MInt  _bodyId,
CsgPlane  _plane 
)
inline

Definition at line 1585 of file fvmbcartesiansolverxd.h.

1586 {
1587 for(MInt i = 0; (unsigned)i < _vertices.size(); i++) {
1588 vertices.push_back(_vertices[i].clone());
1589 }
1590 setIndex = _setIndex;
1591 faceId = _faceId;
1592 faceType = _faceType;
1593 bodyId = _bodyId;
1594 plane = _plane.clone();
1595 }

◆ ~CsgPolygon()

template<MInt nDim, class SysEqn >
FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::~CsgPolygon ( )
default

◆ CsgPolygon() [3/3]

template<MInt nDim, class SysEqn >
FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::CsgPolygon ( )
privatedefault

Member Function Documentation

◆ clone()

template<MInt nDim, class SysEqn >
CsgPolygon FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::clone ( ) const
inline

Definition at line 1599 of file fvmbcartesiansolverxd.h.

1599 {
1601 return tmp;
1602 }

◆ flip()

template<MInt nDim, class SysEqn >
void FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::flip ( )
inline

Definition at line 1604 of file fvmbcartesiansolverxd.h.

1604 {
1605 this->plane.flip();
1606 std::vector<CsgVertex> tmp;
1607 for(auto rit = vertices.rbegin(); rit != vertices.rend(); ++rit) {
1608 tmp.push_back((*rit));
1609 }
1610 vertices.swap(tmp);
1611 }

Member Data Documentation

◆ bodyId

template<MInt nDim, class SysEqn >
MInt FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::bodyId {}

Definition at line 1566 of file fvmbcartesiansolverxd.h.

◆ faceId

template<MInt nDim, class SysEqn >
MInt FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::faceId {}

Definition at line 1567 of file fvmbcartesiansolverxd.h.

◆ faceType

template<MInt nDim, class SysEqn >
MInt FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::faceType {}

Definition at line 1568 of file fvmbcartesiansolverxd.h.

◆ plane

template<MInt nDim, class SysEqn >
CsgPlane FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::plane

Definition at line 1564 of file fvmbcartesiansolverxd.h.

◆ setIndex

template<MInt nDim, class SysEqn >
MInt FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::setIndex {}

Definition at line 1565 of file fvmbcartesiansolverxd.h.

◆ vertices

template<MInt nDim, class SysEqn >
std::vector<CsgVertex> FvMbCartesianSolverXD< nDim, SysEqn >::CsgPolygon::vertices

Definition at line 1562 of file fvmbcartesiansolverxd.h.


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