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

2 BC on one Boundary

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By arsalan.dryi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2016, 12:20
Wink 2 BC on one Boundary
  #1
New Member
 
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9
shengqiming is on a distinguished road
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
shengqiming is offline   Reply With Quote

Old   August 18, 2016, 13:44
Default
  #2
Member
 
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 11
arsalan.dryi is on a distinguished road
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.
arsalan.dryi is offline   Reply With Quote

Old   August 19, 2016, 03:43
Default
  #3
New Member
 
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9
shengqiming is on a distinguished road
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
shengqiming is offline   Reply With Quote

Old   August 19, 2016, 04:31
Default
  #4
Member
 
Arsalan
Join Date: Jul 2014
Posts: 74
Rep Power: 11
arsalan.dryi is on a distinguished road
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";
    }
in this situation, the variable values on the wall for x<0.05 are set to "1", for 0.05<x<0.75 are set to "2" and otherwise are set to "0".

Regards,
Arsalan.
shengqiming likes this.
arsalan.dryi is offline   Reply With Quote

Old   August 19, 2016, 06:11
Default
  #5
New Member
 
Sheng,Qiming
Join Date: Jul 2016
Posts: 13
Rep Power: 9
shengqiming is on a distinguished road
Thank you very much Arsalan. I will try this after i finish my lunch.

Best regards,
Qiming
shengqiming is offline   Reply With Quote

Reply

Tags
boundary condition


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
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


All times are GMT -4. The time now is 08:35.