38 void Foam::functionObjects::dataCloud::writePointValue
45 os << pt.x() <<
' ' << pt.y() <<
' ' << pt.z();
56 void Foam::functionObjects::dataCloud::writeList
60 const List<Type>&
field 63 const label len =
field.size();
65 for (label pointi=0; pointi<len; ++pointi)
73 void Foam::functionObjects::dataCloud::writeListParallel
77 const List<Type>&
field 85 Field<Type> recvField;
92 fromProc >> recvPoints >> recvField;
113 void Foam::functionObjects::dataCloud::writeList
117 const List<Type>&
field,
118 const bitSet& selected
121 for (
const label pointi : selected)
129 void Foam::functionObjects::dataCloud::writeListParallel
133 const List<Type>&
field,
134 const bitSet& selected
142 Field<Type> recvField;
149 fromProc >> recvPoints >> recvField;
171 bool 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;
static const IOField< point > * findIOPosition(const objectRegistry &obr)
Locate the "position" IOField within object registry.
"blocking" : (MPI_Bsend, MPI_Recv)
constexpr char nl
The newline '\n' character (0x0a)
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
Various functions to operate on Lists.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
word outputName("finiteArea-edges.obj")
static constexpr int masterNo() noexcept
Relative rank for the master process - is always 0.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
OBJstream os(runTime.globalPath()/outputName)
List< T > subset(const BoolListType &select, const UList< T > &input, const bool invert=false)
Extract elements of the input list when select is true.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
Field< vector > vectorField
Specialisation of Field<T> for vector.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
static rangeType subProcs(const label communicator=worldComm)
Range of process indices for sub-processes.
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)