Processor patch. More...
#include <processorFaPatch.H>


Public Member Functions | |
| TypeName ("processor") | |
| Runtime type information. | |
| processorFaPatch (const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi, const label myProcNo, const label neighbProcNo, const word &patchType=typeName) | |
| Construct from components with automatically generated standard name. | |
| processorFaPatch (const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType=typeName) | |
| Construct from dictionary. | |
| virtual | ~processorFaPatch () |
| Destructor. | |
| virtual label | interfaceSize () const noexcept |
| Return interface size. | |
| int | myProcNo () const noexcept |
| Return processor number. | |
| int | neighbProcNo () const noexcept |
| Return neighbour processor number. | |
| virtual bool | coupled () const |
| Return true if running parallel. | |
| virtual bool | owner () const noexcept |
| Does this side own the patch ? | |
| virtual int | tag () const |
| The message tag to use for communication. | |
| virtual label | comm () const |
| Return communicator used for communication. | |
| virtual const tensorField & | forwardT () const |
| Return face transformation tensor. | |
| virtual tmp< vectorField > | delta () const |
| Return delta (P to N) vectors across coupled patch. | |
| const vectorField & | neighbEdgeCentres () const noexcept |
| Return processor-neighbour patch edge centres. | |
| const vectorField & | neighbEdgeLengths () const noexcept |
| Return processor-neighbour patch edge lengths. | |
| tmp< vectorField > | neighbEdgeNormals () const |
| Return processor-neighbour patch edge unit normals. | |
| const vectorField & | neighbEdgeFaceCentres () const noexcept |
| Return processor-neighbour patch neighbour face centres. | |
| const labelList & | neighbPoints () const |
| Return neighbour point labels. This is for my local point the. | |
| const labelList & | nonGlobalPatchPoints () const |
| Return the set of labels of the processor patch points which are. | |
| virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData) const |
| Return the values of the given internal data adjacent to the interface as a field. | |
| virtual tmp< labelField > | interfaceInternalField (const labelUList &internalData, const labelUList &edgeFaces) const |
| Return the values of the given internal data adjacent to the interface as a field using edgeFaces. | |
| virtual void | initTransfer (const Pstream::commsTypes commsType, const labelUList &interfaceData) const |
| Initialise interface data transfer. | |
| virtual tmp< labelField > | transfer (const Pstream::commsTypes commsType, const labelUList &interfaceData) const |
| Transfer and return neighbour field. | |
| virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &internalData) const |
| Initialise neighbour field transfer. | |
| virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &internalData) const |
| Return neighbour field. | |
| virtual tmp< labelField > | internalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &internalData, const labelUList &edgeCells) const |
| Return neighbour field using mapping. | |
| virtual void | write (Ostream &os) const |
| Write the patch data as a dictionary. | |
| Public Member Functions inherited from coupledFaPatch | |
| TypeNameNoDebug ("coupled") | |
| Runtime type information. | |
| coupledFaPatch (const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchIndex, const word &patchType) | |
| Construct from components. | |
| coupledFaPatch (const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType) | |
| Construct from dictionary. | |
| virtual | ~coupledFaPatch ()=default |
| Destructor. | |
| virtual bool | neighbour () const |
| Does the coupled side own the patch ? | |
| virtual label | referPatchID () const |
| The referring patchID (eg, for cyclics). | |
| bool | separated () const |
| Are the coupled planes separated? | |
| const vectorField & | separation () const |
| Return the offset (distance) vector from one side of the couple. | |
| const tensorField & | forwardT () const |
| Return face transformation tensor. | |
| const tensorField & | reverseT () const |
| Return neighbour-cell transformation tensor. | |
| bool | parallel () const |
| Are the cyclic planes parallel. | |
| virtual const labelUList & | faceCells () const |
| Return faceCell addressing: lduInterface virtual function. | |
| Public Member Functions inherited from lduInterface | |
| TypeNameNoDebug ("lduInterface") | |
| Runtime type information. | |
| lduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~lduInterface ()=default |
| Destructor. | |
| virtual void | initInternalFieldTransfer (const Pstream::commsTypes commsType, const labelUList &iF, const labelUList &faceCells) const |
| Initialise transfer of internal field adjacent to the interface using faceCells mapping. | |
| Public Member Functions inherited from faPatch | |
| TypeName ("patch") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, faPatch, dictionary,(const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType),(name, dict, index, bm, patchType)) | |
| faPatch (const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi, const word &patchType) | |
| Construct from components. | |
| faPatch (const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm, const word &patchType) | |
| Construct from dictionary. | |
| faPatch (const faPatch &p, const faBoundaryMesh &bm) | |
| Copy construct, resetting the boundary mesh. | |
| faPatch (const faPatch &p, const faBoundaryMesh &bm, const label index, const labelUList &edgeLabels, const label nbrPolyPatchi) | |
| Copy construct, resetting boundary mesh and addressing. | |
| virtual autoPtr< faPatch > | clone (const faBoundaryMesh &bm) const |
| Construct and return a clone, resetting the boundary mesh. | |
| virtual autoPtr< faPatch > | clone (const faBoundaryMesh &bm, const labelUList &edgeLabels, const label index, const label nbrPolyPatchi) const |
| Construct and return a clone, resetting the edge list and boundary mesh. | |
| virtual | ~faPatch () |
| Destructor. | |
| const labelList & | edgeLabels () const noexcept |
| Return the list of edges. | |
| label | nPoints () const |
| Number of patch points. | |
| label | nEdges () const noexcept |
| Number of edge labels (boundary edges) addressed by this patch. | |
| label | ngbPolyPatchIndex () const noexcept |
| The neighbour polyPatch index. | |
| const faBoundaryMesh & | boundaryMesh () const noexcept |
| Return boundaryMesh reference. | |
| label | offset () const |
| The offset where this patch starts in the boundary edge list. | |
| label | start () const |
| Patch start in edge list. | |
| virtual label | size () const |
| Patch size is the number of edge labels, but can be overloaded. | |
| label | whichEdge (const label edgei) const |
| Return label of edge in patch from global edge label. | |
| template<class T> | |
| const List< T >::subList | patchSlice (const UList< T > &values) const |
| This patch slice from the complete list of values, which has size mesh::nEdges(), using the virtual patch size. | |
| template<class T> | |
| const List< T >::subList | boundarySlice (const UList< T > &values) const |
| This patch slice from the list of boundary values, which has size mesh::nBoundaryEdges(), using the virtual patch size. | |
| List< labelPair > | boundaryConnections () const |
| List of proc/face for the boundary edge neighbours in locally reordered edge numbering. | |
| labelList | boundaryProcs () const |
| Boundary edge neighbour processors (does not include own proc). | |
| List< labelPair > | boundaryProcSizes () const |
| List of proc/size for the boundary edge neighbour processors (does not include own proc). | |
| const labelList & | pointLabels () const |
| Return patch point labels. | |
| const labelListList & | pointEdges () const |
| Return patch point-edge addressing. | |
| tmp< vectorField > | ngbPolyPatchFaceNormals () const |
| Return normals of neighbour polyPatch faces. | |
| tmp< vectorField > | ngbPolyPatchPointNormals () const |
| Return normals of neighbour polyPatch joined points. | |
| const labelUList & | edgeFaces () const |
| Return edge-face addressing. | |
| const vectorField & | edgeCentres () const |
| Return edge centres. | |
| const vectorField & | edgeLengths () const |
| Return edge length vectors, like the faMesh::Le() method. | |
| const scalarField & | magEdgeLengths () const |
| Return edge length magnitudes, like the faMesh::magLe() method. | |
| tmp< vectorField > | edgeNormals () const |
| Return edge unit normals, like the faMesh::unitLe() method. | |
| tmp< vectorField > | edgeFaceCentres () const |
| Return neighbour face centres. | |
| const scalarField & | weights () const |
| Return patch weighting factors. | |
| const scalarField & | lPN () const |
| Return patch geodesic distance between P and N. | |
| const scalarField & | deltaCoeffs () const |
| Return patch edge - neighbour face distances. | |
| const vectorField & | skewCorrectionVectors () const |
| Return patch skew-correction vectors. | |
| void | resetEdges (const labelUList &newEdges) |
| Reset the list of edges (use with caution). | |
| void | resetEdges (labelList &&newEdges) |
| Reset the list of edges (use with caution). | |
| template<class Type> | |
| void | patchInternalField (const UList< Type > &internalData, const labelUList &addressing, UList< Type > &pfld) const |
| Extract internal field next to patch using specified addressing. | |
| template<class Type> | |
| void | patchInternalField (const UList< Type > &internalData, UList< Type > &pfld) const |
| Extract internal field next to patch as patch field using edgeFaces() mapping. | |
| template<class Type> | |
| tmp< Field< Type > > | patchInternalField (const UList< Type > &internalData) const |
| Return given internal field next to patch as patch field using edgeFaces() mapping. | |
| template<class GeometricField, class AnyType = bool> | |
| const GeometricField::Patch & | patchField (const GeometricField &gf) const |
| Return the patch field of the GeometricField corresponding to this patch. | |
| template<class GeometricField, class AnyType = bool> | |
| const GeometricField::Patch & | lookupPatchField (const word &fldName) const |
| Lookup the named field from the local registry and return the patch field corresponding to this patch. | |
| template<class GeometricField> | |
| const GeometricField::Patch * | cfindPatchField (const word &fldName) const |
| Lookup the named field (if any) from the local registry and return the patch field corresponding to this patch. | |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | patchInternalField (const UList< Type > &internalData) const |
| Public Member Functions inherited from patchIdentifier | |
| patchIdentifier (const patchIdentifier &)=default | |
| Copy construct. | |
| patchIdentifier (patchIdentifier &&)=default | |
| Move construct. | |
| patchIdentifier & | operator= (const patchIdentifier &)=default |
| Copy assignment. | |
| patchIdentifier & | operator= (patchIdentifier &&)=default |
| Move assignment. | |
| virtual | ~patchIdentifier ()=default |
| Destructor. | |
| patchIdentifier () | |
| Default construct: name="", index=0. | |
| patchIdentifier (const word &name, const label index) | |
| Construct from mandatory components. | |
| patchIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
| Construct from components. | |
| patchIdentifier (const word &name, const dictionary &dict, const label index) | |
| Construct from dictionary. | |
| patchIdentifier (const patchIdentifier &ident, const label newIndex) | |
| Copy construct, resetting the index (if non-negative). | |
| patchIdentifier (patchIdentifier &&ident, const label newIndex) | |
| Move construct, resetting the index (if non-negative). | |
| const word & | name () const noexcept |
| The patch name. | |
| word & | name () noexcept |
| Modifiable patch name. | |
| label | index () const noexcept |
| The index of this patch in the boundaryMesh. | |
| label & | index () noexcept |
| Modifiable index of this patch in the boundaryMesh. | |
| const word & | physicalType () const noexcept |
| The (optional) physical type of the patch. | |
| word & | physicalType () noexcept |
| Modifiable (optional) physical type of the patch. | |
| const wordList & | inGroups () const noexcept |
| The (optional) groups that the patch belongs to. | |
| wordList & | inGroups () noexcept |
| Modifiable (optional) groups that the patch belongs to. | |
| bool | inGroup (const word &name) const |
| True if given name is in a group. | |
| void | addGroup (const word &name) |
| Add (unique) group for the patch. | |
| void | removeGroup (const word &name) |
| Remove group for the patch. | |
| void | write (Ostream &os) const |
| Write (physicalType, inGroups) dictionary entries (without surrounding braces). | |
| Public Member Functions inherited from List< label > | |
| constexpr | List () noexcept |
| Default construct. | |
| List (const label len) | |
| Construct with given size. | |
| List (const label len, const label &val) | |
| Construct with given size and value for all elements. | |
| List (const label len, Foam::zero) | |
| Construct with given size initializing all elements to zero. | |
| List (Foam::one, const label &val) | |
| Construct with length=1, copying the value as the only content. | |
| List (Foam::one, label &&val) | |
| Construct with length=1, moving the value as the only content. | |
| List (Foam::one, Foam::zero) | |
| Construct with length=1, initializing content to zero. | |
| List (const List< label > &list) | |
| Copy construct from list. | |
| List (const UList< label > &list) | |
| Copy construct contents from list. | |
| List (List< label > &list, bool reuse) | |
| Construct as copy or re-use as specified. | |
| List (const UList< label > &list, const labelUList &indices) | |
| Copy construct subset of list. | |
| List (const UList< label > &list, const FixedList< label, N > &indices) | |
| Copy construct subset of list. | |
| List (const FixedList< label, N > &list) | |
| Construct as copy of FixedList<T, N>. | |
| List (const UPtrList< label > &list) | |
| Construct as copy of UPtrList<T> content. | |
| List (const IndirectListBase< label, Addr > &list) | |
| Construct as copy of IndirectList contents. | |
| List (std::initializer_list< label > list) | |
| Construct from an initializer list. | |
| List (List< label > &&list) noexcept | |
| Move construct from List. | |
| List (DynamicList< label, SizeMin > &&list) | |
| Move construct from DynamicList. | |
| List (Istream &is) | |
| Construct from Istream. | |
| autoPtr< List< label > > | clone () const |
| Clone. | |
| ~List () | |
| Destructor. | |
| void | clear () |
| Clear the list, i.e. set size to zero. | |
| void | resize (const label len) |
| Adjust allocated size of list. | |
| void | resize (const label len, const label &val) |
| Adjust allocated size of list and set val for new elements. | |
| void | resize_copy (label count, const label len) |
| Change allocated size of list, retaining the first count elements. | |
| void | resize_fill (const label len, const label &val) |
| Adjust allocated size of list and set val for all elements. | |
| void | resize_nocopy (const label len) |
| Adjust allocated size of list without necessarily. | |
| void | transfer (List< label > &list) |
| Transfer the contents of the argument List into this list and annul the argument list. | |
| void | transfer (DynamicList< label, SizeMin > &list) |
| Transfer the contents of the argument List into this list and annul the argument list. | |
| label & | newElmt (const label i) |
| Return subscript-checked element of UList and resizing the list if required. | |
| label & | emplace_back (Args &&... args) |
| Construct an element at the end of the list, return reference to the new list element. | |
| void | push_back (const label &val) |
| Append an element at the end of the list. | |
| void | push_back (label &&val) |
| Move append an element at the end of the list. | |
| void | push_back (const UList< label > &list) |
| Append a List to the end of this list. | |
| void | push_back (const IndirectListBase< label, Addr > &list) |
| Append IndirectList contents at the end of this list. | |
| label | push_uniq (const label &val) |
| Append an element if not already in the list. | |
| void | pop_back (label n=1) |
| Reduce size by 1 or more elements. Can be called on an empty list. | |
| void | operator= (const UList< label > &list) |
| Assignment to UList operator. Takes linear time. | |
| void | operator= (const List< label > &list) |
| Assignment operator. Takes linear time. | |
| void | operator= (const IndirectListBase< label, Addr > &list) |
| Assignment from IndirectList. Takes linear time. | |
| void | operator= (const FixedList< label, N > &list) |
| Copy assignment from FixedList. | |
| void | operator= (std::initializer_list< label > list) |
| Assignment to an initializer list. | |
| void | operator= (const label &val) |
| Assignment of all entries to the given value. | |
| void | operator= (Foam::zero) |
| Assignment of all entries to zero. | |
| void | operator= (List< label > &&list) |
| Move assignment. Takes constant time. | |
| void | operator= (DynamicList< label, SizeMin > &&list) |
| Move assignment. Takes constant time. | |
| Istream & | readList (Istream &is) |
| Read List from Istream, discarding contents of existing List. | |
| void | shallowCopy (const UList< label > &)=delete |
| No shallowCopy permitted. | |
| bool | set (const label i, bool val=true) |
| A bitSet::set() method for a list of bool. | |
| void | append (const label &val) |
| Append an element at the end of the list. | |
| void | append (label &&val) |
| Move append an element at the end of the list. | |
| void | append (const UList< label > &list) |
| Append a List to the end of this list. | |
| void | append (const IndirectListBase< label, Addr > &list) |
| Append IndirectList contents at the end of this list. | |
| label | appendUniq (const label &val) |
| Same as push_uniq(). | |
| void | setSize (label n) |
| Alias for resize(). | |
| void | setSize (label n, const label &val) |
| Alias for resize(). | |
| List (const Expression::ListExpression< E > &expr) | |
| Construct from value expression. | |
| void | operator= (const Expression::ListExpression< E > &expr) |
| Assign values from expression. | |
| void | resize (const label len) |
| Public Member Functions inherited from UList< label > | |
| UList (const UList< label > &) noexcept=default | |
| Copy construct, shallow copy. | |
| UList (UList< label > &&) noexcept=default | |
| Move construct, shallow copy. | |
| UList< label > & | operator= (const UList< label > &)=delete |
| No copy assignment (default: shallow copy). | |
| UList< label > & | operator= (UList< label > &&) noexcept=default |
| Move assignment, shallow copy. | |
| constexpr | UList () noexcept |
| Default construct, zero-sized and nullptr. | |
| UList (label *__restrict__ ptr, const label len) noexcept | |
| Construct from components. | |
| UList (SubList< label > &&) noexcept | |
| Move construct from a SubList, shallow copy. | |
| label | fcIndex (const label i) const noexcept |
| The forward circular index. The next index in the list which returns to the first at the end of the list. | |
| label | rcIndex (const label i) const noexcept |
| The reverse circular index. The previous index in the list which returns to the last at the beginning of the list. | |
| const label & | fcValue (const label i) const |
| Return forward circular value (ie, next value in the list). | |
| label & | fcValue (const label i) |
| Return forward circular value (ie, next value in the list). | |
| const label & | rcValue (const label i) const |
| Return reverse circular value (ie, previous value in the list). | |
| label & | rcValue (const label i) |
| Return reverse circular value (ie, previous value in the list). | |
| const label * | cdata () const noexcept |
| Return pointer to the underlying array serving as data storage. | |
| label * | data () noexcept |
| Return pointer to the underlying array serving as data storage. | |
| const char * | cdata_bytes () const noexcept |
| Return pointer to the underlying array serving as data storage,. | |
| char * | data_bytes () noexcept |
| Return pointer to the underlying array serving as data storage,. | |
| label & | front () |
| Access first element of the list, position [0]. | |
| const label & | front () const |
| Access first element of the list. | |
| label & | back () |
| Access last element of the list, position [size()-1]. | |
| const label & | back () const |
| Access last element of the list, position [size()-1]. | |
| std::streamsize | size_bytes () const noexcept |
| Number of contiguous bytes for the List data. | |
| std::streamsize | byteSize () const |
| Number of contiguous bytes for the List data, runtime FatalError if type is not contiguous. | |
| void | checkStart (const label start) const |
| Check start is within valid range [0,size). | |
| void | checkSize (const label size) const |
| Check size is within valid range [0,size]. | |
| void | checkRange (const label start, const label len) const |
| Check that start and length define a valid range. | |
| void | checkIndex (const label i) const |
| Check index is within valid range [0,size). | |
| bool | uniform () const |
| True if all entries have identical values, and list is non-empty. | |
| bool | contains (const label &val) const |
| True if the value is contained in the list. | |
| bool | contains (const label &val, label pos, label len=-1) const |
| Is the value contained in the list? | |
| label | find (const label &val) const |
| Find index of the first occurrence of the value. | |
| label | find (const label &val, label pos, label len=-1) const |
| Find index of the first occurrence of the value. | |
| label | rfind (const label &val, label pos=-1) const |
| Find index of the last occurrence of the value. | |
| void | moveFirst (const label i) |
| Move element to the first position. | |
| void | moveLast (const label i) |
| Move element to the last position. | |
| void | swapFirst (const label i) |
| Swap element with the first element. Fatal on an empty list. | |
| void | swapLast (const label i) |
| Swap element with the last element. Fatal on an empty list. | |
| void | shallowCopy (label *__restrict__ ptr, const label len) noexcept |
| Copy the pointer and size. | |
| void | shallowCopy (std::nullptr_t) noexcept |
| Copy nullptr and zero size. | |
| void | shallowCopy (const UList< label > &list) noexcept |
| Copy the pointer and size held by the given UList. | |
| void | deepCopy (const UList< label > &list) |
| Copy elements of the given UList. Sizes must match! | |
| void | deepCopy (const IndirectListBase< label, Addr > &list) |
| Copy elements of the given indirect list. Sizes must match! | |
| SubList< label > | slice (const label pos, label len=-1) |
| Return SubList slice (non-const access) - no range checking. | |
| const SubList< label > | slice (const label pos, label len=-1) const |
| Return SubList slice (const access) - no range checking. | |
| SubList< label > | slice (const labelRange &range) |
| Return SubList slice (non-const access) - with range checking. | |
| const SubList< label > | slice (const labelRange &range) const |
| Return SubList slice (const access) - with range checking. | |
| label & | operator[] (const label i) |
| Return element of UList. | |
| const label & | operator[] (const label i) const |
| Return element of constant UList. | |
| operator const Foam::List< label > & () const | |
| Allow cast to a const List<T>&. | |
| void | operator= (const label &val) |
| Assignment of all entries to the given value. | |
| void | operator= (Foam::zero) |
| Assignment of all entries to zero. | |
| iterator | begin () noexcept |
| Return an iterator to begin traversing the UList. | |
| iterator | end () noexcept |
| Return an iterator to end traversing the UList. | |
| iterator | begin (const label i) noexcept |
| Return iterator at offset i from begin, clamped to [0,size] range. | |
| const_iterator | cbegin () const noexcept |
| Return const_iterator to begin traversing the constant UList. | |
| const_iterator | cend () const noexcept |
| Return const_iterator to end traversing the constant UList. | |
| const_iterator | begin () const noexcept |
| Return const_iterator to begin traversing the constant UList. | |
| const_iterator | end () const noexcept |
| Return const_iterator to end traversing the constant UList. | |
| const_iterator | cbegin (const label i) const noexcept |
| Return const_iterator at offset i from begin, clamped to [0,size] range. | |
| const_iterator | begin (const label i) const noexcept |
| Return const_iterator at offset i from begin, clamped to [0,size] range. | |
| reverse_iterator | rbegin () |
| Return reverse_iterator to begin reverse traversing the UList. | |
| reverse_iterator | rend () |
| Return reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | crbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | crend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | rbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | rend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| bool | empty () const noexcept |
| True if List is empty (ie, size() is zero). | |
| label | size () const noexcept |
| The number of elements in the container. | |
| label | capacity () const noexcept |
| Size of the underlying storage. | |
| void | swap (UList< label > &list) noexcept |
| Swap content with another UList of the same type in constant time. | |
| bool | operator== (const UList< label > &list) const |
| Equality operation on ULists of the same type. | |
| bool | operator!= (const UList< label > &list) const |
| The opposite of the equality operation. Takes linear time. | |
| bool | operator< (const UList< label > &list) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator> (const UList< label > &list) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator<= (const UList< label > &list) const |
| Return true if !(a > b). Takes linear time. | |
| bool | operator>= (const UList< label > &list) const |
| Return true if !(a < b). Takes linear time. | |
| Istream & | readList (Istream &is) |
| Read List contents from Istream. | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write the List as a dictionary entry with keyword. | |
| Ostream & | writeList (Ostream &os, const label shortLen=0) const |
| Write List, with line-breaks in ASCII when length exceeds shortLen. | |
| bool | all () const |
| True if all entries are 'true' or if the list is empty. | |
| bool | any () const |
| True if any entries are 'true'. | |
| bool | none () const |
| True if no entries are 'true'. | |
| bool | test (const label i) const |
Test bool value at specified position, always false for out-of-range access. | |
| bool | get (const label i) const |
Return bool value at specified position, always false for out-of-range access. | |
| bool | unset (const label i) |
Unset the bool entry at specified position, always false for out-of-range access. | |
| std::string_view | view () const |
| Return a string_view of the charList. Content is non-modifiable. | |
| label & | first () |
| Access first element of the list, position [0]. | |
| const label & | first () const |
| Access first element of the list. | |
| label & | last () |
| Access last element of the list, position [size()-1]. | |
| const label & | last () const |
| Access last element of the list, position [size()-1]. | |
| bool | found (const label &val, label pos=0) const |
| Same as contains(). | |
| auto | expr () const |
| Wrap value as expression. | |
| void | operator= (const Expression::ListExpression< E > &expr) |
| Assign values from expression. | |
| operator const Foam::List< label > & () const | |
| Allow cast to a const List<T>&. | |
| Public Member Functions inherited from processorLduInterface | |
| TypeNameNoDebug ("processorLduInterface") | |
| Runtime type information. | |
| processorLduInterface () noexcept=default | |
| Default construct. | |
| virtual | ~processorLduInterface ()=default |
| Destructor. | |
| template<class Type> | |
| void | send (const UPstream::commsTypes commsType, const UList< Type > &f) const |
| Raw send function. | |
| template<class Type> | |
| void | receive (const UPstream::commsTypes commsType, UList< Type > &f) const |
| Raw receive function. | |
| template<class Type> | |
| tmp< Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
| Raw receive function returning field. | |
| template<class Type> | |
| void | compressedSend (const UPstream::commsTypes commsType, const UList< Type > &f) const |
| Raw send function with data compression. | |
| template<class Type> | |
| void | compressedReceive (const UPstream::commsTypes commsType, UList< Type > &f) const |
| Raw receive function with data compression. | |
| template<class Type> | |
| tmp< Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
| Raw receive function with data compression returning field. | |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | receive (const UPstream::commsTypes commsType, const label size) const |
| template<class Type> | |
| Foam::tmp< Foam::Field< Type > > | compressedReceive (const UPstream::commsTypes commsType, const label size) const |
Protected Member Functions | |
| processorFaPatch (const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi, const label myProcNo, const label neighbProcNo, const word &patchType=typeName) | |
| Construct from components with specified name. | |
| void | makeWeights (scalarField &) const |
| Make patch weighting factors. | |
| void | makeLPN (scalarField &) const |
| Make patch geodesic distance between P and N. | |
| void | makeDeltaCoeffs (scalarField &) const |
| Make patch face - neighbour cell distances. | |
| void | makeCorrectionVectors (vectorField &) const |
| Make non-orthogonality correction vectors. | |
| void | makeNonGlobalPatchPoints () const |
| Find non-globa patch points. | |
| void | initGeometry (PstreamBuffers &) |
| Initialise the calculation of the patch geometry. | |
| void | calcGeometry (PstreamBuffers &) |
| Calculate the patch geometry. | |
| void | initMovePoints (PstreamBuffers &, const pointField &) |
| Initialise the patches for moving points. | |
| void | movePoints (PstreamBuffers &, const pointField &) |
| Correct patches after moving points. | |
| virtual void | initUpdateMesh (PstreamBuffers &) |
| Initialise the update of the patch topology. | |
| virtual void | updateMesh (PstreamBuffers &) |
| Update of the patch topology. | |
| Protected Member Functions inherited from coupledFaPatch | |
| void | calcTransformTensors (const vector &Cf, const vector &Cr, const vector &nf, const vector &nr) const |
| Calculate the uniform transformation tensors. | |
| void | calcTransformTensors (const vectorField &Cf, const vectorField &Cr, const vectorField &nf, const vectorField &nr) const |
| Calculate the transformation tensors. | |
| Protected Member Functions inherited from faPatch | |
| void | calcPointLabels () const |
| Calculate patch point labels. | |
| void | calcPointEdges () const |
| Calculate patch point-edge addressing. | |
| Protected Member Functions inherited from UList< label > | |
| void | setAddressableSize (const label n) noexcept |
| Set addressed size to be inconsistent with allocated storage. | |
| void | size (const label n) |
| Older name for setAddressableSize. | |
| void | writeEntry (Ostream &os) const |
| Write the UList with its compound type. | |
| labelRange | validateRange (const labelRange &requestedRange) const |
| Return a validated (start,size) subset range, which means that it always addresses a valid section of the list. | |
| void | fill_uniform (const label &val) |
| Assign all entries to the given value. | |
| void | fill_uniform (Foam::zero) |
| Assign all entries to zero. | |
Additional Inherited Members | |
| Public Types inherited from faPatch | |
| typedef faBoundaryMesh | BoundaryMesh |
| The boundary type associated with the patch. | |
| Public Types inherited from List< label > | |
| typedef SubList< label > | subList |
| Declare type of subList. | |
| Public Types inherited from UList< label > | |
| typedef label | value_type |
| The value type the list contains. | |
| typedef label * | pointer |
| The pointer type for non-const access to value_type items. | |
| typedef const label * | const_pointer |
| The pointer type for const access to value_type items. | |
| typedef label & | reference |
| The type used for storing into value_type objects. | |
| typedef const label & | const_reference |
| The type used for reading from constant value_type objects. | |
| typedef label * | iterator |
| Random access iterator for traversing a UList. | |
| typedef const label * | const_iterator |
| Random access iterator for traversing a UList. | |
| typedef label | size_type |
| The type to represent the size of a UList. | |
| typedef label | difference_type |
| The difference between iterator objects. | |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| Reverse iterator (non-const access). | |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| Reverse iterator (const access). | |
| using | is_List |
| Have unique tag. | |
| Static Public Member Functions inherited from faPatch | |
| static autoPtr< faPatch > | New (const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm) |
| Return pointer to a new patch created on freestore from dictionary. | |
| static autoPtr< faPatch > | New (const word &patchType, const word &name, const dictionary &dict, const label index, const faBoundaryMesh &bm) |
| Return pointer to a new patch created on freestore from dictionary. | |
| static bool | constraintType (const word &patchType) |
| Return true if the given type is a constraint type. | |
| static wordList | constraintTypes () |
| Return a list of all the constraint patch types. | |
| Static Public Member Functions inherited from patchIdentifier | |
| static word | defaultName (const label n=-1) |
| Default patch name: "patch" or "patchN". | |
| Static Public Member Functions inherited from List< label > | |
| static const List< label > & | null () noexcept |
| Return a null List (reference to a nullObject). Behaves like an empty List. | |
| Static Public Member Functions inherited from UList< label > | |
| static const UList< label > & | null () noexcept |
| Return a null UList (reference to a nullObject). Behaves like an empty UList. | |
| static constexpr label | max_size () noexcept |
| The size of the largest possible UList. | |
Processor patch.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Definition at line 52 of file processorFaPatch.H.
|
protected |
Construct from components with specified name.
Definition at line 48 of file processorFaPatch.C.
References coupledFaPatch::coupledFaPatch(), faPatch::edgeLabels(), patchIdentifier::index(), myProcNo(), Foam::name(), and neighbProcNo().
Referenced by processorFaPatch().


