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

BUG: decomposePar changing BCs

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2020, 14:47
Default BUG: decomposePar changing BCs
  #1
Senior Member
 
Join Date: Dec 2019
Posts: 135
Rep Power: 3
shock77 is on a distinguished road
Hi,


I have noticed that decomposePar changes the boundary conditions, which is very annoying if you want to use many cores.


For e.g. it changed:


Code:
    outlet
    {
        type            waveTransmissive;
        field           p;
        psi             thermo:psi;
        fieldInf        101325;
        gamma          1.4;
        lInf            1;
        value           uniform 101325;
    }
To:


Code:
    outlet
    {
        type            waveTransmissive;
        gamma          1;
        fieldInf        101325;
        lInf            1;
        value           nonuniform 0();
    }
If I use gamma 7/5 I get gamma 7 in the end.


Can anyone tell me how to solve this problem? I use openfoam4.1.
shock77 is offline   Reply With Quote

Old   November 17, 2020, 04:17
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,872
Rep Power: 30
hjasak will become famous soon enough
Inmteresting - apologies for this.


I have checked the mapper constructors for all components, but I cannot see that gamma is not copied. In fact, it looks to me that the code is right.


Can you please give me more details: code version, a case I could look at (ideally, a tutorial) etc?


Hrv


P.S. Feel free to E-mail me directly.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 17, 2020, 07:18
Default
  #3
Senior Member
 
Join Date: Dec 2019
Posts: 135
Rep Power: 3
shock77 is on a distinguished road
Thank you for your kind help.


I have attached an edited tutorial case (forward step) from rhoCentralFoam. I have added the inlet and outlet boundary conditions in a way I am using them. The rest is untouched. I have also added a decomposeParDict.


In the folder of the processors you can see the changes of the boundary conditions. I have noticed it only by accident. I have also noticed, that the operation renumberMesh leads to the same phenomenon.


I am using openfoam4.1. I have downloaded it from openfoam.org. I have tried it with openfoam5 and openfoam7. The error still remains.


I can only upload up to 0.2 MB, so I have uploaded it on this website:


https://gofile.io/d/Cg6TvL




Thanks again for the help!
shock77 is offline   Reply With Quote

Old   November 20, 2020, 14:27
Default
  #4
Senior Member
 
Join Date: Dec 2019
Posts: 135
Rep Power: 3
shock77 is on a distinguished road
Did you find some time to have a look at it?



Or would you rather have it sent via e-mail? I just dont know how to attach a file with the forum's e-mail function.
shock77 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Bug in Workbench CFX Pierre1 CFX 6 August 2, 2017 00:18
checkMesh and decomposePar crashes with salome IDEAS mesh pajofego OpenFOAM 0 June 23, 2011 08:43
Bug in decomposePar and reconstructPar jutta OpenFOAM Bugs 1 March 26, 2010 04:51
Bug or a feature of OF15 rafal OpenFOAM Bugs 5 July 25, 2008 05:25
BCs for Pressure Correction Equation (SIMPLE) Bharath Somayaji Main CFD Forum 1 March 1, 2006 06:12


All times are GMT -4. The time now is 03:55.