|
|
|
calculateMDFields.HGo to the documentation of this file.00001 const List<DynamicList<molecule*> >& cellOccupancy = molecules.cellOccupancy(); 00002 00003 forAll(cellOccupancy, cell) 00004 { 00005 const List<molecule*>& molsInCell = cellOccupancy[cell]; 00006 00007 forAll(molsInCell, mIC) 00008 { 00009 molecule* mol = molsInCell[mIC]; 00010 00011 const label molId = mol->id(); 00012 00013 const vector& molU = mol->U(); 00014 00015 allSpeciesN_RU[molId][cell]++; 00016 00017 allSpeciesM_RU[molId][cell] += mol->mass(); 00018 00019 allSpeciesVelocitySum_RU[molId][cell] += molU; 00020 00021 allSpeciesVelocityMagSquaredSum_RU[molId][cell] += molU & molU; 00022 } 00023 } |