| processorFaPatch | ( | const labelUList & | edgeLabels, |
| const label | index, | ||
| const faBoundaryMesh & | bm, | ||
| const label | nbrPolyPatchi, | ||
| const label | myProcNo, | ||
| const label | neighbProcNo, | ||
| const word & | patchType = typeName ) |
Construct from components with automatically generated standard name.
Definition at line 71 of file processorFaPatch.C.
References faPatch::edgeLabels(), patchIdentifier::index(), myProcNo(), neighbProcNo(), and processorFaPatch().

| processorFaPatch | ( | const word & | name, |
| const dictionary & | dict, | ||
| const label | index, | ||
| const faBoundaryMesh & | bm, | ||
| const word & | patchType = typeName ) |
Construct from dictionary.
Definition at line 96 of file processorFaPatch.C.
References coupledFaPatch::coupledFaPatch(), dict, UList< label >::get(), patchIdentifier::index(), and Foam::name().

|
virtual |
Destructor.
Definition at line 39 of file processorFaPatch.C.
|
protectedvirtual |
Make patch weighting factors.
Implements coupledFaPatch.
Definition at line 390 of file processorFaPatch.C.
References edgeCentres(), forAll, faPatch::lPN(), Foam::mag(), neighbEdgeFaceCentres(), UPstream::parRun(), and Foam::skew().

