|
[Sponsors] |
August 31, 2017, 17:56 |
directionMixed boundary condition
|
#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); } |
|
December 7, 2017, 10:23 |
|
#2 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
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 |
||
March 22, 2019, 11:00 |
|
#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? |
|
March 22, 2019, 14:52 |
|
#4 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
|
||
March 22, 2019, 15:33 |
|
#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 15:51. Reason: Added [CODE][/CODE] markers |
|
March 22, 2019, 16:53 |
|
#6 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
|
||
March 22, 2019, 17:17 |
|
#7 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
Ok. Thanks!
|
|
March 24, 2019, 16:06 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
__________________
|
|
March 27, 2019, 11:12 |
|
#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 08:55. Reason: Added [CODE][/CODE] markers |
|
April 3, 2019, 05:41 |
|
#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))). |
||
April 3, 2019, 11:01 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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. |
||
April 3, 2019, 11:41 |
|
#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.
|
|
April 7, 2019, 17:40 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 17:42. Reason: forgot a couple of links |
|
April 8, 2019, 04:58 |
|
#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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 14:55 |
Accessing multiple boundary patches from a custom boundary condition file | ripudaman | OpenFOAM Programming & Development | 0 | October 22, 2014 19:34 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |