pTraits
Posted September 14, 2017 at 06:05 by kindle
Code:
int(pTraits<arg1>::rank)
Quote:
Dear ngj,
Thank you so much. Today I met the pTraits in the turbulentInlet.C again. So I had a look at thread again. The codes are as follows:
So here when patchField is vector (actually it is velocity becase it is a boundary type for velocity), is "pTraits<Type>:ne" the vector [1 1 1]?
Thank you so much. OFFO
Thank you so much. Today I met the pTraits in the turbulentInlet.C again. So I had a look at thread again. The codes are as follows:
Code:
scalar rmsCorr = sqrt(12*(2*alpha_ - sqr(alpha_)))/alpha_; patchField = (1 - alpha_)*patchField + alpha_* ( referenceField_ + rmsCorr*cmptMultiply ( randomField - 0.5*pTraits<Type>::one, fluctuationScale_ )*mag(referenceField_) );
Thank you so much. OFFO
Total Comments 0