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

decomposePar changes fixedGradient BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2022, 00:21
Default decomposePar changes fixedGradient BC
  #1
New Member
 
chen
Join Date: May 2022
Posts: 4
Rep Power: 3
vb276 is on a distinguished road
Hello,
I am trying to simulate a pipe flow ,and boundary condition for temperature at outer is
fixedGradient
gradient uniform -100,
but after decomposePar ,the BC change to
fixedGradient
gradient nonuniform List<scalar>
before decomposePar
Code:
[boundaryField
{
    inter
    {
        type            zeroGradient;
    }

    outer
    {
        type            fixedGradient;
        gradient           uniform -100;       
    }   
    inlet1
    {
        type            cyclic;
    }
    outlet1
    {
        type            cyclic;
    }
    left
    {
        type            cyclic;
    }
    right
    {
        type            cyclic;
    }
}]
after decomposePar[boundaryField
{
    inter
    {
        type            zeroGradient;
    }
    outer
    {
        type            fixedGradient;
        gradient        nonuniform List<scalar> 0();
    }
    inlet1
    {
        type            cyclic;
    }
    outlet1
    {
        type            cyclic;
    }
    left
    {
        type            cyclic;
    }
    right
    {
        type            cyclic;
    }
    procBoundary0to1
    {
        type            processor;
        value           uniform 300;
    }
    procBoundary0to2
    {
        type            processor;
        value           uniform 300;
    }
}
]
is there anyone who know the reason?
vb276 is offline   Reply With Quote

Old   August 28, 2022, 10:08
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
nonuniform List<scalar> 0(); means that there are 0 faces of this patch calculated on the processor you looked at. If you look at this field file in the other processor directories you will find one/more which contain the correct value, because on this/these processor(s) the boundary is really used.
jherb is offline   Reply With Quote

Old   February 17, 2023, 02:55
Default
  #3
New Member
 
ali
Join Date: May 2022
Posts: 1
Rep Power: 0
popkeo is on a distinguished road
I agree with jherb, there are several processors folder, because outer is not distributed to the folder you check
If possible you can decrease the parallel number, and check each processor folder, there should be one folder with the right boundary conditions you need.
outer
{
type fixedGradient;
gradient uniform -100;
}
popkeo is offline   Reply With Quote

Old   February 26, 2023, 23:46
Default
  #4
New Member
 
Sulivar
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Sulivar is on a distinguished road
Based on the preliminary research, the working hypothesis is that the master reads the field (but directly from the case, and not from its 'processor0' directory) and then sends the relevant subset to all of the slaves. It would appear that the dictionary that was sent to the slave processors has no entries.
__________
World's Hardest Game
Sulivar is offline   Reply With Quote

Reply

Tags
fixedgradient parallel


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
Threaded decomposepar sqek OpenFOAM Pre-Processing 0 October 8, 2021 13:31
fixedGradient BC type with the channelOodles solver Bedotto OpenFOAM Running, Solving & CFD 5 April 15, 2019 09:49
decomposePar problem: Cell 0contains face labels out of range (Again)) limonegiallo OpenFOAM Pre-Processing 4 August 28, 2017 05:18
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 08:57
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 05:27


All times are GMT -4. The time now is 10:33.