|
[Sponsors] |
June 12, 2019, 06:37 |
|
#61 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Quote:
To set the normal component to fixedValue and the two tangential components to fixedGradient, the valueFraction should be: Code:
valueFraction = n*n Alternatively (your case), to set the normal component to fixedGradient and the two tangential components to fixedValue, the valueFraction should be: Code:
valueFraction = I - n*n Code:
valueFraction uniform (1 0 0 0 0 1); |
||
June 12, 2019, 09:19 |
|
#62 | |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
Quote:
Respected Sir, Thank you so much for your kind reply and the detailed explanation. In my case, I have a vertical wall. So, v and w are my tangential components and u is my normal component. I wan to set dv/dx =0, dw/dx = 0 and u = 0. i.e. I want to set fixed gradient for my tangential components and fixed value for my normal component. Hence, I feel to set Code:
valueFraction uniform ( 0 0 1 0 0 0) With Thanks & Regards, Pavithra. |
||
June 12, 2019, 09:33 |
|
#63 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi Pavithra,
It would be helpful if you could give the unit normal of this "vertical wall", as it is unclear what exactly you are referring to. Philip |
|
June 12, 2019, 09:38 |
|
#64 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
||
June 12, 2019, 13:46 |
|
#65 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
||
June 12, 2019, 20:46 |
|
#66 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
||
October 2, 2019, 01:12 |
|
#67 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
Hello Everyone,
Back again here I want to implement the following boundary condition on the horizontal walls of a 2-D square cavity. The value of varies from 0 to 1 in steps of 0.25. I understand that when , the boundary condition becomes and . Also, when , the boundary condition becomes and . I am able to achieve the above two cases using directionMixed boundary condition. But I am unable to figure out how to set the boundary condition when takes a value such as 0.25, 0.5 or 0.75. For instance, when = 0.25, it becomes . Kindly please give me some directions to implement this boundary condition. Thank You. With Thanks Pavithra. |
|
December 24, 2020, 05:01 |
|
#68 |
New Member
shiyu
Join Date: Mar 2018
Location: london
Posts: 9
Rep Power: 8 |
Quote:
I faced a very similar question, like yours. Have you figured out how to implement the boundary condition below? [/QUOTE] For instance, when = 0.25, it becomes . [/QUOTE] Thanks. Best, Shiyu |
|
December 24, 2020, 22:38 |
|
#69 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
||
April 13, 2021, 04:13 |
|
#70 | |
New Member
tom tony
Join Date: Oct 2018
Posts: 2
Rep Power: 0 |
Quote:
According to your post ,I want to set a boundary conditon. the pacth is top wall ,I want to set dUz/dz = 5; so n = (0,0,1),then I-n*n = (1 0 0 1 0 0),refrefGradient repressent the dU/dn,so refGradient = (0 0 5) Code:
type directionMixed; refValue uniform (0 0 0); refGradient uniform (0 0 5); valueFraction uniform (1 0 0 1 0 0); |
||
April 13, 2021, 13:17 |
|
#71 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi tomtony,
Yes that's correct, assuming you want Ux and Uy to be zero. By the way, solvers (or paraview) may also want "value" to be define in the boundary condition, which corresponds to the current value on the patch e.g. the initial condition; you could just set this to the same value as refValue if you are not sure. Philip |
|
December 12, 2021, 00:36 |
|
#72 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Quote:
Hi Philip, I know you have answered to multiple questions about directionMixed. Your help was so useful for many about this BC. For me, I tried to figure out the valueFraction tensor I need for my case, but I think asking you is the best option for me. As you see here, I have a normal vector (1 0 0). The difference is that I need to have two fixed value components, one in normal direction and another on one of the tangential directions. Finally, the remaining tangential direction should be fixedGradient. You can see this in the following image: Code:
type directionMixed; refValue uniform (2 0 2); refGradient uniform (0 1 0); valueFraction uniform (1 0 0 0 0 1); So can you please check the values I considered for my case? How it detects the normal direction? Through valueFraction? Cheers, Mohammad Last edited by mostanad; December 12, 2021 at 02:17. |
||
December 13, 2021, 09:11 |
|
#73 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi Mohammad,
If I understand correctly, then yes your proposed valueFraction is correct. It will use fixedValue in the X and Z directions and fixedGradient in the Y direction. As for "How it detects the normal direction?", I am not sure I understand your question; the normal directions are just taken directly from the mesh geometry. The valueFraction here is independent of the normals and it is up to you to define it appropriately. For example, if the normals were non-uniform on the patch then you may need to define the valueFraction field as non-uniform in order to enforce what ever condition you want. Philip |
|
December 13, 2021, 18:43 |
|
#74 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Quote:
OK. Good. So the normal direction comes from patch.nf and not be extracted by valueFraction. Thank you for sharing you valuable information. Cheers, Mohammad |
||
April 4, 2023, 13:06 |
|
#75 | |
Member
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9 |
Quote:
I saw you have answered many questions about directionMixed. Based on my understanding of directMixed condition, I set up it for my case. I think you are the right person to ask if my setup is correct or not. Here is my case: Normal vector: (0 1 0) Velocity vector: (Vx, Vy, Vz) I want to set Vx = 0, dVy/dn = 0, and dVz/dn = 0. Below is my setup, do you think it is right? type directionMixed; refValue uniform (0 0 0); refGradient uniform (0 0 0); valueFraction uniform (1 0 0 0 0 0); Thanks for your help!!! |
||
April 5, 2023, 08:19 |
|
#76 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Quote:
After running the model, I suggest you check the boundary conditions are enforced as you expect, e.g. check Vx on the patch, and plot Vy and Vz away from the wall to check the gradient is zero. |
||
April 5, 2023, 11:27 |
|
#77 |
Member
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mixed difference | Shuo | Main CFD Forum | 1 | September 3, 2008 02:25 |
mixed convection | sumesh | FLUENT | 0 | March 7, 2008 01:00 |
Mixed CPU/GPU computing | Joe | Main CFD Forum | 4 | September 20, 2006 13:04 |
Direction mixed bc | evgenii | OpenFOAM Pre-Processing | 1 | November 30, 2005 05:37 |
mixed convection | raj calay | Main CFD Forum | 6 | April 21, 1999 23:33 |