bitwise and operator usage in dsmcFields function object
Hi foamers - in the function object dsmcFields.C some of the calculations make usage of the bitwise and (&) operator to compute new fields. It seems to somehow involve converting a vector field into a scaler field.
Info<< " Calculating translationalT field." << endl;
00163 volScalarField translationalT
00173 *(linearKEMean - 0.5*rhoMMean*(UMean & UMean))
In the above code, UMean is a vector field. I'm new to C++ and the books that I have picked up only describe bitwise and in terms of bit by bit modification. Does anyone understand the usage of the operator in the code above.
|All times are GMT -4. The time now is 11:47.|