Distance calculation for cells with face on a wall. Does not search anything, just takes normal component of distance. More...
#include <nearWallDistNoSearch.H>


Public Member Functions | |
| nearWallDistNoSearch (const fvMesh &mesh) | |
| Construct from components. | |
| virtual | ~nearWallDistNoSearch () |
| Destructor. | |
| virtual void | correct () |
| Correct for mesh geom/topo changes. | |
| Public Member Functions inherited from GeometricBoundaryField< Type, PatchField, GeoMesh > | |
| GeometricBoundaryField (const BoundaryMesh &bmesh) | |
| Construct from a BoundaryMesh, setting patches later. | |
| GeometricBoundaryField (const BoundaryMesh &bmesh, const Internal &iField, const word &patchFieldType=PatchField< Type >::calculatedType()) | |
| Construct from a BoundaryMesh, reference to the internal field and a patch type. | |
| GeometricBoundaryField (const BoundaryMesh &bmesh, const Internal &iField, const wordList &wantedPatchTypes, const wordList &actualPatchTypes=wordList()) | |
| Construct from a BoundaryMesh, reference to the internal field and a wordList of patch types and optional the actual patch types (to override constraint patches). | |
| GeometricBoundaryField (const BoundaryMesh &bmesh, const Internal &iField, const PtrList< PatchField< Type > > &ptfl) | |
| Construct from a BoundaryMesh, reference to the internal field and a PtrList<PatchField<Type>> (to be cloned). | |
| GeometricBoundaryField (const Internal &iField, const GeometricBoundaryField< Type, PatchField, GeoMesh > &btf) | |
| Construct as copy, setting the reference to the internal field. | |
| GeometricBoundaryField (const Internal &iField, const GeometricBoundaryField< Type, PatchField, GeoMesh > &btf, const labelList &patchIDs, const word &patchFieldName) | |
| Construct as copy, setting the reference to the internal field and resetting type of field for given patch IDs. | |
| GeometricBoundaryField (const GeometricBoundaryField &btf) | |
| Copy construct. | |
| GeometricBoundaryField (const BoundaryMesh &bmesh, const Internal &iField, const dictionary &dict) | |
| Construct from dictionary. | |
| this_type & | constCast () const noexcept |
| Return non-const reference to this boundary field. | |
| void | readField (const Internal &iField, const dictionary &dict) |
| Read the boundary field. | |
| void | updateCoeffs () |
| Update the boundary condition coefficients. | |
| void | evaluate (const UPstream::commsTypes commsType=UPstream::defaultCommsType) |
| Evaluate boundary conditions for each patch field. Uses specified or default comms. | |
| template<class UnaryPredicate> | |
| void | evaluate_if (const UnaryPredicate &pred, const UPstream::commsTypes commsType=UPstream::defaultCommsType) |
| Evaluate boundary conditions for patch fields matching the given predicate. Uses specified or default comms. | |
| void | evaluateLocal (const UPstream::commsTypes commsType=UPstream::defaultCommsType) |
| Evaluate boundary conditions after change in local values. Uses specified or default comms. | |
| template<class CoupledPatchType> | |
| void | evaluateCoupled (const UPstream::commsTypes commsType=UPstream::defaultCommsType) |
| Evaluate boundary conditions on coupled patches of the given type, using specified or default comms. | |
| void | evaluateSelected (const labelUList &patchIDs) |
| Evaluate boundary conditions for selected patches. Uses non-blocking comms. | |
| wordList | types () const |
| Return a list of the patch types. | |
| tmp< GeometricBoundaryField > | boundaryInternalField () const |
| Return boundary field of values neighbouring the boundary. | |
| LduInterfaceFieldPtrsList< Type > | interfaces () const |
| Return a list of pointers for each patch field with only those pointing to interfaces being set. | |
| lduInterfaceFieldPtrsList | scalarInterfaces () const |
| Return a list of pointers for each patch field with only those pointing to interfaces being set. | |
| bool | check () const |
| Helper: check if field has been evaluated. See instantiations. | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write boundary field as dictionary entry. | |
| void | writeEntries (Ostream &os) const |
| Write dictionary entries of the individual boundary fields. | |
| void | operator= (const GeometricBoundaryField &bf) |
| Copy assignment from GeometricBoundaryField. | |
| void | operator= (const FieldField< PatchField, Type > &bf) |
| Copy assignment from FieldField<PatchField, Type>. | |
| void | operator= (const Type &val) |
| Assignment to uniform value. | |
| void | operator= (Foam::zero) |
| Assignment to zero. | |
| void | operator== (const GeometricBoundaryField &bf) |
| Forced assignment from GeometricBoundaryField. | |
| void | operator== (const FieldField< PatchField, Type > &bf) |
| Forced assignment from FieldField<PatchField, Type>. | |
| void | operator== (const Type &val) |
| Forced assignment to uniform value. | |
| void | operator== (Foam::zero) |
| Forced assignment to zero. | |
| bool | operator!= (const GeometricBoundaryField &)=delete |
| bool | operator!= (const FieldField< PatchField, Type > &)=delete |
| bool | operator!= (const Type &)=delete |
| bool | operator!= (Foam::zero)=delete |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| bool | check () const |
| Public Member Functions inherited from FieldField< PatchField, Type > | |
| constexpr | FieldField () noexcept |
| Construct null. | |
| tmp< FieldField< PatchField, Type > > | clone () const |
| Clone. | |
| void | negate () |
| Negate this field. See notes in Field. | |
| void | normalise () |
| Normalise this field. See notes in Field. | |
| tmp< FieldField< PatchField, cmptType > > | component (const direction) const |
| Return a component field of the field. | |
| void | replace (const direction, const FieldField< PatchField, cmptType > &) |
| Replace a component field of the field. | |
| void | clamp_min (const Type &lower) |
| Impose lower (floor) clamp on the field values (in-place). | |
| void | clamp_max (const Type &upper) |
| Impose upper (ceiling) clamp on the field values (in-place). | |
| void | clamp_range (const Type &lower, const Type &upper) |
| Clamp field values (in-place) to the specified range. | |
| tmp< FieldField< PatchField, Type > > | T () const |
| Return the field transpose (only defined for second rank tensors). | |
| const Type & | operator[] (const labelPair &index) const |
| Const access to a single field element via (fieldi, elemi). | |
| void | operator= (const FieldField< PatchField, Type > &) |
| Copy assignment. | |
| void | operator+= (const FieldField< PatchField, Type > &) |
| void | operator-= (const FieldField< PatchField, Type > &) |
| void | operator*= (const FieldField< PatchField, scalar > &) |
| void | operator/= (const FieldField< PatchField, scalar > &) |
| Public Member Functions inherited from refCount | |
| constexpr | refCount () noexcept |
| Default construct, initializing count to 0. | |
| int | use_count () const noexcept |
| Return the current reference count. | |
| bool | unique () const noexcept |
| Return true if the reference count is zero. | |
| void | operator++ () noexcept |
| Increment the reference count. | |
| void | operator++ (int) noexcept |
| Increment the reference count. | |
| void | operator-- () noexcept |
| Decrement the reference count. | |
| void | operator-- (int) noexcept |
| Decrement the reference count. | |
| Public Member Functions inherited from PtrList< PatchField< Type > > | |
| Foam::PtrList< PatchField< Type > > | clone (Args &&... args) const |
| constexpr | PtrList () noexcept |
| Default construct. | |
| ~PtrList () | |
| Destructor. Frees all pointers. | |
| const PatchField< Type > * | set (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| void | clear () |
| Clear the PtrList. Delete allocated entries and set size to zero. | |
| void | free () |
| Free memory and nullify all entries. Does not change the list size. | |
| void | resize (const label newLen) |
| Adjust size of PtrList. | |
| void | resize_null (const label newLen) |
Set the addressed list to the given size, deleting all existing entries. Afterwards the list contains all nullptr entries. | |
| PatchField< Type > & | emplace_back (Args &&... args) |
| Construct and append an element to the end of the list, return reference to the new list element. | |
| void | push_back (PatchField< Type > *ptr) |
| Append an element to the end of the list. | |
| PatchField< Type > & | emplace_set (const label i, Args &&... args) |
| Construct and set a new element at given position, (discard old element at that location). | |
| PatchField< Type > & | emplace (const label i, Args &&... args) |
| Same as emplace_set(). | |
| PatchField< Type > & | try_emplace (const label i, Args &&... args) |
| Like emplace_set() but will not overwrite an occupied (non-null) location. | |
| autoPtr< PatchField< Type > > | release (const label i) |
| Release ownership of the pointer at the given position. | |
| void | transfer (PtrList< PatchField< Type > > &list) |
| Transfer into this list and annul the argument list. | |
| void | operator= (const UPtrList< PatchField< Type > > &list) |
| Copy assignment. | |
| void | setSize (const label n) |
| Same as resize(). | |
| void | append (autoPtr< PatchField< Type > > &ptr) |
| Move append an element to the end of the list. | |
| Public Member Functions inherited from UPtrList< PatchField< Type > > | |
| bool | empty () const noexcept |
| True if the list is empty (ie, size() is zero). | |
| label | size () const noexcept |
| The number of entries in the list. | |
| label | capacity () const noexcept |
| Size of the underlying storage. | |
| label | count_nonnull () const noexcept |
| The number of non-nullptr entries in the list. | |
| PatchField< Type > & | front () |
| Reference to the first element of the list. | |
| PatchField< Type > & | back () |
| Reference to the last element of the list. | |
| const PatchField< Type > * | test (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| const PatchField< Type > * | get (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| const PatchField< Type > * | set (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| void | clear () |
| Set list size to zero. | |
| void | free () |
| Nullify all entries. Does not change the list size. | |
| void | resize (const label newLen) |
Change the size of the list. Any new entries are nullptr. | |
| void | resize_null (const label newLen) |
Set the list to the given size and set all entries to nullptr. | |
| label | squeezeNull () |
| Squeeze out nullptr entries in the list of pointers after which any null pointers will be at the end of the list. | |
| void | push_back (PatchField< Type > *ptr) |
| Append an element to the end of the list. | |
| void | swap (UPtrList< PatchField< Type > > &list) noexcept |
| Swap content. | |
| void | transfer (UPtrList< PatchField< Type > > &list) |
| Transfer contents into this list and annul the argument. | |
| void | reorder (const labelUList &oldToNew, const bool check=false) |
| Reorder elements. Reordering must be unique (ie, shuffle). | |
| void | sortOrder (const labelUList &order, const bool check=false) |
| Reorder elements according to new order mapping (newToOld). Reordering must be unique (ie, shuffle). | |
| void | checkNonNull () const |
| Check and raise FatalError if any nullptr exists in the list. | |
| const PatchField< Type > & | at (const label i) const |
| Return const reference to the element at given position. FatalError for bounds problem or nullptr. | |
| const PatchField< Type > & | operator[] (const label i) const |
| Return const reference to the element at given position. FatalError for bounds problem or nullptr. Same as at(). | |
| FOAM_DEPRECATED_FOR (2022-09, "get(), set() or test() methods") const PatchField< Type > *operator()(const label i) const | |
| Deprecated(2022-09) - same as get(). | |
| void | operator= (const UPtrList< PatchField< Type > > &list) |
| Copy assignment (shallow copies addresses). | |
| Ostream & | printAddresses (Ostream &os) const |
| Print pointer addresses to Ostream (debugging only). | |
| Ostream & | writeList (Ostream &os, const bool trimNull=false) const |
| Write UPtrList to Ostream, optionally ignoring null entries. | |
| PatchField< Type > ** | begin_ptr () noexcept |
| Iterator to begin of raw pointers traversal (use with caution). | |
| PatchField< Type > ** | end_ptr () noexcept |
| Iterator beyond end of raw pointers traversal (use with caution). | |
| iterator | begin () |
| Return iterator to begin traversal of non-nullptr entries. | |
| iterator | end () noexcept |
| Return iterator beyond end of UPtrList traversal. | |
| const_iterator | cbegin () const |
| Return const_iterator to begin traversal of non-nullptr entries. | |
| const_iterator | cend () const noexcept |
| Return const_iterator beyond end of UPtrList traversal. | |
| void | setSize (const label n) |
| Alias for resize(). | |
| PatchField< Type > & | first () |
| Reference to the first element of the list. | |
| PatchField< Type > & | last () |
| Return reference to the last element of the list. | |
| void | append (PatchField< Type > *ptr) |
| Append an element to the end of the list. | |
| label | count () const noexcept |
| The number of non-nullptr entries in the list. | |
Additional Inherited Members | |
| Public Types inherited from GeometricBoundaryField< Type, PatchField, GeoMesh > | |
| typedef GeometricBoundaryField< Type, PatchField, GeoMesh > | this_type |
| The template instance used for this GeometricBoundaryField type. | |
| typedef GeoMesh::BoundaryMesh | BoundaryMesh |
| The boundary mesh type for the boundary fields. | |
| typedef DimensionedField< Type, GeoMesh > | Internal |
| The internal field type associated with the boundary fields. | |
| typedef GeometricBoundaryField< Type, PatchField, GeoMesh > | Boundary |
| This boundary field type. | |
| typedef PatchField< Type > | Patch |
| The patch field type for the boundary fields. | |
| Public Types inherited from FieldField< PatchField, Type > | |
| typedef pTraits< Type >::cmptType | cmptType |
| Component type. | |
| Public Types inherited from UPtrList< PatchField< Type > > | |
| typedef PatchField< Type > | value_type |
| Type of values the list contains. | |
| typedef PatchField< Type > & | reference |
| A non-const reference to the value_type. | |
| typedef const PatchField< Type > & | const_reference |
| A const reference to the value_type. | |
| Static Public Member Functions inherited from FieldField< PatchField, Type > | |
| static tmp< FieldField< PatchField, Type > > | NewCalculatedType (const FieldField< PatchField, Type2 > &ff) |
| Return a pointer to a new calculatedFvPatchFieldField created on. | |
| Static Public Attributes inherited from GeometricBoundaryField< Type, PatchField, GeoMesh > | |
| static int | debug |
| Enable debug. | |
| Protected Member Functions inherited from PtrList< PatchField< Type > > | |
| void | readIstream (Istream &is, const INew &inew) |
| Read from Istream using Istream constructor class. | |
| Protected Member Functions inherited from UPtrList< PatchField< Type > > | |
| void | setAddressableSize (const label n) noexcept |
| Adjust addressable size. | |
| label | find_next (label pos) const |
| The next non-null entry after the specified position. | |
| UPtrList (Detail::PtrListDetail< PatchField< Type > > &&ptrs) noexcept | |
| Low-level move construct. | |
| Protected Attributes inherited from UPtrList< PatchField< Type > > | |
| Detail::PtrListDetail< PatchField< Type > > | ptrs_ |
| The list of pointers. | |
Distance calculation for cells with face on a wall. Does not search anything, just takes normal component of distance.
Definition at line 50 of file nearWallDistNoSearch.H.
| nearWallDistNoSearch | ( | const fvMesh & | mesh | ) |
Construct from components.
Definition at line 72 of file nearWallDistNoSearch.C.
|
virtual |
Destructor.
Definition at line 88 of file nearWallDistNoSearch.C.
|
virtual |
Correct for mesh geom/topo changes.
Definition at line 94 of file nearWallDistNoSearch.C.
References forAll, and FieldField< PatchField, Type >::operator[]().
