View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000503 | OpenFOAM | Bug | public | 2012-04-12 04:49 | 2012-04-17 12:20 |
Reporter | Assigned To | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | OpenSuse | OS Version | 11.3 |
Summary | 0000503: linearMomentumOfSystem and linearKineticEnergyOfSystem calculations in "KinematicCloudI.H" | ||||
Description | in the file "src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H", the way calculating total linear momentum of parcels is in the member function "linearMomentumOfSystem": forAllConstIter(typename KinematicCloud<CloudType>, *this, iter) { const parcelType& p = iter(); linearMomentum += p.mass()*p.U(); } the way calculating total parcel mass is in the memeber function "massInSystem": forAllConstIter(typename KinematicCloud<CloudType>, *this, iter) { const parcelType& p = iter(); sysMass += p.mass()*p.nParticle(); } return sysMass; After comparison, linear momentum should be "linearMomentum += p.mass()*p.nParticle()*p.U()" instead of "linearMomentum += p.mass()*p.U()" since the for loop in these two member functions is a loop over parcels, not particles. Same thing occurs in linearKineticEnergyOfSystem member function. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2012-04-12 04:49 |
|
New Issue | |
2012-04-17 12:20 |
|
Note Added: 0001260 | |
2012-04-17 12:20 |
|
Status | new => resolved |
2012-04-17 12:20 |
|
Fixed in Version | => 2.1.x |
2012-04-17 12:20 |
|
Resolution | open => fixed |
2012-04-17 12:20 |
|
Assigned To | => user2 |