39 inline void resizeMatrix(SquareMatrix<T>& mat,
const label
n)
49 inline void resizeField
67 pdrBlock_(
std::cref<PDRblock>(PDRblock::null()))
83 pdrBlock_ = std::cref<PDRblock>(pdrBlock);
97 const label maxDim =
cmptMax(pdrBlock.sizes()) + 2;
99 resizeField(v_block, cellDims);
100 resizeField(surf, cellDims);
102 resizeField(area_block_s, cellDims);
103 resizeField(area_block_r, cellDims);
104 resizeField(dirn_block, cellDims);
106 resizeField(face_block, faceDims);
108 resizeField(along_block, cellDims);
110 resizeField(betai_inv1, cellDims);
112 resizeField(obs_count, cellDims);
113 resizeField(sub_count, cellDims);
114 resizeField(grating_count, cellDims);
116 resizeField(drag_s, cellDims);
117 resizeField(drag_r, cellDims);
119 resizeField(obs_size, cellDims);
121 for (
auto& list : overlap_1d)
127 resizeMatrix(aboverlap, maxDim);
128 resizeMatrix(abperim, maxDim);
129 resizeMatrix(a_lblock, maxDim);
130 resizeMatrix(b_lblock, maxDim);
131 resizeMatrix(ac_lblock, maxDim);
132 resizeMatrix(bc_lblock, maxDim);
133 resizeMatrix(c_count, maxDim);
134 resizeMatrix(c_drag, maxDim);
137 resizeField(hole_in_face, faceDims);
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
PDRarrays()
Construct null.
static const Vector< label > one
static Vector< label > uniform(const label &s)
Return a VectorSpace with all elements = s.
Vector< label > labelVector
Vector of labels.
void reset(const PDRblock &pdrBlock)
Reset PDRblock reference, resize and zero arrays.
static constexpr const zero Zero
Global zero (0)