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

problems about surfaceTension implement in reactingmultiphaseFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2019, 22:30
Default problems about surfaceTension implement in reactingmultiphaseFoam
  #1
New Member
 
Yang Fan
Join Date: Jul 2019
Posts: 1
Rep Power: 0
yfClark is on a distinguished road
Hello.I am studying the reactingmultiphaseEulerFoam,
the code for surfaceTension implement is:
Code:
      surfaceScalarField ghSnGradRho
       (
          "ghSnGradRho",
           ghf*fvc::snGrad(rho)*mesh.magSf()
        ); //g*h*\Delta \codt \rho 
        phigFs.set
        (
            phasei,
            (
                alpharAUfs[phasei]
               *(
                   ghSnGradRho
                 - (fvc::interpolate(phase.rho() - rho))*(g & mesh.Sf())
                 - fluid.surfaceTension(phase)*mesh.magSf()
                )
            ).ptr()
        );
finnaly,the velocity is updated by:
Code:
            mSfGradp = pEqnIncomp.flux()/rAUf;

            forAll(phases, phasei)
            {
                phaseModel& phase = phases[phasei];

                phase.U() =
                    HbyAs[phasei]
                  + fvc::reconstruct
                    (
                        alpharAUfs[phasei]*mSfGradp
                      - phigFs[phasei]
                    );
                phase.U().correctBoundaryConditions();
                fvOptions.correct(phase.U());
            }
My derivation mathematical formula is:
\mathbf{U}_{i}=\mathbf{H} \mathbf{b y A}_{i}+\frac{-\alpha_{i} \nabla p_{r g h}}{A_{P, i}}-\frac{\left[\left(\alpha_{i} \mathbf{g} \cdot \mathbf{h} \nabla \rho-\alpha_{i}\left(\rho_{i}-\rho\right) \mathbf{g}\right)-\sigma \kappa \nabla \alpha_{i}\right]}{A_{p, i}}
the code seems to be:
\mathbf{U}_{i}=\mathbf{H} \mathbf{b y A}_{i}+\frac{-\alpha_{i} \nabla p_{r g h}}{A_{P, i}}-\frac{\left[\left(\alpha_{i} \mathbf{g} \cdot \mathbf{h} \nabla \rho-\alpha_{i}\left(\rho_{i}-\rho\right) \mathbf{g}\right)-\alpha_{i}\sigma \kappa \nabla \alpha_{i}\right]}{A_{p, i}}
an addition alpha_{i} is add to surfaceTension,any one can show me what's the problem?
yfClark is offline   Reply With Quote

Reply

Tags
reactingmultiphaseeuler, surfacetension


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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 13:13
modified SurfaceTension (with filmthickness) Martin D! Fluent UDF and Scheme Programming 0 March 31, 2010 12:13
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


All times are GMT -4. The time now is 22:02.