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

[swak4Foam] groovyBC for coupling of patches

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 16, 2010, 06:32
Default groovyBC for coupling of patches
  #1
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 15
deniggo is on a distinguished road
Hello,

I would like to use groovyBC for a periodic inlet/outlet. I tried the tutorial 4.2.3 on http://openfoamwiki.net/index.php/Contrib_groovyBC. In 0/U phi is taken into account and not U directly. So, I modified the BC to:

Code:
inlet
    {
      type                         groovyBC;
      variables                   "Uoutlet@outlet=-1*sum(U);";
      valueExpression        "Uoutlet/sum(mag(Sf()))*normal()";
      fractionExpression     "1"
      value                         $internalField;
}
outlet
    {
        type zeroGradient;
    }
But this error occurs: The expected return type vector is different from the stored result type "tensor".
I guess there's something wrong concerning the definition of U=vector and phi.

What do I have to change to get the bc running?

Thanks for your help,

Nico
deniggo is offline   Reply With Quote

 


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 07:56
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 08:00
[blockMesh] Merging edge patches Yosmcer OpenFOAM Meshing & Mesh Conversion 11 November 16, 2014 14:51
Cyclic boundaries in OF 21x morard OpenFOAM 25 May 13, 2013 22:35
[swak4Foam] some questions about neibours of patches in groovyBC immortality OpenFOAM Community Contributions 7 March 3, 2013 11:38


All times are GMT -4. The time now is 00:47.