Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per cell. More...
Public Types | |
enum | directionType { TAN1, TAN2, NORMAL } |
Enumeration listing the possible coordinate directions. More... | |
![]() | |
typedef SubList< vectorField > | subList |
Declare type of subList. More... | |
Public Member Functions | |
directions (const polyMesh &mesh, const dictionary &dict, const twoDPointCorrector *correct2DPtr=nullptr) | |
Construct from mesh and dictionary and optional 2D corrector. More... | |
![]() | |
constexpr | List () noexcept |
Default construct. More... | |
List (const label len) | |
Construct with given size. More... | |
List (const label len, const vectorField &val) | |
Construct with given size and value for all elements. More... | |
List (const label len, const Foam::zero) | |
Construct with given size initializing all elements to zero. More... | |
List (const Foam::one, const vectorField &val) | |
Construct with length=1, copying the value as the only content. More... | |
List (const Foam::one, vectorField &&val) | |
Construct with length=1, moving the value as the only content. More... | |
List (const Foam::one, const Foam::zero) | |
Construct with length=1, initializing content to zero. More... | |
List (const List< vectorField > &a) | |
Copy construct from list. More... | |
List (const UList< vectorField > &a) | |
Copy construct contents from list. More... | |
List (List< vectorField > &a, bool reuse) | |
Construct as copy or re-use as specified. More... | |
List (const UList< vectorField > &list, const labelUList &indices) | |
Copy construct subset of list. More... | |
List (const UList< vectorField > &list, const FixedList< label, N > &indices) | |
Copy construct subset of list. More... | |
List (const FixedList< vectorField, N > &list) | |
Construct as copy of FixedList<T, N> More... | |
List (const PtrList< vectorField > &list) | |
Construct as copy of PtrList<T> More... | |
List (const SLList< vectorField > &list) | |
Construct as copy of SLList<T> More... | |
List (const IndirectListBase< vectorField, Addr > &list) | |
Construct as copy of IndirectList contents. More... | |
List (std::initializer_list< vectorField > list) | |
Construct from an initializer list. More... | |
List (List< vectorField > &&list) | |
Move construct from List. More... | |
List (DynamicList< vectorField, SizeMin > &&list) | |
Move construct from DynamicList. More... | |
List (SortableList< vectorField > &&list) | |
Move construct from SortableList. More... | |
List (SLList< vectorField > &&list) | |
Move construct from SLList. More... | |
List (Istream &is) | |
Construct from Istream. More... | |
autoPtr< List< vectorField > > | clone () const |
Clone. More... | |
~List () | |
Destructor. More... | |
void | clear () |
Clear the list, i.e. set size to zero. More... | |
void | resize (const label len) |
Adjust allocated size of list. More... | |
void | resize (const label len, const vectorField &val) |
Adjust allocated size of list and set val for new elements. More... | |
void | resize (const label newLen) |
void | resize_nocopy (const label len) |
Adjust allocated size of list without necessarily. More... | |
void | setSize (const label n) |
Alias for resize() More... | |
void | setSize (const label n, const vectorField &val) |
Alias for resize() More... | |
void | append (const vectorField &val) |
Append an element at the end of the list. More... | |
void | append (vectorField &&val) |
Move append an element at the end of the list. More... | |
void | append (const UList< vectorField > &list) |
Append a List to the end of this list. More... | |
void | append (const IndirectListBase< vectorField, Addr > &list) |
Append IndirectList contents at the end of this list. More... | |
label | appendUniq (const vectorField &val) |
Append an element if not already in the list. More... | |
void | transfer (List< vectorField > &list) |
void | transfer (DynamicList< vectorField, SizeMin > &list) |
void | transfer (SortableList< vectorField > &list) |
vectorField & | newElmt (const label i) |
void | operator= (const UList< vectorField > &a) |
Assignment to UList operator. Takes linear time. More... | |
void | operator= (const List< vectorField > &list) |
Assignment operator. Takes linear time. More... | |
void | operator= (const SLList< vectorField > &list) |
Assignment to SLList operator. Takes linear time. More... | |
void | operator= (const IndirectListBase< vectorField, Addr > &list) |
Assignment from IndirectList. Takes linear time. More... | |
void | operator= (const FixedList< vectorField, N > &list) |
Copy assignment from FixedList. More... | |
void | operator= (std::initializer_list< vectorField > list) |
Assignment to an initializer list. More... | |
void | operator= (const vectorField &val) |
Assignment of all entries to the given value. More... | |
void | operator= (const Foam::zero) |
Assignment of all entries to zero. More... | |
void | operator= (List< vectorField > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (DynamicList< vectorField, SizeMin > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (SortableList< vectorField > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (SLList< vectorField > &&list) |
Move assignment. Takes constant time. More... | |
Istream & | readList (Istream &is) |
Read List from Istream, discarding contents of existing List. More... | |
Istream & | readList (Istream &is) |
Istream & | readList (Istream &is) |
void | shallowCopy (const UList< vectorField > &)=delete |
No shallowCopy permitted. More... | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | set (const label i, bool val=true) |
A bitSet::set() method for a list of bool. More... | |
Additional Inherited Members | |
![]() | |
static const List< vectorField > & | null () |
Return a null List. More... | |
Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per cell.
Used in splitting cells. Either all cells have similar refinement direction ('global') or direction is dependent on local cell geometry, or loads selected fields by name ('fieldBased'). Controlled by dictionary.
Definition at line 67 of file directions.H.
enum directionType |
Enumeration listing the possible coordinate directions.
Enumerator | |
---|---|
TAN1 | |
TAN2 | |
NORMAL |
Definition at line 76 of file directions.H.
directions | ( | const polyMesh & | mesh, |
const dictionary & | dict, | ||
const twoDPointCorrector * | correct2DPtr = nullptr |
||
) |
Construct from mesh and dictionary and optional 2D corrector.
Definition at line 273 of file directions.C.
References polyMesh::boundaryMesh(), dict, Foam::endl(), Foam::exit(), PrimitivePatch< FaceList, PointField >::faceNormals(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), forAll, dictionary::get(), Foam::Info, IOobject::instance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE, Foam::normalised(), twoDPointCorrector::planeNormal(), List< T >::resize(), dictionary::subDict(), and WarningInFunction.