|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9 ![]() |
Hello,
I am using directionMixed BC for my case of flow over 2D flat plate. At the top boundary I want to set du/dy = 0 and v = 0. Where velocity vector is (u,v,w). I have defined BC as: Code:
top //name of the boundary { type directionMixed; refValue uniform (0 0 0); refGradient uniform (0 0 0); valueFraction uniform (0 0 0 1 0 0); } |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 10 ![]() |
Quote:
they are (1st_tangent 2nd_tangent normal_component) of velocity: in this manner, valueFraction will be (0 0 0 0 0 1). see what ziemowitzima says: DirectionMixed mixed bc |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Boundary condition groovcBCDirection
Based on the directionMixed boundary condition this allows to set a boundary condition as a Dirichlet-condition only in certain directions while in the other directions it is a gradient-condition. can anyone know how to implement above condition? |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Thank you for your reply!!
Actually I am looking for setting up the boundary condition like: Code:
type directionMixed; refValue uniform (0 0 0); refGradient uniform (0 0 0); valueFraction uniform (0.1 0 0 0.2 0 0.2); value uniform (0 0 0); Thanks SS Last edited by wyldckat; March 24, 2019 at 14:51. Reason: Added [CODE][/CODE] markers |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Ok. Thanks!
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answers:
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Dear wyldckat, Thank you for your reply in detail.
Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0);//should I change this internal field? boundaryField { w1 { // type noSlip; type directionMixed; refValue uniform (0 0 0);//what about this uniform value if I have a table at value fraction refGradient uniform (0 0 0);//same question about this valueFraction table ( (0 (0.042735 0 0 0.01899696 0 0.042735)) (0.05 (0.042735 0 0 0.01899696 0 0.042735)) (1 (0.042735 0 0 0.01899696 0 0.042735)) ); //first value in (()) is time and rest values written in the bracket are values w.r.t. time value uniform;//what about this value should it be uniform?if we have a table at value fraction } w2 { type noSlip; } left1 { type cyclic; } right1 { type cyclic; } front1 { type cyclic; } back1 { type cyclic; } } Q2: If yes then what about the keyword uniform? Last edited by wyldckat; April 3, 2019 at 07:55. Reason: Added [CODE][/CODE] markers |
|
![]() |
![]() |
![]() |
![]() |
#10 | |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Quote:
Dear Bruno my csv/text file containing a table of valueFraction with respect to the time, for example: the first entity of the table looks like (0,(1 0 0 1 0 1))). |
||
![]() |
![]() |
![]() |
![]() |
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answers/questions @sadsid:
Quote:
Which OpenFOAM version are you using? I ask this because this requires the creation of a new boundary condition specifically for your requirement. |
||
![]() |
![]() |
![]() |
![]() |
#12 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
I am using OpenFOAM v5. Yes I think it needs to customize boundary condition directionMixed (am I right?). I will wait for your response. It would be helpful if you guide me to code it. Thanks for your quick response.
|
|
![]() |
![]() |
![]() |
![]() |
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answer: I wasn't able to look into this myself, namely to create the modified boundary condition.
However, here are the steps I advise you to take:
Last edited by wyldckat; April 7, 2019 at 16:42. Reason: forgot a couple of links |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 ![]() |
Dear Bruno
Thank you for the guidelines. Let me dig out in these. I will come back to you shortly. |
|
![]() |
![]() |
![]() |
Tags |
boundary, directionmixed, openfoam 2.3.x |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 07:38 |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 13:55 |
Accessing multiple boundary patches from a custom boundary condition file | ripudaman | OpenFOAM Programming & Development | 0 | October 22, 2014 18:34 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 17:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 17:44 |