|
[Sponsors] |
March 18, 2013, 16:41 |
SRFsimplefoam inletvalue
|
#1 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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 |
|
March 19, 2013, 08:32 |
|
#2 | |
New Member
Join Date: Jun 2009
Posts: 22
Rep Power: 17 |
Hi
Quote:
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 |
||
March 19, 2013, 10:14 |
|
#3 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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? |
|
March 19, 2013, 17:43 |
|
#4 |
New Member
Join Date: Jun 2009
Posts: 22
Rep Power: 17 |
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); 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; Good luck! /Olle |
|
March 19, 2013, 20:45 |
|
#5 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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 |
|
March 20, 2013, 02:21 |
|
#6 | |
New Member
Join Date: Jun 2009
Posts: 22
Rep Power: 17 |
Hi!
Have you tried what I wrote im my first reply? Quote:
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); } ); /Olle |
||
March 20, 2013, 08:28 |
|
#7 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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. |
|
October 15, 2013, 04:20 |
|
#8 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
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 |
|
October 29, 2013, 10:49 |
|
#9 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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 |
|
Tags |
inletvalue, srfpimplefoam, urel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to access inletValue | stevek | OpenFOAM | 1 | August 15, 2013 06:19 |
SRFsimplefoam | pechwang | OpenFOAM | 1 | February 28, 2013 14:56 |
inletvalue and value in inletoutlet BC | immortality | OpenFOAM Running, Solving & CFD | 4 | November 23, 2012 18:18 |
SRFSimpleFoam | Astarta | OpenFOAM Running, Solving & CFD | 0 | April 10, 2012 12:43 |
RasInterFoam STRANGE RESULTS AT BOUNDARY | kumar2 | OpenFOAM Running, Solving & CFD | 8 | March 24, 2008 19:38 |