CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Heat Flux boundary conditions with groovyBC for chtMultiRegionFoam with solids only

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 2, 2014, 02:58
Default Heat Flux boundary conditions with groovyBC for chtMultiRegionFoam with solids only
  #1
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 3
Kumudu is on a distinguished road
[QUOTE=wyldckat;484054]

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
Kumudu is offline   Reply With Quote

Old   May 3, 2014, 09:29
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,948
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Kumudu,

I've moved your question to a new thread, as it is considerably different from the other thread: irregular model simulation with chtMultiregionFoam

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, 11:07
Default
  #3
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 3
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: irregular model simulation with chtMultiregionFoam

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, 16:14
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,948
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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, 11:26
Default
  #5
New Member
 
Cliff
Join Date: Aug 2014
Posts: 10
Rep Power: 2
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?

guidance please: transient heat conduction between two solids

Yes, I'm still learning.

Cliff
cliffdub is offline   Reply With Quote

Old   August 23, 2014, 08:49
Default
  #6
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 3
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?

guidance please: transient heat conduction between two solids

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, 12:20
Default
  #7
New Member
 
Cliff
Join Date: Aug 2014
Posts: 10
Rep Power: 2
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, 14:33
Default
  #8
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 3
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
3 boundary conditions at a time on a single wall surface n7310889 FLUENT 1 August 12, 2012 20:10
error message cuteapathy CFX 14 March 20, 2012 07:45
natural convection mehrdadeng CFX 10 February 25, 2011 06:25
Heat Flux as a Profile Boundary Condition Hitch8 CFX 2 April 22, 2010 13:09


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