CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] vectorSwakSetValue utilities

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2017, 09:36
Default vectorSwakSetValue utilities
  #1
New Member
 
WilsonLee
Join Date: Jan 2016
Posts: 7
Rep Power: 10
killer2234 is on a distinguished road
Dear all:
I am using swak4Foam utilities--vectorSwakSetValue to set up with a fixed normal velocity from porous cylinder's surface in a still air surroundings.

below part is specified in the fvOptions file.
Code:
porousFaceNormalVelocity
{
    type vectorSwakSetValue;
    active true;
    timeStart 0;
    duration 100;
    vectorSwakSetValueCoeffs
    {
        selectionMode cellSet;
        cellSet  c0;

        variables (
                "xp=0.5;"
                "yp=0.5;"
                "up=50;"
                "x=pos().x;"
                "y=pos().y;"
                "rp=sqrt(pow((x-xp),2)+pow((y-yp),2));"
        );
        useMaskExpression false;

        expressions {
            U "vector(up*(x-xp)/rp,up*(y-yp)/rp,0)" [0 1 -1 0 0 0 0];
        }
   }
}
Now comes my question: it seems that the velocity field didn't changed so much. I have double check with my cellSet and it was correct. And the solvers runs without error:
Code:
Selecting finite volume options model type vectorExplicitSetValue
    Source: momentumSource
    - selecting cells using cellSet c0
    - selected 1600 cell(s) with volume 0.04
I have also tried to specify with the faceSet which contains the surface part , but I still get similar results as before
.
Is there anything wrong with my settings? Or how can I specify an surface-normal velocity on an cylindrical surface.

Great thanks for giving me any suggestion!!
killer2234 is offline   Reply With Quote

Old   May 2, 2017, 05:22
Default
  #2
New Member
 
WilsonLee
Join Date: Jan 2016
Posts: 7
Rep Power: 10
killer2234 is on a distinguished road
Could anyone give me some hint, please
killer2234 is offline   Reply With Quote

Reply


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
[PyFoam] run pyFoam utilities from python script ilpaso OpenFOAM Community Contributions 9 January 27, 2022 03:04
Utilities: post average turbulence fields and create turbulence fields for LES Hanzo OpenFOAM Running, Solving & CFD 10 August 18, 2017 18:33
Cannot compile utilities in Ubuntu 12.04 skyinventorbt OpenFOAM Programming & Development 2 January 7, 2014 00:19
Sim CFD Utilities Now Available Online marktm250xc Autodesk Simulation CFD 1 February 22, 2013 16:54
Region support for utilities borrbyper OpenFOAM Post-Processing 0 July 27, 2012 09:07


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