|
protectedvirtual |
Make patch geodesic distance between P and N.
Implements coupledFaPatch.
Definition at line 417 of file processorFaPatch.C.
References edgeCentres(), faPatch::edgeFaceCentres(), faPatch::lPN(), Foam::mag(), neighbEdgeFaceCentres(), UPstream::parRun(), and Foam::skew().

|
protectedvirtual |
Make patch face - neighbour cell distances.
Implements coupledFaPatch.
Definition at line 444 of file processorFaPatch.C.
References alpha, coupledFaPatch::delta(), delta(), faPatch::edgeLengths(), faPatch::edgeNormals(), PrimitivePatch< FaceList, PointField >::edges(), forAll, faPatch::lPN(), Foam::mag(), Foam::max(), boundaryMesh::mesh(), Field< Type >::normalise(), Foam::normalised(), UPstream::parRun(), PrimitivePatch< FaceList, PointField >::points(), points, tmp< T >::ref(), and faPatch::start().

|
protectedvirtual |
Make non-orthogonality correction vectors.
Implements coupledFaPatch.
Definition at line 481 of file processorFaPatch.C.
References alpha, delta(), faPatch::edgeLengths(), PrimitivePatch< FaceList, PointField >::edges(), forAll, Foam::mag(), boundaryMesh::mesh(), Field< Type >::normalise(), Foam::normalised(), UPstream::parRun(), PrimitivePatch< FaceList, PointField >::points(), points, tmp< T >::ref(), faPatch::start(), and Foam::Zero.

