|November 16, 2010, 14:58||
bitwise and operator usage in dsmcFields function object
Join Date: Jul 2010
Posts: 39Rep Power: 7
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.
|bitwise, dsmc, dsmcfields|