|
NeoN
A framework for CFD software
|
Represents the boundary fields for a computational domain. More...
#include <boundaryData.hpp>
Public Types | |
| using | BoundaryDataType = ValueType |
Public Member Functions | |
| ~BoundaryData () | |
| BoundaryData (const BoundaryData< ValueType > &rhs) | |
| Copy constructor. | |
| BoundaryData (const Executor &exec, const BoundaryData< ValueType > &rhs) | |
| Copy constructor. | |
| BoundaryData (const Executor &exec, localIdx nBoundaryFaces, localIdx nBoundaryTypes) | |
| constructor with default initialized Vectors from sizes. | |
| BoundaryData (const Executor &exec, const std::vector< localIdx > &offsets) | |
| constructor from a given offsets vector @warn all members except offsets are default constructed | |
| const Vector< ValueType > & | value () const |
| Get the view storing the computed values from the boundary condition. | |
| Vector< ValueType > & | value () |
| Get the view storing the computed values from the boundary condition. | |
| const Vector< ValueType > & | refValue () const |
| Get the view storing the Dirichlet boundary values. | |
| Vector< ValueType > & | refValue () |
| Get the view storing the Dirichlet boundary values. | |
| const Vector< scalar > & | valueFraction () const |
| Get the view storing the fraction of the boundary value. | |
| Vector< scalar > & | valueFraction () |
| Get the view storing the fraction of the boundary value. | |
| const Vector< ValueType > & | refGrad () const |
| Get the view storing the Neumann boundary values. | |
| Vector< ValueType > & | refGrad () |
| Get the view storing the Neumann boundary values. | |
| const Vector< int > & | boundaryTypes () const |
| Get the view storing the boundary types. | |
| const Vector< localIdx > & | offset () const |
| Get the view storing the offsets of each boundary. | |
| localIdx | nBoundaries () const |
| Get the number of boundaries. | |
| localIdx | nBoundaryFaces () const |
| Get the number of boundary faces. | |
| localIdx | nBoundaryFaces (localIdx patchId) const |
| Get the number of boundary faces for this patch. | |
| const Executor & | exec () |
| BoundaryData< ValueType > & | operator= (const BoundaryData< ValueType > &rhs) |
| BoundaryData< ValueType > & | operator= (const BoundaryData< ValueType > &&rhs) |
| void | waitAll () const |
| std::pair< localIdx, localIdx > | range (localIdx patchId) const |
| Get the range for a given patchId. | |
Friends | |
| struct | NoWaitAccess |
| Grants NoWaitAccess (and only it) access to valueNoWait(). | |
Represents the boundary fields for a computational domain.
The BoundaryData class stores the boundary conditions and related information for a computational domain. It provides access to the computed values, reference values, value fractions, reference gradients, boundary types, offsets, and the number of boundaries and boundary faces.
| ValueType | The type of the underlying field values |
Definition at line 41 of file boundaryData.hpp.
| using NeoN::BoundaryData< ValueType >::BoundaryDataType = ValueType |
Definition at line 46 of file boundaryData.hpp.
|
inline |
Definition at line 48 of file boundaryData.hpp.
|
inline |
Copy constructor.
| rhs | The boundaryVectors object to be copied. |
Definition at line 60 of file boundaryData.hpp.
|
inline |
Copy constructor.
| rhs | The boundaryVectors object to be copied. |
Definition at line 72 of file boundaryData.hpp.
|
inline |
constructor with default initialized Vectors from sizes.
| exec | - The executor |
| nBoundaryFaces | - The total number of boundary faces |
| nBoundaryType | - The total number of boundary patches |
Definition at line 86 of file boundaryData.hpp.
|
inline |
constructor from a given offsets vector @warn all members except offsets are default constructed
| exec | - The executor |
| offsets | - The total number of boundary faces |
Definition at line 101 of file boundaryData.hpp.
|
inline |
Get the view storing the boundary types.
Definition at line 158 of file boundaryData.hpp.
|
inline |
Definition at line 187 of file boundaryData.hpp.
|
inline |
Get the number of boundaries.
Definition at line 170 of file boundaryData.hpp.
|
inline |
Get the number of boundary faces.
Definition at line 176 of file boundaryData.hpp.
|
inline |
Get the number of boundary faces for this patch.
Definition at line 182 of file boundaryData.hpp.
|
inline |
Get the view storing the offsets of each boundary.
Definition at line 164 of file boundaryData.hpp.
|
inline |
Definition at line 206 of file boundaryData.hpp.
|
inline |
Definition at line 189 of file boundaryData.hpp.
|
inline |
Get the range for a given patchId.
Definition at line 376 of file boundaryData.hpp.
|
inline |
Get the view storing the Neumann boundary values.
Definition at line 152 of file boundaryData.hpp.
|
inline |
Get the view storing the Neumann boundary values.
Definition at line 146 of file boundaryData.hpp.
|
inline |
Get the view storing the Dirichlet boundary values.
Definition at line 134 of file boundaryData.hpp.
|
inline |
Get the view storing the Dirichlet boundary values.
Definition at line 128 of file boundaryData.hpp.
|
inline |
Get the view storing the computed values from the boundary condition.
Definition at line 121 of file boundaryData.hpp.
|
inline |
Get the view storing the computed values from the boundary condition.
Definition at line 109 of file boundaryData.hpp.
|
inline |
Get the view storing the fraction of the boundary value.
Definition at line 143 of file boundaryData.hpp.
|
inline |
Get the view storing the fraction of the boundary value.
Definition at line 137 of file boundaryData.hpp.
|
inline |
Definition at line 314 of file boundaryData.hpp.
|
friend |
Grants NoWaitAccess (and only it) access to valueNoWait().
Definition at line 384 of file boundaryData.hpp.