|
[Sponsors] | |||||
BuoyantBoussinesq(Pimple/Piso)Foam, changed equation from OF 1.6 to 1.7 ??? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Jan
Join Date: Jun 2010
Location: Erlangen, Germany
Posts: 3
Rep Power: 17 ![]() |
Hi Folks,
one question regarding the changes from OF 1.6 to 1.7 in the buoyantBoussinesq(Piso/Pimple)Foam solver. I think the implementation of splitting the pressure according to p = p_rgh + rho*g.x is not fully correct. The pressure equation in OF 1.7 seems OK, since in the Rhie-Chow formulation the contributions from the static pressure cancel and we are left with: Code:
phi = (fvc::interpolate(U) & mesh.Sf())
+ fvc::ddtPhiCorr(rUA, U, phi);
surfaceScalarField buoyancyPhi = rUAf*ghf*fvc::snGrad(rhok)*mesh.magSf();
phi -= buoyancyPhi;
Code:
surfaceScalarField phiU
(
(fvc::interpolate(U) & mesh.Sf())
+ fvc::ddtPhiCorr(rUA, U, phi)
);
phi = phiU + rUAf*fvc::interpolate(rhok)*(g & mesh.Sf());
In contrast, in the momentum equation the term for the buoyancy ( and gravity) force has changed from (OF 1.6) Code:
fvc::reconstruct( ...
fvc::interpolate(rhok)*(g & mesh.Sf()) ...)
Code:
fvc::reconstruct( ... - ghf*fvc::snGrad(rhok)*mesh.magSf() ...) Is this really a bug or do I miss some point? Thanks for any comment... Regards, Jan Edit: In the meantime I am pretty sure this is indeed a bug and I submitted a bugreport. Edit: Problem is solved. This bug was fixed a few days ago in the git repository. Last edited by myself; October 7, 2010 at 12:19. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 17 ![]() |
Dear Foamers,
can someone explain me why OF1.7 still uses HTML Code:
- ghf*fvc::snGrad(rhok)*mesh.magSf() HTML Code:
fvc::interpolate(rhok)*(g & mesh.Sf()) I do not understand why the gradient of the densitiy is used while in the equations I find in literature it has to be just the densitiy multiplied with the constant g. Can someone help me? Is this still a bug or do I overlook something? |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 17 ![]() |
||
|
|
|
|
|
|
|
#4 | |
|
Senior Member
|
Quote:
You wrote that the term in OF17 was formulated with an error, am I correct? But still if i look OF171 (Ubuntu package installed via apt-get): Code:
UEqn
==
fvc::reconstruct
(
(
- ghf*fvc::snGrad(rhok)
- fvc::snGrad(p_rgh)
)*mesh.magSf()
)
Regards, Alexander
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
||
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
| Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
| [swak4Foam] OpenFOAM 1.6 and 1.7 with interFoam, groovyBC give different strange results | Arnoldinho | OpenFOAM Community Contributions | 7 | December 9, 2010 17:29 |
| Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
| Compatibility from OF 1.6 to OF 1.7? | Chrisi1984 | OpenFOAM Installation | 2 | July 7, 2010 04:07 |