CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Force calculation in multiphase simulations

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 17, 2015, 11:24
Default
  #26
New Member
 
Daniel Rodriguez Calvete
Join Date: Mar 2012
Location: Ferrol (A Coruņa) Spain
Posts: 10
Rep Power: 14
DanielRCalvete is on a distinguished road
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_;
    }
}
Maybe I am missunderstanding something in the code of Andrea, but since the pressure forces is the integration of pressure through the surface, I think it has not sense to multiply by rho*alpha or rho*(1- alpha) to obtain this forces.

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]) 
	
	    );
I will appreciate a lot your comments about. Thank you in advance.

DRC

Last edited by DanielRCalvete; September 17, 2015 at 12:49.
DanielRCalvete is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:41.