CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] coupled boundary condition using swak/groovyBC

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By atoof
  • 1 Post By gschaider
  • 1 Post By ancolli

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2013, 06:54
Default coupled boundary condition using swak/groovyBC
  #1
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Dear Bernhard,

Is there any possible to use a thermally coupled boundary condition between two regions by swak (or groovybc)?

I have two solid and fluid regions where the following boundary condition should be satisfied.
Code:
-Ks * grad(Ts) = h * (Tf - Ts)
where Ks and h are known constants.

Best Regards,

Hossein
parthigcar likes this.
atoof is offline   Reply With Quote

Old   November 19, 2013, 11:48
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by atoof View Post
Dear Bernhard,

Is there any possible to use a thermally coupled boundary condition between two regions by swak (or groovybc)?

I have two solid and fluid regions where the following boundary condition should be satisfied.
Code:
-Ks * grad(Ts) = h * (Tf - Ts)
where Ks and h are known constants.

Best Regards,

Hossein
If you manage to set them up as mapped patches this might be possible with the mapped-function (see examples and the incomplete reference)

But why do you want to do this. I think the BC you describe is already in the built in functions (don't know the name)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 20, 2013, 06:37
Default
  #3
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Quote:
Originally Posted by gschaider View Post
If you manage to set them up as mapped patches this might be possible with the mapped-function (see examples and the incomplete reference)

But why do you want to do this. I think the BC you describe is already in the built in functions (don't know the name)
Dear Bernhard,

Thanks to reply. I am looking around these functions in the forum, but I have not got to a definitive answer. The nearest function as I've known so far is turbulentTemperatureCoupledBaffleMixed that used in multi region conjugate heat transfer solver.

I intended to apply the BC defined in the previous simply between solid and fluid regions in a laminar incompressible flow by swak. Do you suggest to manipulate above BC to achieve my own BC or define a new BC according to the simulation?

Could you please introduce me a mapped patches is suitable for that BC?

Thanks again,

Hossein
atoof is offline   Reply With Quote

Old   November 20, 2013, 06:57
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey Hossein,

in my opinion it should be possible to adapt the turbulent... BC on the Interface between both regions. I always use this BC but I never had a laminar flow Situation.

I think you should test it out.
Tobi is offline   Reply With Quote

Old   November 20, 2013, 07:24
Default
  #5
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Quote:
Originally Posted by Tobi View Post
Hey Hossein,

in my opinion it should be possible to adapt the turbulent... BC on the Interface between both regions. I always use this BC but I never had a laminar flow Situation.

I think you should test it out.
Thanks Tobias,

Indeed, I created a solver that the properties of fluid interpolate from a lookup table according to the fluid temperature. To develop my solver to simulate fluid flow and solid temperature in a multi region (solid+fluid) domain, I need the above boundary condition in the interface. Therefore h value in boundary condition should be interpolated in each cell of fluid region.

Do you think, the turbulent... BC can be adapted for laminar flow according to above simulation?

Hossein

Last edited by atoof; November 20, 2013 at 08:31.
atoof is offline   Reply With Quote

Old   November 20, 2013, 08:38
Default
  #6
Member
 
Hossein
Join Date: Apr 2010
Posts: 65
Rep Power: 15
atoof is on a distinguished road
Send a message via Yahoo to atoof
Quote:
Originally Posted by gschaider View Post
If you manage to set them up as mapped patches this might be possible with the mapped-function (see examples and the incomplete reference)

But why do you want to do this. I think the BC you describe is already in the built in functions (don't know the name)
Dear Bernhard,

Can 2-Way coupling of patches in groovy-bc be used to couple solid and fluid region such that used in http://openfoamwiki.net/index.php/Co...ing_of_patches?

Thanks
atoof is offline   Reply With Quote

Old   November 22, 2013, 12:42
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by atoof View Post
Dear Bernhard,

Can 2-Way coupling of patches in groovy-bc be used to couple solid and fluid region such that used in http://openfoamwiki.net/index.php/Co...ing_of_patches?

Thanks
That can be done (syntax is a bit different but described on the swak-page). But that way only ONE uniform value can be passed from one patch to the other (not one value for every face)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 29, 2017, 09:01
Default
  #8
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by atoof View Post
Dear Bernhard,

Can 2-Way coupling of patches in groovy-bc be used to couple solid and fluid region such that used in http://openfoamwiki.net/index.php/Co...ing_of_patches?

Thanks
Could u solve it with a value for every face from one patch to the other? Do u mind to share?
ancolli is offline   Reply With Quote

Old   July 30, 2017, 08:30
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ancolli View Post
Could u solve it with a value for every face from one patch to the other? Do u mind to share?
For a coupled patch there is a function neighbourField that gives you the value on the "other" side. So "neighbourField(T)" should give you the T-field on the other side. Just not sure whether this will work with mult-region cases. Alternatively try "mapped(T)"

Sorry. No time to experiment. But that is what I found in the reference guide in the Documentation folder
Tobi likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 31, 2017, 04:33
Default
  #10
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
Quote:
Originally Posted by gschaider View Post
For a coupled patch there is a function neighbourField that gives you the value on the "other" side. So "neighbourField(T)" should give you the T-field on the other side. Just not sure whether this will work with mult-region cases. Alternatively try "mapped(T)"

Sorry. No time to experiment. But that is what I found in the reference guide in the Documentation folder
thanks for ur time, I tried with both, but it seems that groovyBC can not reconise the field (I named them differently: Tsolid and Tfluid) in the second region without specifing it in the following way: {solid_to_fluid/solid}
parthigcar likes this.
ancolli is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 11:32
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 04:52.