NeoN
A framework for CFD software
|
Represents a volume field in a finite volume method. More...
#include <volumeField.hpp>
Public Types | |
using | VectorValueType = ValueType |
![]() | |
typedef ValueType | ElementType |
Public Member Functions | |
VolumeField (const Executor &exec, std::string fieldName, const UnstructuredMesh &mesh, const std::vector< VolumeBoundary< ValueType > > &boundaryConditions) | |
Constructor for a uninitialized VolumeField. | |
VolumeField (const Executor &exec, std::string name, const UnstructuredMesh &mesh, const Vector< ValueType > &internalVector, const std::vector< VolumeBoundary< ValueType > > &boundaryConditions) | |
Constructor for a VolumeField with a given internal field. | |
VolumeField (const Executor &exec, std::string name, const UnstructuredMesh &mesh, const Vector< ValueType > &internalVector, const BoundaryData< ValueType > &boundaryVectors, const std::vector< VolumeBoundary< ValueType > > &boundaryConditions) | |
Constructor for a VolumeField with a given internal and boundary field. | |
VolumeField (const Executor &exec, std::string fieldName, const UnstructuredMesh &mesh, const Field< ValueType > &domainVector, const std::vector< VolumeBoundary< ValueType > > &boundaryConditions, Database &db, std::string dbKey, std::string collectionName) | |
Constructor for a VolumeField with a given internal field and database. | |
VolumeField (const VolumeField &other) | |
VolumeField< ValueType > & | operator-= (const ValueType rhs) |
VolumeField< ValueType > & | operator+= (const ValueType rhs) |
void | correctBoundaryConditions () |
Corrects the boundary conditions of the surface field. | |
bool | hasDatabase () const |
Returns true if the field has a database, false otherwise. | |
Database & | db () |
Retrieves the database. | |
const Database & | db () const |
Retrieves the database. | |
bool | registered () const |
Returns true if the field is registered in the database, false otherwise. | |
std::vector< VolumeBoundary< ValueType > > | boundaryConditions () const |
![]() | |
DomainMixin (const Executor &exec, std::string fieldName, const UnstructuredMesh &mesh, const Field< ValueType > &field) | |
Constructor for DomainMixin. | |
DomainMixin (const Executor &exec, std::string fieldName, const UnstructuredMesh &mesh, const Vector< ValueType > &internalVector, const BoundaryData< ValueType > &boundaryVectors) | |
Constructor for DomainMixin. | |
const Vector< ValueType > & | internalVector () const |
Returns a const reference to the internal field. | |
Vector< ValueType > & | internalVector () |
Returns a reference to the internal field. | |
localIdx | size () const |
Returns the size of the internal field. | |
const BoundaryData< ValueType > & | boundaryData () const |
Returns a const reference to the boundary field. | |
BoundaryData< ValueType > & | boundaryData () |
Returns a reference to the boundary field. | |
const Executor & | exec () const |
Returns a const reference to the executor object. | |
const UnstructuredMesh & | mesh () const |
Returns a const reference to the unstructured mesh object. | |
Public Attributes | |
std::string | key |
std::string | fieldCollectionName |
![]() | |
std::string | name |
Additional Inherited Members | |
![]() | |
Executor | exec_ |
const UnstructuredMesh & | mesh_ |
Field< ValueType > | field_ |
Represents a volume field in a finite volume method.
The VolumeField class is a template class that represents a cell-centered field in a finite volume method. It inherits from the DomainMixin class and provides methods for correcting boundary conditions.
ValueType | The value type of the field. |
Definition at line 26 of file volumeField.hpp.
using NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VectorValueType = ValueType |
Definition at line 31 of file volumeField.hpp.
NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VolumeField | ( | const Executor & | exec, |
std::string | fieldName, | ||
const UnstructuredMesh & | mesh, | ||
const std::vector< VolumeBoundary< ValueType > > & | boundaryConditions | ||
) |
Constructor for a uninitialized VolumeField.
exec | The executor |
fieldName | The name of the field |
mesh | The underlying mesh |
boundaryConditions | a vector of boundary conditions |
NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VolumeField | ( | const Executor & | exec, |
std::string | name, | ||
const UnstructuredMesh & | mesh, | ||
const Vector< ValueType > & | internalVector, | ||
const std::vector< VolumeBoundary< ValueType > > & | boundaryConditions | ||
) |
Constructor for a VolumeField with a given internal field.
exec | The executor |
name | The name of the field |
mesh | The underlying mesh |
internalVector | the underlying internal field |
boundaryConditions | a vector of boundary conditions |
NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VolumeField | ( | const Executor & | exec, |
std::string | name, | ||
const UnstructuredMesh & | mesh, | ||
const Vector< ValueType > & | internalVector, | ||
const BoundaryData< ValueType > & | boundaryVectors, | ||
const std::vector< VolumeBoundary< ValueType > > & | boundaryConditions | ||
) |
Constructor for a VolumeField with a given internal and boundary field.
name | The name of the field |
mesh | The underlying mesh |
internalVector | the underlying internal field |
boundaryVectors | the underlying boundary data fields |
boundaryConditions | a vector of boundary conditions |
NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VolumeField | ( | const Executor & | exec, |
std::string | fieldName, | ||
const UnstructuredMesh & | mesh, | ||
const Field< ValueType > & | domainVector, | ||
const std::vector< VolumeBoundary< ValueType > > & | boundaryConditions, | ||
Database & | db, | ||
std::string | dbKey, | ||
std::string | collectionName | ||
) |
Constructor for a VolumeField with a given internal field and database.
exec | The executor |
fieldName | The name of the field |
mesh | The underlying mesh |
internalVector | the underlying internal field |
boundaryConditions | a vector of boundary conditions |
db | The database |
dbKey | The key of the field in the database |
collectionName | The name of the field collection in the database |
NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::VolumeField | ( | const VolumeField< ValueType > & | other | ) |
|
inline |
Definition at line 168 of file volumeField.hpp.
void NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::correctBoundaryConditions | ( | ) |
Corrects the boundary conditions of the surface field.
This function applies the correctBoundaryConditions() method to each boundary condition in the field.
|
inline |
Retrieves the database.
Definition at line 134 of file volumeField.hpp.
|
inline |
Retrieves the database.
Definition at line 150 of file volumeField.hpp.
|
inline |
Returns true if the field has a database, false otherwise.
Definition at line 127 of file volumeField.hpp.
VolumeField< ValueType > & NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::operator+= | ( | const ValueType | rhs | ) |
VolumeField< ValueType > & NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::operator-= | ( | const ValueType | rhs | ) |
|
inline |
Returns true if the field is registered in the database, false otherwise.
Definition at line 166 of file volumeField.hpp.
std::string NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::fieldCollectionName |
Definition at line 174 of file volumeField.hpp.
std::string NeoN::finiteVolume::cellCentred::VolumeField< ValueType >::key |
Definition at line 173 of file volumeField.hpp.