View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000829 | OpenFOAM | Bug | public | 2013-05-01 12:56 | 2014-02-18 10:04 |
Reporter | Assigned To | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Mint | OS Version | 14 |
Summary | 0000829: VoidFraction field always returns 0 (exactly) | ||||
Description | The cloud function object "voidFraction" always calculate theta = 0 (exactly) (i.e. does not work). | ||||
Steps To Reproduce | Take for example the "hopper" tutorial, and add the voidFraction function object to kinematicCloudProperties: cloudFunctions { voidFraction; } Run the tutorial. The voidFraction field is written, but is zero (exactly) at all times. Also see http://www.cfd-online.com/Forums/openfoam-solving/112612-cloud-function-objects-question.html which is the same problem. | ||||
Additional Information | To experiment and debug, I added a print to terminal at the end of the postMove-function in VoidFraction.C: template<class CloudType> void Foam::VoidFraction<CloudType>::postMove ( const parcelType& p, const label cellI, const scalar dt, bool& ) { volScalarField& theta = thetaPtr_(); theta[cellI] += dt*p.nParticle()*p.volume(); Info<< "Post-move hook"<<endl; } I also did the same in the postEvolve function: template<class CloudType> void Foam::VoidFraction<CloudType>::postEvolve() { volScalarField& theta = thetaPtr_(); const fvMesh& mesh = this->owner().mesh(); theta.internalField() /= mesh.time().deltaTValue()*mesh.V(); CloudFunctionObject<CloudType>::postEvolve(); Info<< "Post-evolve hook"<<endl; } The result is that the only message printed to terminal is the "Post-evolve hook" message, which is printed after the cloud has evolved. The "Post-move hook" message is never printed. I therefore suspect that postMove() is never called, and that this the reason for the kinematicCloudTheta field to be zero. | ||||
Tags | No tags attached. | ||||
|
I guess the solution to the problem is posted here: http://www.cfd-online.com/Forums/openfoam-solving/97629-dispersion-model-lagragian-particle-tracking-model-incompressible-flows-2.html#post420104 I have tried it, and it looks like it is working fine, although I have not yet verified the results. |
|
Thanks for the report - fixed by commit 8f8d4bf |
|
I believe that this issue has re-surfaced. Repeat the same procedure, i.e. try to calculate the 'voidFraction' in the 'hopper' tutorial. The field is written, but is exactly zero at all times. Tested on latest Git verion, 2.2.x-9fbba21a924c. |
|
Thanks for the report - fixed by commit f08a413 |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-01 12:56 |
|
New Issue | |
2013-05-01 14:58 |
|
Note Added: 0002146 | |
2013-05-03 12:07 |
|
Note Added: 0002153 | |
2013-05-03 12:07 |
|
Status | new => resolved |
2013-05-03 12:07 |
|
Fixed in Version | => 2.2.x |
2013-05-03 12:07 |
|
Resolution | open => fixed |
2013-05-03 12:07 |
|
Assigned To | => user2 |
2013-10-25 09:15 |
|
Note Added: 0002582 | |
2013-10-25 09:15 |
|
Status | resolved => feedback |
2013-10-25 09:15 |
|
Resolution | fixed => reopened |
2014-02-18 10:04 |
|
Note Added: 0002843 | |
2014-02-18 10:04 |
|
Status | feedback => resolved |
2014-02-18 10:04 |
|
Fixed in Version | 2.2.x => 2.3.x |
2014-02-18 10:04 |
|
Resolution | reopened => fixed |