View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001281 | OpenFOAM | Bug | public | 2014-05-05 10:02 | 2014-05-06 14:02 |
Reporter | dkxls | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux x86_64 | OS | openSUSE | OS Version | 12.3 |
Summary | 0001281: [SprayParcel]: Wrong particle number for parcels introduced by the breakup model | ||||
Description | This bug leads to sever mass conservation errors when the breakup model introduces new parcels. However, at present only the KH part of the ReitzKHRT model introduces new parcels. Since the KH model is incorrectly implemented, this bug doesn't have much significances in real simulation. I tested and fixed the bug in 2.2.x, but it applies in the same way for version 2.3.x. | ||||
Additional Information | I reported the issue with the ReitzKHRT in bug #1014. The tests for the current bug are done with a correctly implemented KHRT model. | ||||
Tags | No tags attached. | ||||
|
0001-lagrangian-SprayParcel-Correct-nParticle-when-new-pa.patch (1,173 bytes)
From 46f91daf462c1defa427bf9d0cd6e6dd179f070c Mon Sep 17 00:00:00 2001 From: Armin Wehrfritz <armin.wehrfritz@aalto.fi> Date: Sat, 3 May 2014 19:35:44 +0300 Subject: [PATCH] lagrangian/SprayParcel - Correct 'nParticle' when new parcel is added by the breakup model --- src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C index 30b5cac..341fb9e 100644 --- a/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C +++ b/src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C @@ -298,7 +298,7 @@ void Foam::SprayParcel<ParcelType>::calcBreakup SprayParcel<ParcelType>* child = new SprayParcel<ParcelType>(*this); child->mass0() = massChild; child->d() = dChild; - child->nParticle() = massChild/rho*this->volume(dChild); + child->nParticle() = massChild/(rho*child->volume(dChild)); const forceSuSp Fcp = forces.calcCoupled(*child, dt, massChild, Re, muAv); -- 1.7.10.4 |
|
Thanks for the report - fixed by commit 1ab61f |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-05-05 10:02 | dkxls | New Issue | |
2014-05-05 10:02 | dkxls | File Added: 0001-lagrangian-SprayParcel-Correct-nParticle-when-new-pa.patch | |
2014-05-06 14:02 |
|
Note Added: 0003044 | |
2014-05-06 14:02 |
|
Status | new => resolved |
2014-05-06 14:02 |
|
Fixed in Version | => 2.3.x |
2014-05-06 14:02 |
|
Resolution | open => fixed |
2014-05-06 14:02 |
|
Assigned To | => user2 |