|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Philipp
Join Date: Mar 2022
Posts: 6
Rep Power: 4 ![]() |
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)"; } 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! |
|
![]() |
![]() |
![]() |
Tags |
channel flow, cyclic, groovybc, periodic bc, swak4faom |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
steadyUniversalMRFFoam Tutorial fails in MixingPlane | HenrikJohansson | OpenFOAM Bugs | 0 | February 14, 2019 04:48 |
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) | Aadhavan | OpenFOAM Meshing & Mesh Conversion | 2 | March 8, 2018 01:47 |
Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 36 | January 7, 2015 00:31 |
[mesh manipulation] Using createPatch in place of couplePatches | sripplinger | OpenFOAM Meshing & Mesh Conversion | 8 | November 13, 2009 07:14 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |