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

[swak4Foam] Heat Flux boundary conditions with groovyBC for chtMultiRegionFoam with solids only

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2014, 03:58
Default Heat Flux boundary conditions with groovyBC for chtMultiRegionFoam with solids only
  #1
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13
Kumudu is on a distinguished road
Dear Bruno,

Your advice really helped in my thesis, and now I have another question. I have used funkysetfields to define non uniform initial temperature for solid region (soil) in my problem. However, I want to ask you that, can we define non uniform constant heat flux boundary conditions using groovy at the solid - solid interface.

The problem with fluid is, I cannot run the simulation for longer time, as the time steps should be too small, unless otherwise it create problem with courant number. Therefore, here are my questions....

1. can we use, chtMultiRegionFoam only to solve heat conduction equation for solid-solid (no fluid region )?. Will it give error,if I keep bracket empty in the regionProperties as follows,


fluidRegionNames ( );
solidRegionNames ( Solid1 Solid2 );


2. And impose non-uniform heat flux boundary condition at the pipe inner surface to give the effect of fluid circulation in the pipe. How can I do it, if possible using groovy or any other easy way?.


I am thinking that leave the fluid region as a empty volume (a hole) and other solid regions are defined as previously. Only at the inner surface wall, impose the heat flux.

Could you please let me know about this.

Best regards,
Kumudu

Last edited by wyldckat; December 30, 2017 at 22:46. Reason: removed lost [QUOTE] marker
Kumudu is offline   Reply With Quote

Old   May 3, 2014, 10:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kumudu,

I've moved your question to a new thread, as it is considerably different from the other thread: http://www.cfd-online.com/Forums/ope...egionfoam.html

I have never tried to do what you're asking about, therefore I ask you to set-up an example case of what you're trying to do and share it with us.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 3, 2014, 12:07
Default
  #3
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13
Kumudu is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Kumudu,

I've moved your question to a new thread, as it is considerably different from the other thread: http://www.cfd-online.com/Forums/ope...egionfoam.html

I have never tried to do what you're asking about, therefore I ask you to set-up an example case of what you're trying to do and share it with us.

Best regards,
Bruno
Dear Bruno,

Thanks for the reply. I haven't tried that it yet. I thought it could be possible. As I see in the chtMultiRegionFoam, the fluid and the solid are solved separate. Therefore, I thought setting the fluidRegionNames ( ) empty will not matter.

Will it be?

secondly,for heat flux: at the interface between hole (previously water) and the pipe I hope to use the groovy as follows,

1. Use the faceSet to name the faces of the hole as "waterPipe".
2. Define the boundary conditions as follows,

T
{
internalField uniform 273;

boundaryField
{

waterPipe
{
type groovyBC;
variables "q0=50;alpha=0.05;"
gradientExpression "(q0*exp((pos().z)*(pos().z))/(4*alpha*time()";
value $internalField;
}

}

}

Is it correct?

If you think I can't use chtMultiRegionFoam, can I use LaplacianFoam and use the toposet to define the regions as I did in the chtMultiRegion and give the boundary condition with the help of groovy?.


Thank you Bruno,
Best regards,
Kumudu
Kumudu is offline   Reply With Quote

Old   May 3, 2014, 17:14
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Kumudu,

laplacianFoam doesn't work with multiple regions. At least not without some considerable additional coding.

I don't have the time to test this myself, therefore I don't know the answer. Which is why I asked you to share a simple case. It's possible that chtMultiRegionFoam may work with solid regions only, but I simply don't know, because I have never tried it and I don't remember reading about it on the forum .
Then again, I very vaguely remember reading something about someone trying to do it, but I can't remember if they succeeded or not.

As for the groovyBC, you're missing at least one parenthesis at the end of the "gradientExpression" line. Again, I'm not experienced enough with it to know right away if it works or not.

Best regards,
Bruno

PS: Please use the "[CODE]" markers, as explained in one of the links in my signature: Posting code and output with [CODE]
__________________
wyldckat is offline   Reply With Quote

Old   August 22, 2014, 12:26
Default
  #5
New Member
 
Cliff
Join Date: Aug 2014
Posts: 10
Rep Power: 12
cliffdub is on a distinguished road
Hello Kumudu,

I have great appreciation for your two-solid problem, as that is a test case that I am trying to use to teach myself. Did you have any success with chtMultiRegionFoam or setting up a multiRegion Laplacian?

http://www.cfd-online.com/Forums/ope...wo-solids.html

Yes, I'm still learning.

Cliff
cliffdub is offline   Reply With Quote

Old   August 23, 2014, 09:49
Default
  #6
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13
Kumudu is on a distinguished road
Quote:
Originally Posted by cliffdub View Post
Hello Kumudu,

I have great appreciation for your two-solid problem, as that is a test case that I am trying to use to teach myself. Did you have any success with chtMultiRegionFoam or setting up a multiRegion Laplacian?

http://www.cfd-online.com/Forums/ope...wo-solids.html

Yes, I'm still learning.

Cliff
Hi Cliff,

I just saw your massage. I am sorry to say that I used the chtMultiRegion as it is and didn't make any modification.

Best,
Kumudu
Kumudu is offline   Reply With Quote

Old   August 23, 2014, 13:20
Default
  #7
New Member
 
Cliff
Join Date: Aug 2014
Posts: 10
Rep Power: 12
cliffdub is on a distinguished road
Hi Kumudu,

You were able to solve multiple regions of solid only with chtMultiRegion? Is there an possibility that you could have a look at my two-solid heat transfer case and see where I have gone wrong?

https://www.dropbox.com/sh/1fxb42g1b...onJS_92kKyZgha

I currently do not have any fluids in the region properties.

Thank you many times for any time spent,

Cliff
cliffdub is offline   Reply With Quote

Old   August 23, 2014, 15:33
Default
  #8
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13
Kumudu is on a distinguished road
Quote:
Originally Posted by cliffdub View Post
Hi Kumudu,

You were able to solve multiple regions of solid only with chtMultiRegion? Is there an possibility that you could have a look at my two-solid heat transfer case and see where I have gone wrong?

https://www.dropbox.com/sh/1fxb42g1b...onJS_92kKyZgha

I currently do not have any fluids in the region properties.

Thank you many times for any time spent,

Cliff
Hi Cliff,

In my problem I had fluid, however, in the beginning I was trying to consider applying heat flux boundary conditions only at the places where I need to consider there is fluid. Anyway, chtMultiRegion can handle the solid-solid heat transfer and you do not have to do anything regarding that. Because, mine had solid-solid, and solid-fluid interfaces and I gave the following conditions at the interfaces, and I am not sure will it work without fluid. I think chtMultiRegion should work without fluid.

"solid1_to_solid2"
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
neighbourFieldName T;
K solidThermo;
KName none;
value $internalField;
}
Best,
Kumudu
Kumudu is offline   Reply With Quote

Reply


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
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
Radiation interface hinca CFX 15 January 26, 2014 18:11
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 16:00.