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

Mixed and directionMixed bc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2011, 05:43
Default Mixed and directionMixed bc
  #1
New Member
 
Join Date: Apr 2011
Posts: 9
Rep Power: 15
Fried is on a distinguished road
Hallo everyone,
I have to say I am quite new with using OpenFOAM.
I would like to impose a velocity boundary condition with a fixed value for two velocity components and a normal derivative for the remaining component, e.g.:
(u=const. dv/dn=assigned w=const.)
To me, the mixed type bc looked the right choice - or maybe the directionMixed, depends if I can give a different valuefraction for every component), but I am not able to find out anywhere how to specify it.
Is there anyone who can tell me the right assignment template?
Something like:
{
type mixed
refValue ...
reg gradient ...
...
}
Thanks in advance,
F.
Fried is offline   Reply With Quote

Old   April 5, 2017, 11:10
Default
  #2
Member
 
Join Date: Sep 2014
Posts: 32
Rep Power: 12
yongxiang is on a distinguished road
Hello Fried,
did you solve this problem in the end? I am also setting such BC as you wised, (u = 1, dvdn = 0, dw/dn= 0). Would you please show me how to specify such a BC?
Thanks very much.
Regards
YX.
yongxiang is offline   Reply With Quote

Old   April 6, 2017, 06:27
Default
  #3
New Member
 
Join Date: Apr 2011
Posts: 9
Rep Power: 15
Fried is on a distinguished road
Hello Yong Xiang,
no, unluckily I never got any reply and some time afterwords I was not working on this anymore. But quite some time has past, maybe now it's possible/easier to implement it?
Regards,
F.
Fried is offline   Reply With Quote

Old   April 7, 2017, 08:56
Default
  #4
Member
 
Join Date: Sep 2014
Posts: 32
Rep Power: 12
yongxiang is on a distinguished road
Hello Fried,
after some search online, I found one boundary condition which may do the bc, which is called directionMixed, which setting partly fixedValue and partly fixedGradient for corresponding velocity component are possible. Below is an example I used, for your info:

type directionMixed;
refValue uniform (5 0 0);
refGradient uniform (0 0 0);
valueFraction uniform (1 0 0 0 0 0);
value uniform (5 0 0);

regards
YX.
yongxiang is offline   Reply With Quote

Reply

Tags
directionmixed bc, mixed bc


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
DirectionMixed mixed bc evgenii OpenFOAM Pre-Processing 76 April 5, 2023 11:27
Direction mixed bc evgenii OpenFOAM Pre-Processing 1 November 30, 2005 05:37


All times are GMT -4. The time now is 19:02.