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

Time-varying boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree17Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 5, 2014, 21:28
Lightbulb
  #6
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Hello
I need varying BC for interstitialInletVelocity which can be found in DPMFoam/Goldschemidt. Using table for fixed value:
Code:
    
bottom
{
    type uniformFixedValue;
    uniformValue table
    (
        (0 (0 0 1))
        (0.001 (0 0 2))
        (0.002 (0 0 3))
        (0.003 (0 0 4))
    );
    }
the run starts without error. But for interstitialInletVelocity"
The default is:
Code:
    bottom
    {
        type            interstitialInletVelocity;
        inletVelocity   uniform (0 0 1);
        value           uniform (0 0 1);
        phi             phi.air;
        alpha           alpha.air;
    }
trying to time varying it by:
Code:
    bottomSB
    {
        type            interstitialInletVelocity;
        inletVelocity   uniformFixedValue;
    uniformValue table
(
        (0 (0 0 1))
        (0.001 (0 0 2))
        (0.002 (0 0 3))
        (0.003 (0 0 4))
);

        value           table
(
        (0 (0 0 1))
        (0.001 (0 0 2))
        (0.002 (0 0 3))
        (0.003 (0 0 4))
); 
        phi             phi.air;
        alpha           alpha.air;
    }
gives this error:
Code:
--> FOAM FATAL IO ERROR: 
expected keyword 'uniform' or 'nonuniform', found table

file: /home/user/OpenFOAM/user-2.3.0/run/tutorials/lagrangian/DPMFoam/test/0/U.air.boundaryField.bottom from line 52 to line 70.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/user/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/Field.C at line 304.

FOAM exiting
Change of second "table" to "nonuniform" also gives error:
Code:
--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 64 the punctuation token '('

file: /home/user/OpenFOAM/user-2.3.0/run/tutorials/lagrangian/DPMFoam/test/0/U.air.boundaryField.bottom.value at line 64.

    From function operator>>(Istream&, Scalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting
I checked other changes by "Banana" trick debugging but it doesn't work. This boundary condition is suitable for two phase flows because It consider the inlet porosity so we will sure about fixed value of inlet flow rate. It is not possible to use simple fixed value BC and should use interstitialInletVelocity instead. If anyone know about time varying this BC please share here.
Best,
maysmech 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
Time dependant pressure boundary condition yosuke1984 OpenFOAM Verification & Validation 3 May 6, 2015 06:16
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 11:32
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 06:21


All times are GMT -4. The time now is 17:48.