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

Swak4Foam: Groovy BC on a cyclic patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2022, 09:17
Default Swak4Foam: Groovy BC on a cyclic patch
  #1
New Member
 
Philipp
Join Date: Mar 2022
Posts: 6
Rep Power: 4
Phil910 is on a distinguished road
Hi everyone!

I am setting up a channel flow with periodic boundaries in the streamwise direction. Now i am trying to use the GroovyBC on my inlet patch. My idea is simple: I want to get the velocity components from my outlet patch and use them on my inlet patch but multiply the x-Component with a factor that i calculated before. As an example i just set the factor that i want to multiply my x-Component with to 2, so my boundary condition would be the following:

Code:
inlet
    {
        type            groovyBC;
        patchType       cyclic;
        value         uniform (0 0 0);
        variables
        (
        "U_x=neighbourField(U).x;"
        "U_y=neighbourField(U).y;"
        "U_z=neighbourField(U).z;"
        "corrFactor=2;"
        );
        valueExpression
        "vector(U_x*corrFactor,U_y,U_z)";
        }
I am using the neighbourField() function to get the velocity components from the neighbourPatch of my cyclic inlet patch. Unfortunately the groovyBC doesn't work and seems to just set the inlet as an cyclic type. Whatever i write in the valueExpression seems to not get recognized.

Is there a general problem of groovyBC working on cyclic Patches?
I thought about changing the inlet patch type to patch again instead of cyclic, but then i wouldn't be able to get my velocity components from the outlet patch.

I would be very thankful for any help!
Phil910 is offline   Reply With Quote

Reply

Tags
channel flow, cyclic, groovybc, periodic bc, swak4faom


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
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 37 November 29, 2024 11:15
steadyUniversalMRFFoam Tutorial fails in MixingPlane HenrikJohansson OpenFOAM Bugs 0 February 14, 2019 05:48
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 02:47
[mesh manipulation] Using createPatch in place of couplePatches sripplinger OpenFOAM Meshing & Mesh Conversion 8 November 13, 2009 08:14
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 13:23.