NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
NeoN::finiteVolume::cellCentred::BoundaryPatchMixin Class Reference

A base class for implementing derived boundary conditions. More...

#include <boundaryPatchMixin.hpp>

Inheritance diagram for NeoN::finiteVolume::cellCentred::BoundaryPatchMixin:
NeoN::finiteVolume::cellCentred::SurfaceBoundary< ValueType > NeoN::finiteVolume::cellCentred::SurfaceBoundaryFactory< ValueType > NeoN::finiteVolume::cellCentred::VolumeBoundary< ValueType > NeoN::finiteVolume::cellCentred::VolumeBoundaryFactory< ValueType >

Public Member Functions

 BoundaryPatchMixin ()
 
virtual ~BoundaryPatchMixin ()=default
 
 BoundaryPatchMixin (const UnstructuredMesh &mesh, localIdx patchID)
 
 BoundaryPatchMixin (localIdx start, localIdx end, localIdx patchID)
 
localIdx patchStart () const
 
localIdx patchEnd () const
 
localIdx patchSize () const
 
localIdx patchID () const
 
std::pair< localIdx, localIdxrange ()
 

Protected Attributes

localIdx patchID_
 The id of this patch.
 
localIdx start_
 The start index of the patch in the boundaryVector.
 
localIdx end_
 The end index of the patch in the boundaryVector.
 

Detailed Description

A base class for implementing derived boundary conditions.

This class holds the information where a given boundary starts and ends in the consecutive boundaryVectors class

Template Parameters
ValueTypeThe data type of the field.
Note
the class template parameters is currently needed since the correctBoundaryConditions functions which takes templated arguments is virtual.

Definition at line 25 of file boundaryPatchMixin.hpp.

Constructor & Destructor Documentation

◆ BoundaryPatchMixin() [1/3]

NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::BoundaryPatchMixin ( )
inline

Definition at line 30 of file boundaryPatchMixin.hpp.

◆ ~BoundaryPatchMixin()

virtual NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::~BoundaryPatchMixin ( )
virtualdefault

◆ BoundaryPatchMixin() [2/3]

NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::BoundaryPatchMixin ( const UnstructuredMesh mesh,
localIdx  patchID 
)
inline

Definition at line 34 of file boundaryPatchMixin.hpp.

◆ BoundaryPatchMixin() [3/3]

NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::BoundaryPatchMixin ( localIdx  start,
localIdx  end,
localIdx  patchID 
)
inline

Definition at line 39 of file boundaryPatchMixin.hpp.

Member Function Documentation

◆ patchEnd()

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::patchEnd ( ) const
inline

Definition at line 45 of file boundaryPatchMixin.hpp.

◆ patchID()

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::patchID ( ) const
inline

Definition at line 49 of file boundaryPatchMixin.hpp.

◆ patchSize()

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::patchSize ( ) const
inline

Definition at line 47 of file boundaryPatchMixin.hpp.

◆ patchStart()

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::patchStart ( ) const
inline

Definition at line 43 of file boundaryPatchMixin.hpp.

◆ range()

std::pair< localIdx, localIdx > NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::range ( )
inline

Definition at line 51 of file boundaryPatchMixin.hpp.

Member Data Documentation

◆ end_

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::end_
protected

The end index of the patch in the boundaryVector.

Definition at line 57 of file boundaryPatchMixin.hpp.

◆ patchID_

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::patchID_
protected

The id of this patch.

Definition at line 55 of file boundaryPatchMixin.hpp.

◆ start_

localIdx NeoN::finiteVolume::cellCentred::BoundaryPatchMixin::start_
protected

The start index of the patch in the boundaryVector.

Definition at line 56 of file boundaryPatchMixin.hpp.


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