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

Accessing alpha.oldTime() in multiphaseMixture

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2012, 15:39
Question Accessing alpha.oldTime() in multiphaseMixture
  #1
New Member
 
Tyler V
Join Date: Jul 2012
Posts: 24
Rep Power: 13
tgvosk is on a distinguished road
Hello,

I am trying to access old time values of alpha in multiphaseMixture in multiphaseInterFoam but it does not seem to be accessible by the standard "oldTime()" convention. As a test, I have added the following in multiphaseMixture::solveAlphas in the base multiphaseInterFoam solver (no other modifications):

Code:
    forAllIter(PtrDictionary<phase>, phases_, iter)
    {
        phase& alpha = iter();

        //Added these two lines to see what's going on
        Info<< "Max delta(alpha"<<alpha.name()<<") = "
             << Foam::max(mag(alpha.field() - alpha.oldTime().field())) << endl;

        //the rest of the function is un-modified
This prints 0 every time, even when alpha is changing with time (running on the damBreak4phase example). Why is this not picking up the old time values, and how is MULES::explicitSolve then able to access those values? How should I be calling this to get the old time values??
tgvosk is offline   Reply With Quote

Reply

Tags
multiphaseinterfoam, oldtime


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
accessing solver data with UDF macros Dushan FLUENT 1 April 22, 2017 21:05
Why does accessing a zeroGradient patch return (0 0 0) for a volVectorField l_r_mcglashan OpenFOAM 0 August 20, 2010 13:27
Accessing node values using a UDF Nico FLUENT 2 December 20, 2007 02:50
How to define a Macro accessing rad intensity Grey FLUENT 0 May 21, 2007 00:12
UDF & Accessing Turbulence Properties Dimal FLUENT 0 March 5, 2002 13:14


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