|
protected |
Find non-globa patch points.
Definition at line 124 of file processorFaPatch.C.
References forAll, UList< T >::found(), Foam::identity(), boundaryMesh::mesh(), PrimitivePatch< FaceList, PointField >::meshPoints(), nPoints, UPstream::parRun(), pointLabels(), and List< T >::resize().
Referenced by nonGlobalPatchPoints().


|
protectedvirtual |
Initialise the calculation of the patch geometry.
Implements coupledFaPatch.
Definition at line 169 of file processorFaPatch.C.
References edgeCentres(), faPatch::edgeFaceCentres(), faPatch::edgeLengths(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, name, neighbProcNo(), Foam::nl, PstreamBuffers::nProcs(), and UPstream::parRun().
Referenced by initMovePoints().


|
protectedvirtual |
Calculate the patch geometry.
Implements coupledFaPatch.
Definition at line 193 of file processorFaPatch.C.
References coupledFaPatch::calcTransformTensors(), e, edgeCentres(), faPatch::edgeNormals(), forAll, Foam::mag(), faPatch::magEdgeLengths(), neighbEdgeNormals(), neighbProcNo(), Foam::nl, UPstream::parRun(), and WarningInFunction.
Referenced by movePoints().


|
protectedvirtual |
Initialise the patches for moving points.
Implements coupledFaPatch.
Definition at line 236 of file processorFaPatch.C.
References initGeometry(), faPatch::movePoints(), and p.

|
protectedvirtual |
Correct patches after moving points.
Implements coupledFaPatch.
Definition at line 247 of file processorFaPatch.C.
References calcGeometry().

|
protectedvirtual |
Initialise the update of the patch topology.
Reimplemented from faPatch.
Definition at line 257 of file processorFaPatch.C.
References e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, faPatch::initUpdateMesh(), mesh, name, neighbProcNo(), Foam::nl, nPoints, PstreamBuffers::nProcs(), UPstream::parRun(), faPatch::patchSlice(), faPatch::pointEdges(), and pointLabels().

|
protectedvirtual |
Update of the patch topology.
Reimplemented from faPatch.
Definition at line 305 of file processorFaPatch.C.
References e, UList< T >::find(), forAll, patchIdentifier::index(), mesh, neighbPoints(), neighbProcNo(), faPatch::nPoints(), nPoints, UPstream::parRun(), faPatch::patchSlice(), pointLabels(), UList< T >::size(), and faPatch::updateMesh().

| TypeName | ( | "processor" | ) |
Runtime type information.
References dict, faPatch::edgeLabels(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, patchIdentifier::index(), myProcNo(), Foam::name(), and neighbProcNo().

|
inlinevirtualnoexcept |
Return interface size.
Definition at line 225 of file processorFaPatch.H.
References Foam::noexcept, and faPatch::size().

|
inlinevirtualnoexcept |
Return processor number.
Implements processorLduInterface.
Definition at line 233 of file processorFaPatch.H.
References Foam::noexcept.
Referenced by processorFaPatch(), processorFaPatch(), and TypeName().

|
inlinevirtualnoexcept |
Return neighbour processor number.
Implements processorLduInterface.
Definition at line 241 of file processorFaPatch.H.
References Foam::noexcept.
Referenced by calcGeometry(), initGeometry(), initUpdateMesh(), processorFaPatch(), processorFaPatch(), TypeName(), and updateMesh().

|
inlinevirtual |
Return true if running parallel.
Reimplemented from coupledFaPatch.
Definition at line 249 of file processorFaPatch.H.
References UPstream::parRun().

|
inlinevirtualnoexcept |
Does this side own the patch ?
Implements coupledFaPatch.
Definition at line 257 of file processorFaPatch.H.
References Foam::noexcept.
|
inlinevirtual |
The message tag to use for communication.
Implements processorLduInterface.
Definition at line 266 of file processorFaPatch.H.
References UPstream::msgType().

|
virtual |
Return communicator used for communication.
Implements processorLduInterface.
Definition at line 118 of file processorFaPatch.C.
References boundaryMesh::mesh().

|
inlinevirtual |
Return face transformation tensor.
Implements processorLduInterface.
Definition at line 280 of file processorFaPatch.H.
References coupledFaPatch::forwardT().
Referenced by delta().


|
virtual |
Return delta (P to N) vectors across coupled patch.
Implements coupledFaPatch.
Definition at line 519 of file processorFaPatch.C.
References coupledFaPatch::delta(), forwardT(), neighbEdgeCentres(), neighbEdgeFaceCentres(), coupledFaPatch::parallel(), UPstream::parRun(), and Foam::transform().
Referenced by makeCorrectionVectors(), and makeDeltaCoeffs().


|
inlinenoexcept |
Return processor-neighbour patch edge centres.
Definition at line 294 of file processorFaPatch.H.
References Foam::noexcept.
Referenced by delta().

|
inlinenoexcept |
Return processor-neighbour patch edge lengths.
Definition at line 302 of file processorFaPatch.H.
References Foam::noexcept.
| Foam::tmp< Foam::vectorField > neighbEdgeNormals | ( | ) | const |
Return processor-neighbour patch edge unit normals.
Definition at line 359 of file processorFaPatch.C.
References tmp< T >::New().
Referenced by calcGeometry().


|
inlinenoexcept |
Return processor-neighbour patch neighbour face centres.
Definition at line 315 of file processorFaPatch.H.
References Foam::noexcept.
Referenced by delta(), makeLPN(), and makeWeights().

| const Foam::labelList & neighbPoints | ( | ) | const |
Return neighbour point labels. This is for my local point the.
corresponding local point on the other side. Call faBoundaryMesh::updateMesh() on all processors before using this.
Definition at line 367 of file processorFaPatch.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, name, and Foam::nl.
Referenced by updateMesh().


| const Foam::labelList & nonGlobalPatchPoints | ( | ) | const |
Return the set of labels of the processor patch points which are.
non-global, i.e. present in this processorFaPatch
Definition at line 554 of file processorFaPatch.C.
References makeNonGlobalPatchPoints().

|
virtual |
Return the values of the given internal data adjacent to the interface as a field.
Implements coupledFaPatch.
Definition at line 565 of file processorFaPatch.C.
References faPatch::patchInternalField().

|
virtual |
Return the values of the given internal data adjacent to the interface as a field using edgeFaces.
Implements lduInterface.
Definition at line 574 of file processorFaPatch.C.
References faPatch::edgeFaces(), tmp< T >::New(), faPatch::patchInternalField(), and faPatch::size().

|
virtual |
Initialise interface data transfer.
Reimplemented from coupledFaPatch.
Definition at line 586 of file processorFaPatch.C.
References processorLduInterface::send().

|
virtual |
Transfer and return neighbour field.
Implements coupledFaPatch.
Definition at line 596 of file processorFaPatch.C.
References processorLduInterface::receive(), and faPatch::size().

|
virtual |
Initialise neighbour field transfer.
Reimplemented from coupledFaPatch.
Definition at line 606 of file processorFaPatch.C.
References faPatch::patchInternalField(), and processorLduInterface::send().

|
virtual |
Return neighbour field.
Implements coupledFaPatch.
Definition at line 616 of file processorFaPatch.C.
References processorLduInterface::receive(), and faPatch::size().

|
virtual |
Return neighbour field using mapping.
Definition at line 626 of file processorFaPatch.C.
References processorLduInterface::receive(), and faPatch::size().

|
virtual |
Write the patch data as a dictionary.
Reimplemented from faPatch.
Definition at line 637 of file processorFaPatch.C.
References os(), and faPatch::write().
