|
[Sponsors] |
August 18, 2016, 12:20 |
2 BC on one Boundary
|
#1 |
New Member
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9 |
Hi all,
i want 2 different Boundary Condition for one Boundary. For example:half has T=300 and half has T=350. Is that possible? Or can i set Two regions and then remove the internal Boundary to reach my goal? Best regards Qiming |
|
August 18, 2016, 13:44 |
|
#2 |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 11 |
Hi Sheng,
You can use groovyBC from swak4Foam package, this is straightforward and easy to use. see this page for detailed information: https://openfoamwiki.net/index.php/Contrib/groovyBC Regards, Arsalan. |
|
August 19, 2016, 03:43 |
|
#3 |
New Member
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9 |
Hi Arsalan,
thank you for your quick reply. I have installed Swak4FOAM, but i know little about that. I wiil learn from that website. Can you show me how to set that BC if you have time? best regards |
|
August 19, 2016, 04:31 |
|
#4 |
Member
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 11 |
Well for an exact solution I need more information about your problem, but as an simple example of setting different variable values on a patch by groovyBC we need a piece of code as follows:
Code:
wall { type groovyBC; valueExpression "pos().x<0.05 ? 1 : pos().x<0.075 ? 2 : 0"; } Regards, Arsalan. |
|
August 19, 2016, 06:11 |
|
#5 |
New Member
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9 |
Thank you very much Arsalan. I will try this after i finish my lunch.
Best regards, Qiming |
|
Tags |
boundary condition |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D Windturbine simulation in SU2 | k.vimalakanthan | SU2 | 15 | October 12, 2023 05:53 |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 13:55 |
Low torque values on Screw Turbine | Shaun Waters | CFX | 34 | July 23, 2015 08:16 |
Implementation of boundary conditions for FVM | Tom | Main CFD Forum | 7 | August 26, 2014 05:58 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |