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

SRFsimplefoam inletvalue

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By otm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2013, 15:41
Default SRFsimplefoam inletvalue
  #1
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hello everyone,

I'm new to OpenFOAM. And I want to use SRFsimplefoam to simulate my model. The model is in the attachment. And the model is very simple. The smooth wall is stationary and the grooved wall is rotating. But I'm a little confused about the following commands:

inlet
{
type SRFVelocity;
inletValue uniform ( 0 0 -10 );
relative no;
value uniform ( 0 0 0 );
}
1. What's the meaning of these commands?
2. Is the rotating velocity defined in constant/SRFPRoperties? Then what 0/omega is used for?
3. Originally, I use the force library to calculate the torques on the walls. The library uses p and U file to calculate the torques. However, in SRFsimplefoam, there is no U file , only Urel. So what should I use to calculate the torques?

Thank you very much.
Pengchuan
Attached Images
File Type: jpg Capture2.JPG (18.7 KB, 139 views)
pechwang is offline   Reply With Quote

Old   March 19, 2013, 07:32
Default
  #2
otm
New Member
 
Join Date: Jun 2009
Posts: 22
Rep Power: 16
otm is on a distinguished road
Hi

Quote:
inlet
{
type SRFVelocity;
inletValue uniform ( 0 0 -10 );
relative no;
value uniform ( 0 0 0 );
}
The above is a boundary condition that can be used for simulations in a rotating reference frame. Depending on if "relative" is set to yes or no the inletValue vector vill be either in the rotating frame or in the absolute frame.

You are right in what you write about constant/SRFProperties. The omega in /0 is a field for the inverse turbulence time scale used by k-omega based turbulence model.

Regarding torque calculations the solver will output a Uabs field that could be used. I guess it should work by setting "U Uabs;" in force section of your controlDict.

BR
//Olle
otm is offline   Reply With Quote

Old   March 19, 2013, 09:14
Default
  #3
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Olle,

Thank you for your reply. But I'm still a little confused. I think the boundary should be a rotating velocity. But now it is a three dimensional vector. You know the velocity of each point on the plate walls are different, then do I need to specify a point and set the inletValue to that point?

Quote:
Originally Posted by otm View Post
The above is a boundary condition that can be used for simulations in a rotating reference frame. Depending on if "relative" is set to yes or no the inletValue vector vill be either in the rotating frame or in the absolute frame.
pechwang is offline   Reply With Quote

Old   March 19, 2013, 16:43
Default
  #4
otm
New Member
 
Join Date: Jun 2009
Posts: 22
Rep Power: 16
otm is on a distinguished road
Hello again,

If your boundary is a wall rotating with your reference frame you can use ordinary wall BC. If your boundary is a stationary wall you can use the I think you can use something like:
Code:
type            rotatingWallVelocity;
    origin        (0 0 0.2);
    axis        (0 1 0);
    rpm        -600;
    value        uniform (0 0 0);
with opposite rotation direction compared to the reference frame.

The SRFVelocity BC is used for inlets and allows you to set if the incoming flow is rotating with the reference frame or not. The (counter)rotating velocity is automatically superposed on or subtracted from the inletValue vector field if you set relative to no or yes respectively.
Code:
type SRFVelocity;
inletValue uniform ( 0 0 -10 );
relative no;
Have a look at the mixer tutorial inlet results and you will understand.

Good luck!
/Olle
kiddmax likes this.
otm is offline   Reply With Quote

Old   March 19, 2013, 19:45
Default
  #5
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Olle,

Thank you very much. It works now, but it still cannot calculate the torques on the walls. It seems like the force library just looks for p and U database. And there is only Urel here.

Pengchuan
pechwang is offline   Reply With Quote

Old   March 20, 2013, 01:21
Default
  #6
otm
New Member
 
Join Date: Jun 2009
Posts: 22
Rep Power: 16
otm is on a distinguished road
Hi!

Have you tried what I wrote im my first reply?
Quote:
Regarding torque calculations the solver will output a Uabs field that could be used. I guess it should work by setting "U Uabs;" in force section of your controlDict.
At the end of your controlDict put something like:
Code:
functions
(
    forces
    {
        type forces;
        functionObjectLibs ("libforces.so");
        outputControl timeStep;
        outputInterval 1;
        patches ( patchWithTorque );
        pname p;
        Uname Uabs;
        rhoName rhoInf;
        log true;
        rhoInf 1.205;
        CofR (0 0 0);
        pitchAxis (0 1 0);
    }
);
Hope this works.
/Olle
otm is offline   Reply With Quote

Old   March 20, 2013, 07:28
Default
  #7
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Olle,

Yes. I did. That's exactly what I wrote in my controlDict file. But it didn't work. The library searched the P and U database. And there was no U. So the it was in-active.
pechwang is offline   Reply With Quote

Old   October 15, 2013, 03:20
Default
  #8
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
Hi Wang, this thread is a bit old, but I guess you tried to put Urel into controlDict instead, right? It seems to work with Uname Urel; OF2.2.1

Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   October 29, 2013, 09:49
Default
  #9
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Mads,

I just accessed to this thread. As what we talked offline, putting Urel in the controlDict does not work in my case. I use 2.1.1 version. Force lib searches U and P database to calculate the force. Need to modify the solver to output U.

Thanks,
Pengchuan
pechwang is offline   Reply With Quote

Reply

Tags
inletvalue, srfpimplefoam, urel


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
how to access inletValue stevek OpenFOAM 1 August 15, 2013 05:19
SRFsimplefoam pechwang OpenFOAM 1 February 28, 2013 13:56
inletvalue and value in inletoutlet BC immortality OpenFOAM Running, Solving & CFD 4 November 23, 2012 17:18
SRFSimpleFoam Astarta OpenFOAM Running, Solving & CFD 0 April 10, 2012 11:43
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 18:38


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