View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001110 | OpenFOAM | Bug | public | 2013-12-18 14:52 | 2013-12-18 23:00 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 10.04 |
Summary | 0001110: compressibleInterDyMFoam mass not conserved | ||||
Description | In pEqn.H line 11 - 17 surfaceScalarField phiHbyA ( "phiHbyA", (fvc::interpolate(HbyA) & mesh.Sf()) + fvc::ddtPhiCorr(rAU, rho, U, phiAbs) ); The flux of the control volume boundary meshPhi should be substracted, otherwise with my test I end up having an increase of mass equal to exactly the amount of the mass being swept by the reduction of mass due to reduced domain volume. | ||||
Tags | No tags attached. | ||||
|
Which version of OpenFOAM are you running? Try again with the latest OpenFOAM-2.2.x and if the problem persists report further details including a suitable small test-case. |
2013-12-18 15:55
|
|
|
I have uploaded the case. After the run when getting the flux at inlet and outlet, it yields patchIntegrate phi inlet -latestTime Time = 0.007 Area vector of patch inlet[2] = (0 -0.000493 0) Area magnitude of patch inlet[2] = 0.000493 Reading surfaceScalarField phi Integral of phi over patch inlet[2] = -1e-05 patchIntegrate phi outlet -latestTime Time = 0.007 Area vector of patch outlet[3] = (0 0.000493 0) Area magnitude of patch outlet[3] = 0.000493 Reading surfaceScalarField phi Integral of phi over patch outlet[3] = 0.00031 Considering the movingWall motion 0.1 m/s, and the movingWall surface = 0.15*0.01 = 1.5e-4 sqm, it gives you the sweep flux 1.5e-05 m3/s. And this is exactly the added extra mass: 0.00031 - 0.00001 - 0.00015 = 0.00015 |
|
And yes I am running latest OF-2.2.x |
|
Try again with correct BCs for p_rgh. See for example OpenFOAM-2.2.x/tutorials/multiphase/compressibleInterFoam/laminar/depthCharge2D |
|
I have reproduced the problem here and I will work on it. |
|
I substract the motion flux and it fixed the problem. In pEqn.H surfaceScalarField phiHbyA ( "phiHbyA", (fvc::interpolate(HbyA) & mesh.Sf()) - fvc::meshPhi(rho,U) + fvc::ddtPhiCorr(rAU, rho, U, phi) |
|
That is not sufficient as it does not resolve the issue with ddtPhiCorr and note the // Make the fluxes relative to the mesh motion fvc::makeRelative(phi, U); in compressibleInterDyMFoam.C |
|
Resolved by commit f3639a9c9d2baed720f2890e819f17af92a03a23 |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-12-18 14:52 |
|
New Issue | |
2013-12-18 14:59 | henry | Note Added: 0002691 | |
2013-12-18 15:55 |
|
File Added: henry.tar.gz | |
2013-12-18 16:03 |
|
Note Added: 0002692 | |
2013-12-18 16:05 |
|
Note Added: 0002693 | |
2013-12-18 17:45 | henry | Note Added: 0002694 | |
2013-12-18 18:05 | henry | Note Added: 0002695 | |
2013-12-18 18:24 |
|
Note Added: 0002696 | |
2013-12-18 19:27 | henry | Note Added: 0002697 | |
2013-12-18 23:00 | henry | Note Added: 0002698 | |
2013-12-18 23:00 | henry | Status | new => resolved |
2013-12-18 23:00 | henry | Resolution | open => fixed |
2013-12-18 23:00 | henry | Assigned To | => henry |