View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000797 | OpenFOAM | Bug | public | 2013-03-22 02:28 | 2015-03-24 15:21 |
Reporter | sharonyue | Assigned To | henry | ||
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | ubuntu 12.10 | OS | Other | OS Version | (please specify) |
Summary | 0000797: mixerVesselAMI2D's mass is not balancing | ||||
Description | I am using foam 2.2.0,recently I am testing a mixer,I have used simpleFoam and interDyMFoam, the velocity and alpha looks fine.but when I checked the mass flux,I found the mass is not balancing in this solvers.I dont know why, So I testify the tutorial located in incompressible/pimpleDyMFoam/mixerVesselAMI2D. More details see here. http://www.cfd-online.com/Forums/openfoam-solving/114884-mixervesselami2ds-mass-not-balancing.html | ||||
Tags | AMI | ||||
|
um? wired...who update this ... |
|
The current AMI implementation is not exactly conservative although for many/most cases the error is small. You may find the behavior is better in OpenFOAM-2.3.? but this is likely to be with respect to robusness rather than conservation. Please contact ESI/OpenCFD directly about this to find out if they are planning to fix this bug and let us know. |
|
Henry, I found the resolution of this bug, I think. cyclicAMIFvPatchField.C gets called twice in the matrix solver and therefore substracts twice the pressure field of the neighboring faces. I multiplied line 226 by 0.5. This takes care of the issue. Same propably for line 264. Regards, Daniel |
|
I added an Info statement to Foam::cyclicAMIFvPatchField<Type>::updateInterfaceMatrix and it gets called once for patches AMI1 and AMI2 for each iteration of the PCG solver. Could you please provide details of how you have shown that it gets called twice for each AMI patch of each iteration of the solver? |
|
Henry, We are experiencing problems with mass conservation during a simulation of a turbine in a channel flow (pimpleDyMFoam v2.3.x). This results in an unrealistically high generator torque. Has there been progress in solving this issue? Best regards, Roland |
|
How large is the mass conservation you are getting? The conservation errors caused by the AMIs are usually small and unlikely to cause significant torque errors. |
|
In this case 15%: http://www.openfoam.org/mantisbt/view.php?id=1421 |
|
It is unlikely that a 15% conservation error is caused by the AMI, is more likely to be a consequence of a problem with the boundary conditions. What conservation error you you get if you run with MRF? |
|
The 15% are not caused by the AMI. The MRF solution was ok if I remember correctly but there seems to be a problem with the new ddtCorr method in certain cases. I know that the setup of this test case is everything else than optimal but the imbalance was much smaller with version 2.2.x. |
|
If you run without ddtCorr what is the mass imbalance? Where does the mass imbalance occur? At the boundaries? At the AMI? This report relates to the behavior of AMI in OpenFOAM-2.2.0, are the problems you are reporting related to this post? If not it would be better if you open a separate report and provide more details about your case, the issue and what you have tried to resolve them. |
|
|
|
Hi Henry, The file faceSource.png shows the result of the following function object, with the flux (sum of phi) on the vertical axis and time on the horizontal axis: ami_static_in { type faceSource; surfaceFormat vtk; source patch; sourceName ami_static_in; operation sum; fields (phi); } In green is shown the flux exiting the first stationary domain. This flux is 1.32 m/s, as per the inlet boundary condition. The black line is on top of the red line; they show the flux entering and exiting the rotating domain, respectively. The blue line shows the flux entering the second stationary domain. So, the order of the flow is: green -> black -> red -> blue, with green and blue stationary AMI interfaces and black and red rotating AMI interfaces. From this plot we see a flux imbalance over the interfaces between the (first) stationary to the rotating domain (from green to black) and again over the interfaces between the rotating and (second) stationary domain (from red to blue). This imbalance (of up to 5 percent per time step) causes a pressure rise in the first stationary domain which results in a pressure gradient between the front and a rear of our rotor. This is responsible for the level of torque that we are seeing. BTW, this is using 2.3.x. If you prefer I can open a separate report for this. |
|
Is the flux imbalance strongly affected by the ddtCorr term in the pressure equation? Could you try removing this term? |
|
|
|
|
|
Hi Henry, In pEqn.H I commented out the ddtCorr term: surfaceScalarField phiHbyA ( "phiHbyA", (fvc::interpolate(HbyA) & mesh.Sf()) // + rAUf*fvc::ddtCorr(U, Uf) ); This has a large effect on the fluxes through the AMI patches; faceSource-noddtCorr.png shows the fluxes in the same range as yesterday's plot, while faceSource-noddtCorr_crop.png shows the fluxes in a tighter range. Unfortunately for us, this reduction in imbalance has next to no influence on the inflow pressure (and thus rotor torque), as we were expecting. |
|
I am confused, my understanding was that you attributed the error in the torque on the mass imbalance so why would you now not expect a reduction in the imbalance to improve the results? |
|
Yes, we attributed the error in the torque on the mass imbalance. But this error in torque is still present. (We expected this error to disappear together with the imbalance.) Apologies for the confusion. |
|
OK, I understand. I am working on the ddtCorr issue but it looks like the error you are seeing does not relate either to this bug or the slight conservation error AMI causes. It is more likely to be due to issues with the case setup BCs, or maybe the analysis of the results. Either way you will probably need to arrange for some support with this. |
|
I agree that our issue appears not to be related to ddtCorr. |
|
The part of this report relating to ddtCorr is resolved in OpenFOAM-2.3.x: commit 719bf1b4e7dc29f6e5a8c7b1d2be39fff4de1c5a However the small continuity error initially reported remains and will require significant effort to resolve. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-22 02:28 | sharonyue | New Issue | |
2014-12-29 18:41 | wyldckat | Tag Attached: AMI | |
2014-12-30 09:15 | sharonyue | Note Added: 0003412 | |
2014-12-30 10:25 | henry | Note Added: 0003413 | |
2015-01-23 17:19 |
|
Note Added: 0003580 | |
2015-01-26 11:19 | henry | Note Added: 0003584 | |
2015-03-20 14:53 | roland | Note Added: 0004165 | |
2015-03-20 17:07 | henry | Note Added: 0004169 | |
2015-03-21 16:50 | dhora | Note Added: 0004175 | |
2015-03-21 16:56 | henry | Note Added: 0004176 | |
2015-03-22 16:00 | dhora | Note Added: 0004186 | |
2015-03-22 16:05 | henry | Note Added: 0004187 | |
2015-03-23 09:08 | roland | File Added: faceSource.png | |
2015-03-23 09:09 | roland | Note Added: 0004189 | |
2015-03-23 09:11 | roland | Note Edited: 0004189 | |
2015-03-23 12:03 | henry | Note Added: 0004190 | |
2015-03-24 00:17 | liuhuafei | Issue cloned: 0001585 | |
2015-03-24 10:36 | roland | File Added: faceSource-noddtCorr.png | |
2015-03-24 10:36 | roland | File Added: faceSource-noddtCorr_crop.png | |
2015-03-24 10:37 | roland | Note Added: 0004457 | |
2015-03-24 10:42 | henry | Note Added: 0004458 | |
2015-03-24 10:58 | roland | Note Added: 0004459 | |
2015-03-24 11:01 | henry | Note Added: 0004460 | |
2015-03-24 14:58 | roland | Note Added: 0004463 | |
2015-03-24 15:20 | henry | Note Added: 0004467 | |
2015-03-24 15:20 | henry | Status | new => closed |
2015-03-24 15:21 | henry | Assigned To | => henry |
2015-03-24 15:21 | henry | Resolution | open => fixed |