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

Strange thing in boundary file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2014, 15:46
Default Strange thing in boundary file
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

is it normal that I am able to run a case where I define no boundary type like that:
Code:
6
(
    up
    {
        type            ;
        nFaces          40;
        startFace       15760;
    }
    down
    {
        type            ;
        nFaces          40;
        startFace       15800;
    }
    heatedWall
    {
        type            ;
        nFaces          20;
        startFace       15840;
    }
    left
    {
        type            ;
        nFaces          180;
        startFace       15860;
    }
    right
    {
        type            ;
        nFaces          200;
        startFace       16040;
    }
    frontAndBack
    {
        type            empty;
        nFaces          16000;
        startFace       16240;
    }
)
There is no error message an the case runs exactly the same way - with and without the types.

Solver: buoyantBoussinesqSimpleFoam

I am confused...
Tobi is offline   Reply With Quote

Old   February 24, 2014, 16:39
Default
  #2
New Member
 
Join Date: Jan 2014
Posts: 16
Rep Power: 12
flames is on a distinguished road
This file is from constant folder. You should have defined them in 0 folder. Or it cannot run I believe.
flames is offline   Reply With Quote

Old   February 24, 2014, 17:24
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Normally if you define the boundary as slip you have to use it in the initialfiles to (U,p,T...).

If there is a mismatch you will get an error. But in this case i can use wall on boundary condition and slip in T file (for example).
Tobi is offline   Reply With Quote

Old   February 25, 2014, 03:39
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Quote:
Originally Posted by Tobi View Post
Normally if you define the boundary as slip you have to use it in the initialfiles to (U,p,T...).

If there is a mismatch you will get an error. But in this case i can use wall on boundary condition and slip in T file (for example).
No sure I've got your question right but when there's no definition for the patch type patch itself become just genericPatch (OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatchNew.C)

Code:
    if (cstrIter == dictionaryConstructorTablePtr_->end())
    {
        if (!disallowGenericPolyPatch)
        {
            cstrIter = dictionaryConstructorTablePtr_->find("genericPatch");
        }
...
In case of slip BC it is a child of basicSymmetryFvPatchField which in turn is a child of transformPathField and there are no check on patch field type in these classes (unlike for example in wall functions where patch has to be of wall type).
alexeym 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
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 14:14
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 17:46
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 22:30.