38void Foam::functionObjects::dataCloud::writePointValue
45 os << pt.x() <<
' ' << pt.y() <<
' ' << pt.z();
47 for (
direction cmpt=0; cmpt < pTraits<Type>::nComponents; ++cmpt)
56void Foam::functionObjects::dataCloud::writeList
60 const List<Type>&
field
63 const label len =
field.size();
65 for (label pointi=0; pointi<len; ++pointi)
73void Foam::functionObjects::dataCloud::writeListParallel
77 const List<Type>&
field
85 Field<Type> recvField;
92 fromSlave >> recvPoints >> recvField;
113void Foam::functionObjects::dataCloud::writeList
117 const List<Type>&
field,
118 const bitSet& selected
121 for (
const label pointi : selected)
129void Foam::functionObjects::dataCloud::writeListParallel
133 const List<Type>&
field,
134 const bitSet& selected
142 Field<Type> recvField;
149 fromSlave >> recvPoints >> recvField;
171bool Foam::functionObjects::dataCloud::writeField
174 const objectRegistry& obrTmp
188 const List<Type>* fldPtr = obrTmp.findObject<IOField<Type>>(fieldName_);
189 const List<Type>&
values = (fldPtr ? *fldPtr : List<Type>());
196 autoPtr<OFstream> osPtr;
201 osPtr->precision(precision_);
203 *(osPtr) <<
"# x y z " << fieldName_ <<
nl;
Various functions to operate on Lists.
UPstream::rangeType subProcs() const noexcept
Range of sub-processes indices associated with PstreamBuffers.
static constexpr int masterNo() noexcept
Process index of the master (always 0)
static const IOField< point > * findIOPosition(const objectRegistry &obr)
Locate the "position" IOField within object registry.
splitCell * master() const
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
word outputName("finiteArea-edges.obj")
OBJstream os(runTime.globalPath()/outputName)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
List< T > subset(const BoolListType &select, const UList< T > &input, const bool invert=false)
Extract elements of the input list when select is true.
Field< vector > vectorField
Specialisation of Field<T> for vector.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
constexpr char nl
The newline '\n' character (0x0a)