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

k/omega boundary condition changed after decomposePar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2016, 08:26
Default k/omega boundary condition changed after decomposePar
  #1
Member
 
Yage
Join Date: May 2014
Posts: 60
Rep Power: 11
Yage is on a distinguished road
Dear All,

I set the boundary condition for k/omega for walls, such as for k:
Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0.04;

boundaryField
{
    frontAndBack
    {
        type            symmetry;
    }
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }
...
    walls
    {
        type            kqRWallFunction;
        value           uniform 0;
    }
}
but the values in each processor is changed after decompose:

Code:
boundaryField
{
    frontAndBack
    {
        type            symmetry;
    }
    inlet
    {
        type            fixedValue;
        value           nonuniform 0();
...
    blade
    {
        type            kqRWallFunction;
        value           uniform 0.04;
    }
...
}
Any idea about this problem?

Regards,
Yage
Yage is offline   Reply With Quote

Old   January 31, 2016, 13:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: It's not a problem, it's a counter-measure to avoid shooting one's own foot.
"kqRWallFunction" is a boundary condition that is calculated by OpenFOAM itself and the provided value is for post-processing purposes.

If you were using 0, the solver would crash in the first iteration, because somewhere it would try to do a division by k=0.
__________________

Last edited by wyldckat; January 31, 2016 at 18:01. Reason: "try to a" --> "try to do a"
wyldckat is offline   Reply With Quote

Old   January 31, 2016, 16:28
Default
  #3
Member
 
Yage
Join Date: May 2014
Posts: 60
Rep Power: 11
Yage is on a distinguished road
Dear Bruna,

thanks for your reply.

But the non-zero value will be also changed to internal field value, such as I use 1 instead of 0 for k at walls
Yage is offline   Reply With Quote

Old   January 31, 2016, 20:05
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

If you have specified a non-zero value for the value, then OpenFOAM would not change it to the internalField value.

My guess is that OpenFOAM replaces the value with internalField value (when the original value is zero) because it is the simplest estimate it can make based on the information it has.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 4, 2016, 03:54
Default
  #5
Member
 
Yage
Join Date: May 2014
Posts: 60
Rep Power: 11
Yage is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

If you have specified a non-zero value for the value, then OpenFOAM would not change it to the internalField value.

My guess is that OpenFOAM replaces the value with internalField value (when the original value is zero) because it is the simplest estimate it can make based on the information it has.

Hope this helps.

Cheers,
Antimony
Dear Antimony,

Sorry for the later reply.

My openfoam version is 2.3.0 and the omega boundary value will change to internalfield value after decompose. But both of the values are non-zero. This is very strange.

One more question:
If I refine the mesh with added layers (y+<6), so that I dont need the wallfunction. then I should use fixedValue with uniform value=1e-10 for both k and omega, is that correct?

Regards,
Yage
Yage 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
conjugate boundary condition Daniel_Khazaei OpenFOAM Programming & Development 0 December 31, 2013 13:11
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Opening Boundary Condition andreachan Main CFD Forum 11 March 19, 2013 16:46


All times are GMT -4. The time now is 06:02.