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

initialising a thermal boundary layer at interface using funkySetFields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2019, 12:34
Default initialising a thermal boundary layer at interface using funkySetFields
  #1
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
Hi all,

I am using interThermalPhaseChangeFoam to model a growing vapour bubble in a superheated liquid that can achieve results as shown in the following image.



Apologies for the enlarged image.

I have initialised the bubble using funkysetfields by using the following code.

initFieldAlpha
{
field alpha1;
expression "1";
keepPatches true;
}
initTemp
{
field T;
expression "378.15";
keepPatches true;
}
alpha1.org
{
field alpha1;
expression "0";
condition "pow(pos().x-0,2) + pow(pos().y-0,2) < pow((0.1E-3),2)";
keepPatches true;
}
BubbleTemp
{
field T;
expression "373.15";
condition "pow(pos().x-0,2) + pow(pos().y-0,2) < pow((0.1E-3),2)";
keepPatches true;
}


However, I am trying to initialise a thermal layer around the interface of the bubble by the equation as shown in the image using the equation.

δT = r(T = Tsat + 0.99(T∞ −Tsat)) −R0

where δT is initial thermal layer thickness (7.00 × 10−6)

R0 is initial bubble radius

It is suggested that the initial thermal boundary layer is to be misplaced about 1-2 cells outside the bubble interface on the liquid side.

I am unsure whether this can be achieved by funkysetfields or groovyBC or through codeStream.

Thanks for spending the time looking at my problem. If i need to provide you with more information please let me know.
saj216 is offline   Reply With Quote

Old   October 25, 2019, 16:56
Default
  #2
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
Hey guys,

Does anyone have any suggestions/guidance for this problem?

Last edited by saj216; October 26, 2019 at 16:26.
saj216 is offline   Reply With Quote

Old   November 12, 2019, 17:04
Default
  #3
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
Anyone have any ideas, getting a bit desperate here . My knowledge so far, suggests that I use groovyBC however I'm unsure how to define the thickness of the boundary.
saj216 is offline   Reply With Quote

Old   January 10, 2023, 10:32
Default
  #4
New Member
 
Nikhil Chitnavis
Join Date: Sep 2019
Location: India
Posts: 19
Rep Power: 7
Nikhil2511 is on a distinguished road
Hi Sam,
Can you please tell me how you have initialized the temperature field (thermal boundary layer) in this pool boiling case. If possible can you share your test case?


Thank you
Nikhil2511 is offline   Reply With Quote

Old   January 10, 2023, 12:56
Default
  #5
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
Hi Nikhil,

Apologises I haven't been able to complete this. My project changed and I ended up doing something else.

A way to do it is to initialise a space between the bubble and the liquid using the > and < commands.

So added another two set of commands for the alpha field and the temperature field for the area when the bubble is greater than the radius and when the interface is between the bubble and liquid.

I hope it makes sense to you.
saj216 is offline   Reply With Quote

Old   January 11, 2023, 02:45
Default
  #6
New Member
 
Nikhil Chitnavis
Join Date: Sep 2019
Location: India
Posts: 19
Rep Power: 7
Nikhil2511 is on a distinguished road
Quote:
Originally Posted by saj216 View Post
Hi Nikhil,

Apologises I haven't been able to complete this. My project changed and I ended up doing something else.

A way to do it is to initialise a space between the bubble and the liquid using the > and < commands.

So added another two set of commands for the alpha field and the temperature field for the area when the bubble is greater than the radius and when the interface is between the bubble and liquid.

I hope it makes sense to you.

Hi Sam,
Thank you for the suggestion, I will try to implement this. Also in one of your page you posted that you converted interThermalPhaseChangeFoam for the newer version. If possible can you share that updated solver.


Thankyou
Nikhil2511 is offline   Reply With Quote

Old   February 10, 2023, 14:17
Default
  #7
Member
 
Sam
Join Date: May 2019
Posts: 64
Rep Power: 7
saj216 is on a distinguished road
Apologies for the late reply.

I have found a link for interThermalPhaseChangeFoam for a updated version 6.

https://github.com/Swagga5aur/interThermalPhaseFoam

I hope this helps as mine differs greatly from the original solver.
saj216 is offline   Reply With Quote

Old   February 25, 2023, 11:05
Default
  #8
New Member
 
Nikhil Chitnavis
Join Date: Sep 2019
Location: India
Posts: 19
Rep Power: 7
Nikhil2511 is on a distinguished road
Quote:
Originally Posted by saj216 View Post
Apologies for the late reply.

I have found a link for interThermalPhaseChangeFoam for a updated version 6.

https://github.com/Swagga5aur/interThermalPhaseFoam

I hope this helps as mine differs greatly from the original solver.

Hi Sam,
Thankyou for your reply and suggestion for the updated version of interThermalPhaseChangeFoam.
Nikhil2511 is offline   Reply With Quote

Reply

Tags
boundaries, bubble, code stream, funkysetfields, groovybc

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
Fluid Domain moving with Rigid body Lloyd Sullivan CFX 3 August 17, 2018 09:58
How to use the CFX periodic interface zhihuawan CFX 61 January 15, 2018 16:20
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44


All times are GMT -4. The time now is 22:41.