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

"Calculate the relative velocity used to map the relative flux phi" in interDyMFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2014, 06:37
Post "Calculate the relative velocity used to map the relative flux phi" in interDyMFoam
  #1
Member
 
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 13
bieshuxuhe is on a distinguished road
hi !
In openfoam-2.2.0 interDyMFoam solver , there is a piece of code that
Code:
    while (runTime.run())
    {
        #include "readControls.H"
        #include "alphaCourantNo.H"
        #include "CourantNo.H"

        #include "setDeltaT.H"

        runTime++;

        Info<< "Time = " << runTime.timeName() << nl << endl;

        scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();

        {
            // Calculate the relative velocity used to map the relative flux phi
            volVectorField Urel("Urel", U);

            if (mesh.moving())
            {
                Urel -= fvc::reconstruct(fvc::meshPhi(U));
            }

            // Do any mesh changes
            mesh.update();
        }

        if (mesh.changing())
        {
            Info<< "Execution time for mesh.update() = "
                << runTime.elapsedCpuTime() - timeBeforeMeshUpdate
                << " s" << endl;

            gh = g & mesh.C();
            ghf = g & mesh.Cf();
        }

        if (mesh.changing() && correctPhi)
        {
            #include "correctPhi.H"
        }

        if (mesh.changing() && checkMeshCourantNo)
        {
            #include "meshCourantNo.H"
        }

        twoPhaseProperties.correct();

        #include "alphaEqnSubCycle.H"
        interface.correct();

        // --- Pressure-velocity PIMPLE corrector loop
        while (pimple.loop())

......
The red part code create a Urel , and it means "Calculate the relative velocity used to map the relative flux phi" . But the Urel does not appear again after the code "Urel -= fvc::reconstruct(fvc::meshPhi(U));" ! It is even not written or used , so the relative velocity Urel looks no use in this solver ! If we comment out the red part code , the solver will work well too . (I have tried.)
I am a little confused . I wonder where is Urel used to map the relative flux phi ? executing mapFields ? or we must use it ourselves by adding some lines of code in the solver ?
could you help me ?
bieshuxuhe is offline   Reply With Quote

Reply

Tags
relative flux phi


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
relative velocity vectors carno FLUENT 0 May 9, 2008 07:59
Mass Flux vs Velocity Inlet Sandra FLUENT 5 July 20, 2005 14:09
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11
Relative velocity errors in cylindrical coords? John FLUENT 0 April 5, 2000 08:46


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