How to exert radial velocity for a circular boundary in CFD-0-U file?

Submitted by Rachel on Sat, 03/24/2018 - 08:40

Dear all,

When I use the CFD package in the coupling simulation, in the initial conditions of velocity, i.e. CFD-0-U, I found all the three velocity of fluid must be set in three direction (x,y,z). However, when I have a circular boundary condition, the initial velocity of fluid should be always in the radial direction. This cannot be realized just using that in x, y and z directions. My question is: is there any possibility that we exert the radial velocity boundary conditions for a circular fluid boundary? Many thanks.

Regards,
Rachel

alice's picture

alice | Mon, 03/26/2018 - 09:03

Hi Rachel, 

I would recommend to have a look at the swak4foam package. It comprises groovyBC, which allows to use variables, user-defined equations etc. for calculating boundary conditions.

Best,

Alice

neniu's picture

neniu | Mon, 03/26/2018 - 11:54

Hi Rachel,

if you just want to prescribe a fix velocity with normal to each face surfaceNormalFixedValue (in OpenFOAM/lnInclude/surfaceNormalFixedValueFvPatchField.H) might be a simpler option.

The boundary condition takes a refValue which is the outwards pointing velocity.

Best,
Martin

Martin Niemann, DCS Computing