|
[Sponsors] |
September 17, 2015, 11:24 |
|
#26 |
New Member
Daniel Rodriguez Calvete
Join Date: Mar 2012
Location: Ferrol (A Coruņa) Spain
Posts: 10
Rep Power: 14 |
Hello,
I am running cavitation cases with interPhaseChangeFoam, and the tool explaned by Andrea is very useful to me. I am trying to implement it in OF 2.3, but I have a doubt about it: I see in this code that Pressure Forces is integrated multiplying by rho(p) which is 1 if the pDimensions = Pascals according to this piece of code: Code:
Foam::scalar Foam::forceMultiPhase::rho(const volScalarField& p) const { if (p.dimensions() == dimPressure) { return 1.0; } else { if (rhoName_ != "rhoInf") { FatalErrorIn("forceMultiPhase::rho(const volScalarField& p)") << "Dynamic pressure is expected but kinematic is provided." << exit(FatalError); } return rhoRef_; } } What I propose is the next piece of code in forceMultiPhace.C in calcForcesMoment() class (notice that is for OF2.3): Code:
vectorField fN ( Sfb[patchI]*(p.boundaryField()[patchI] - pRef) * ); // Viscous Forces vectorField fT ( ((Sfb[patchI]*limitedAlpha1.boundaryField()[patchI]) & devRhoReffb1[patchI]) + ((Sfb[patchI]*(scalar(1)-limitedAlpha1.boundaryField()[patchI])) & devRhoReffb2[patchI]) ); DRC Last edited by DanielRCalvete; September 17, 2015 at 12:49. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculation of Drag Force per unit Length | Mohammad Faridul Alam | CFX | 4 | January 11, 2013 07:19 |
Time-averaged force in CFX | rjmcsherry | CFX | 2 | October 21, 2010 10:34 |
Calculation of Saffman Lift Force | JPBodner | Main CFD Forum | 3 | August 4, 2010 11:11 |
MRF and Heat transfer calculation | Susan YU | FLUENT | 0 | June 2, 2010 08:46 |
Viscous Force Calculation | cwang5 | OpenFOAM Programming & Development | 1 | May 4, 2010 04:59 |