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

boundary condition "calculated"

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By fumiya
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2013, 11:09
Default boundary condition "calculated"
  #1
New Member
 
nicolas
Join Date: Sep 2012
Location: grenoble
Posts: 4
Rep Power: 14
nick.17 is on a distinguished road
hi foamers. I'd like to understand this kind of boundary conditions. It is quite a silmple question, but I didn't find a sure answer.

In the boundary field for certain variables (eg eddy viscosity "nut" in a RASModel running a realizable k-epsilon, as i'm doing) i put:

Code:
    
box_outlet
    {
        type            calculated;
        value           uniform 0;
    }
Why i have to put a "value", if I want a calculated value. It will be 0 or it will be calculated?

thanks a lot!
nick.17 is offline   Reply With Quote

Old   March 23, 2013, 11:48
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
The value has no effect on the results.
It only affects how the field nut looks like in paraview at time "0".

Best regards,
Fumiya
immortality likes this.
fumiya is offline   Reply With Quote

Old   March 24, 2013, 07:49
Default
  #3
New Member
 
nicolas
Join Date: Sep 2012
Location: grenoble
Posts: 4
Rep Power: 14
nick.17 is on a distinguished road
so, my field nut is simply calculated and I state with "value" the initial condition? isn't it redundant? because I state also the following in \case\0\nut :
Code:
internalField   uniform 0;
I thought this was the initial condition.
nick.17 is offline   Reply With Quote

Old   March 24, 2013, 11:34
Default
  #4
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
For the ordinary variables(e.g., U, p), the internalField defined in the files in 0 directory is the initial condition
at each cell centers. On the other hand, for the field nut, the internalField is not used for the calculations
(it is merely a placeholder). The initial value of nut at each cell centers and face centers of boundary faces
are calculated by the turbulence model you selected.

If you use the kEpsilon model, the nut value at each time step is calculated by

Code:
nut_ = Cmu_*sqr(k_)/epsilon_;
nut_.correctBoundaryConditions();
Hope this helps,
Fumiya
nick.17 likes this.
fumiya is offline   Reply With Quote

Old   March 24, 2013, 12:47
Default
  #5
New Member
 
Paul Schroder
Join Date: Mar 2013
Location: Pella, IA USA
Posts: 5
Rep Power: 13
Miner is on a distinguished road
I have been trying to understand BC's better too. I see BC's defined in changeDictionaryDict, and again the same BC's defined in the 0 folder. The BC type is identified in each case. Why are the same things specified in multiple places? What happens if the BC types don't match from file to file?
Miner is offline   Reply With Quote

Old   March 24, 2013, 12:51
Default
  #6
New Member
 
nicolas
Join Date: Sep 2012
Location: grenoble
Posts: 4
Rep Power: 14
nick.17 is on a distinguished road
Thanks a lot for your explanation!
I have another question: if I calculate, after a simulation, the components of the velocity,
I have some files (MagU, Ux, Uy and Uz) in folder 0/ where, for each boundary condition i have the following:

Code:
boundaryField
{
    box_inlet
    {
        type            calculated;
        value           uniform 0;
    }
    box_outlet
    {
        type            calculated;
        value           uniform 0;
    }
    box_ground
    {
        type            calculated;
        value           uniform 0;
    }
the airflow it is set up to 60m/s on freestream, so, if I calculate the components anywhere on my domain, it is correct that it is "type calculated", but, the meaning of
"value uniform 0" there isn't, or better, I can't find it... Is it another placeholder?
nick.17 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
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Radiation interface hinca CFX 15 January 26, 2014 18:11
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Opening Boundary Condition andreachan Main CFD Forum 11 March 19, 2013 17:46
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 04:23


All times are GMT -4. The time now is 12:19.