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

MSc Thesis Project - Tube-in-Tank HE with PCM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2017, 04:34
Default MSc Thesis Project - Tube-in-Tank HE with PCM
  #1
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Hi,

New on the forum and the first thread, so give me a heads up if I missed something important.

Have been looking around on the forum for a while and have gotten some nice, useful information. But some questions remains...

To the case,
Me and a colleague are now doing our master thesis project where the objective is to create and validate a numerical model of an experimental setup of a tube-in-tank heat exchanger with a phase change material (PCM). We are working with ANSYS Fluent 17.0.
I don't really have a straight forward question, I am more looking for general tips/hints and inputs. We can't really get the simulation stable and are often getting crashes/errors after a couple of time steps (often different errors of the "Divergence detected in AMG solver"- kind, most often due to the temperature).

Here is the geometry of the model:
it is approximately 1m long, 30cm in diameter and it has 104 tubes. The inlet is on the bottom to the left and the outlet is on the top to the left. The heat transfer fluid (HTF) is coming in from the inlet at 0.15m/s and are spread out in 52 tubes. The HTF is then mixed on the right hand side and are further going in 52 tubes on the top towards the outlet. The HTF is one domain and the other is the PCM.
The temperature BC are ~120 C for the PCM and HTF inlet temperature is 35 C. (The whole domain is patched to 120 C).

We have tried different kinds of meshes,
this is one of them. We have also tried to fine tune the mesh with an increased number of cells and different types (tetrahedral or hexagon)
.

We have tried mesh sizes around 1 million cells up to 4 million cells. To much? To few?

Basic information about the model: 3d, pressure-based, RNG k-epsilon, transient case read into 3d, double precision, pressure-based, RNG k-epsilon, transient solver.

Some questions:
- How fine do you think the mesh needs to be? And what type of mesh would be most appropriate?
- What time step size should be sufficient? Could we do a fixed or is the adaptive a better choice?
- Any hints in general that should be good to consider?

I bet I missed a lot of information needed to give advice, so let me know and I will fill in all that's needed.

Would really appreciate some input!

Thanks in advance!
Attached Images
File Type: jpg Geometry1.jpg (45.0 KB, 41 views)
File Type: jpg Mesh.jpg (198.1 KB, 41 views)
Tapeworm is offline   Reply With Quote

Old   May 4, 2017, 05:35
Default Meshing
  #2
New Member
 
demirel suleyman
Join Date: Apr 2017
Location: Turkey
Posts: 28
Rep Power: 9
dmirel is on a distinguished road
Hey,

Regarding the mesh, I would do a tethraedral mesh, second order,for accurate results, a minimum of 0.2mm and a maximum of 60mm. For example, on the pipes I would mesh them with a 5-10mm target length, minimun 0.2mm and for the outer shell with 50mm target length maybe because you don't need small mesh on big parts that you don't study so you could use the power for the areas of interest. I'm a proeficient user with ANSA, wich is excellent for pre-processing so I don't know if this could be done in ANSYS Meshing, it was just a hint. I'm using ANSYS only as a solver.


Hope this helped even a little bit
dmirel is offline   Reply With Quote

Old   May 4, 2017, 06:01
Default
  #3
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by dmirel View Post
Hey,

Regarding the mesh, I would do a tethraedral mesh, second order,for accurate results, a minimum of 0.2mm and a maximum of 60mm. For example, on the pipes I would mesh them with a 5-10mm target length, minimun 0.2mm and for the outer shell with 50mm target length maybe because you don't need small mesh on big parts that you don't study so you could use the power for the areas of interest. I'm a proeficient user with ANSA, wich is excellent for pre-processing so I don't know if this could be done in ANSYS Meshing, it was just a hint. I'm using ANSYS only as a solver. Could you have a guess on approximately how many cells we need?


Hope this helped even a little bit
Thank you for the input!
Yeah, we are looking at the tetrahedral mesh as well, think that would be more accurate for our case. We have recently also tried out some "contact sizing"-mesh options. Haven't been able to run a simulation using the contact sizing yet though.

We are both beginners and haven't really worked with ANSYS or larger CFD simulations before. How much time (approximately) is usually needed in order to solve a problem like this you think? Of course it depends on the PC performance, but do you have a guess? Are we talking hours, days or weeks? We do have access to "super computers" at our School/department, which have massive PC performance (we are connected to 1 node which has 24 cores and 512GB of RAM with the CPU Intel Xeon Processor E5-2690 v3). Though we need to run some simulation at our private PC which are avarage to high performance personal use computers.

Last edited by Tapeworm; May 4, 2017 at 06:16. Reason: Missed a question
Tapeworm is offline   Reply With Quote

Old   May 4, 2017, 06:19
Default
  #4
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Couldn't edit my last post, sorry for double post.
Approximately how many cells do you think is required for a setup like this?
Tapeworm is offline   Reply With Quote

Old   May 4, 2017, 10:49
Default
  #5
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Hi,

You have asked some questions successively maybe we can proceed step by step.

What boundary conditions do you have in order to validate to an experiment you are doing? in other words,you need to focus on what exactly you are working on. Exact Objective?

So,if time-dependent melting process is one step ahead of heat transfer then you could give priority to PCM or you need to pay attention mesh you will do.(like mesh depending on turbulent flow regime,so, I do NOT know what regimes have fluid phase(s) you are working on, that is why you should need to calculate some boundary conditions first.)
oozcan is offline   Reply With Quote

Old   May 5, 2017, 07:37
Default
  #6
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by oozcan View Post
Hi,

You have asked some questions successively maybe we can proceed step by step.

What boundary conditions do you have in order to validate to an experiment you are doing? in other words,you need to focus on what exactly you are working on. Exact Objective?

So,if time-dependent melting process is one step ahead of heat transfer then you could give priority to PCM or you need to pay attention mesh you will do.(like mesh depending on turbulent flow regime,so, I do NOT know what regimes have fluid phase(s) you are working on, that is why you should need to calculate some boundary conditions first.)
Hi,

The objective is to both simulate the melting process and the solidification process. Both the HTF and the PCM material are user specified with mostly piecweis-linnear relation for the temperatur range of interest. More or less the only difference between the two cases are the initial temperature of the PCM and HTF.
We do feel quite confident with the boundary conditions.
Now in the beginning we are assuming adiabatic conditions around the model and do only have heat transfer (coupled wall) between the contact regions.

We keep getting crashes due to temperature limitation in XX number of cells in zone Y. The really strange thing with this is that when we refine the mesh (increase number of cells) the crashes comes earlier compared to if we have a slightly more simple mesh (decreased number of cells).
Tapeworm is offline   Reply With Quote

Old   May 5, 2017, 08:44
Default
  #7
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Tapeworm View Post
Hi,

The objective is to both simulate the melting process and the solidification process. Both the HTF and the PCM material are user specified with mostly piecweis-linnear relation for the temperatur range of interest. More or less the only difference between the two cases are the initial temperature of the PCM and HTF.
We do feel quite confident with the boundary conditions.
Now in the beginning we are assuming adiabatic conditions around the model and do only have heat transfer (coupled wall) between the contact regions.

Well done!

We keep getting crashes due to temperature limitation in XX number of cells in zone Y. The really strange thing with this is that when we refine the mesh (increase number of cells) the crashes comes earlier compared to if we have a slightly more simple mesh (decreased number of cells).
Could you give me more detail of mesh you do? it seems like answer could be based on mesh.
oozcan is offline   Reply With Quote

Old   May 5, 2017, 09:13
Default
  #8
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by oozcan View Post
Could you give me more detail of mesh you do? it seems like answer could be based on mesh.
Thank you for your time and effort! Really appreciate it!

Here are som screen shots from the mesh, including also information about the mesh quality. I also included a log file from the last simulation we made.

One thing we are not sure about regarding the BC are the turbulence-settings under the Velocity inlet. Which model should be more suitable and what setings? As for now we are using the standard "Intensity and Viscosity Ratio" With Turbulence intensity of 5% and Turbulent viscosity ratio of 10.

Thanks for the help!

Edit: For the log file i just included the beginning and ending of the simulation due to large file size.
Attached Images
File Type: jpg Capture.jpg (155.9 KB, 24 views)
File Type: jpg Capture2.jpg (165.7 KB, 25 views)
File Type: jpg Capture3.jpg (143.5 KB, 23 views)
File Type: jpg Capture4.jpg (143.3 KB, 21 views)
Attached Files
File Type: txt Fluent1.txt (109.4 KB, 8 views)

Last edited by Tapeworm; May 5, 2017 at 09:14. Reason: Missing information
Tapeworm is offline   Reply With Quote

Old   May 5, 2017, 09:30
Default
  #9
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
it should be compliance between minimum size and maximum tetra size in ANSYS-Meshing e.g. maximum tetra size should be two-times more than min. (up to me) to provide for better transition of computational nodes and I could not see what values skewness and max. aspect ratio are.

So cylindrical solid bodies mesh generally are recommended as sweepable but not tetra as it decreases mesh cell and improving quality for CFD.

As for turbulence, could you post secreenshot then we shall check it out
oozcan is offline   Reply With Quote

Old   May 5, 2017, 09:45
Default
  #10
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by oozcan View Post
it should be compliance between minimum size and maximum tetra size in ANSYS-Meshing e.g. maximum tetra size should be two-times more than min. (up to me) to provide for better transition of computational nodes and I could not see what values skewness and max. aspect ratio are.

So cylindrical solid bodies mesh generally are recommended as sweepable but not tetra as it decreases mesh cell and improving quality for CFD.

As for turbulence, could you post secreenshot then we shall check it out
Thank you!

Here are the values for Skewness and Asp. ratio:
Skewness:
min 1,23e-003
max 0,867
Av 0,328
Std Dev 0,114

Aspect Ratio
min 1,1078
max 10,335
Av 3,4944
Std Dev 1,7858

For the mesh with the cylindrical body, do you refer to the whole model or only the PCM or HTF tubes?


Absolutely! I was talking about theese values (see screen shots).
Do you think we even need a turbulent flow or could we assume it as laminar? The flow in the small tubes that passes through the PCM is for sure laminar, but the question is how the fluid behaves at the inlet and the "mixing" side on the opposite side of the inlet.
Attached Images
File Type: jpg Capture2.jpg (120.0 KB, 20 views)
File Type: jpg Capture.jpg (120.9 KB, 16 views)
Tapeworm is offline   Reply With Quote

Old   May 5, 2017, 10:11
Default
  #11
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
fluid flow behaves as laminar if Re<2300 in closed system or turbulent flow regime will be occurred technically or in theory.But some forget turbulent flow model in FLUENT accept fully-turbulent flow,that is, if model you have designed has not wider or more length (dimensionally) to achieve to be ''FULLY TURBULENT FLOW'', you can select ''laminar'' for sure.

if all hypothesis still show that fluid flow regime is accepted as turbulent, you need to calculate ''turbulent intensity and viscosity ratio numerically.you can easily find basic equations of two and write them down regarding boxes in FLUENT. I think you should get lower values of two if you calculates them because as far as I see, boundary conditions are lower.

Last edited by oozcan; May 5, 2017 at 17:16.
oozcan is offline   Reply With Quote

Old   May 6, 2017, 17:22
Default
  #12
New Member
 
abdulhamit
Join Date: Dec 2015
Posts: 21
Rep Power: 10
kaazto28 is on a distinguished road
Heat exchanger with PCM.
Tapeworm likes this.
kaazto28 is offline   Reply With Quote

Old   May 6, 2017, 17:46
Default
  #13
New Member
 
abdulhamit
Join Date: Dec 2015
Posts: 21
Rep Power: 10
kaazto28 is on a distinguished road
I think, Time step must be adaptive. Because I also try to solve the PCM, but İt is not solve. I do not know to use adaptive time-step.
Tapeworm likes this.
kaazto28 is offline   Reply With Quote

Old   May 8, 2017, 04:15
Default
  #14
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by kaazto28 View Post
Thank you! We will keep you informed if we manage do make some progress, please do the same!

Quote:
Originally Posted by kaazto28 View Post
I think, Time step must be adaptive. Because I also try to solve the PCM, but İt is not solve. I do not know to use adaptive time-step.
Yes, we also think you need to use the adaptive time step. Those settings are pretty straight forwards I think.

We did some calculations on the flow and we will assume laminar flow in the whole domain as well.
Tapeworm is offline   Reply With Quote

Old   May 8, 2017, 15:10
Default
  #15
New Member
 
abdulhamit
Join Date: Dec 2015
Posts: 21
Rep Power: 10
kaazto28 is on a distinguished road
http://imageresim.com/images/41627614081587625706.png last 3695 iteration

And then, http://imageresim.com/images/28439154858810415250.png

I suppose I will give up this job.
kaazto28 is offline   Reply With Quote

Old   May 10, 2017, 04:20
Default
  #16
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Would really appreciate some input in what might be happening here:

I was running the simulation and it seemed stable. The process is expected to take approximately 7200 seconds to finish. The melting process starts after ~200-300 seconds. The pictures included is from the FLUENT log at the flow time of 1363s - 1365s. During these few seconds, the simulation totally diverges and it can't seem to be recovered. Any suggestions on what can cause this or how to avoid this situation?

I mean, there is no new critical process happening in the model. I would understand if it was during these few seconds that the PCM starts to melt or something, then the calculations may be more complex and the simulation diverges. But looking at the results files during the seconds before this divergence, it behaves just the same as previously (from the start).

Any hints?

Thanks!
Tapeworm is offline   Reply With Quote

Old   May 10, 2017, 04:21
Default
  #17
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Edit: Forgot to include the pictures of the log-file. Here they are.
Attached Images
File Type: jpg TS_1212.JPG (125.2 KB, 10 views)
File Type: jpg TS_1213.JPG (141.7 KB, 9 views)
File Type: jpg TS_1214.JPG (148.5 KB, 9 views)
Tapeworm is offline   Reply With Quote

Old   May 10, 2017, 04:34
Default
  #18
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
What I did manage to do was to decrease the number of iterations from 30 to 10, but still keeping all other settings as before. This resulted in the simulation going on until the following state (see screen shot of log-file).

Here is also a picture of the temperature and the mass fraction of the model. For the mass fraction, the blue represents solid state and red is liquid.
Attached Images
File Type: jpg TS_1350.JPG (114.4 KB, 5 views)
File Type: jpg TS_1352.JPG (121.0 KB, 5 views)
File Type: jpg Mass_Fraction.jpg (73.5 KB, 10 views)
File Type: jpg Temperature.jpg (85.4 KB, 13 views)
Tapeworm is offline   Reply With Quote

Old   May 10, 2017, 08:03
Default
  #19
New Member
 
abdulhamit
Join Date: Dec 2015
Posts: 21
Rep Power: 10
kaazto28 is on a distinguished road
""During these few seconds, the simulation totally diverges and it can't seem to be recovered. Any suggestions on what can cause this or how to avoid this situation?""

I think, ANSYS notes that "time step" should be reduced in training notes. Iteration is not to be increased.

"The whole domain is patched to 120 C."
Why? Did not it have to be a lower temperature? And did not HTF have to be a higher temperature? for example htf inlet 120 C, pcm domain 35 C. I do not understand.
kaazto28 is offline   Reply With Quote

Old   May 10, 2017, 09:16
Default
  #20
New Member
 
Join Date: May 2017
Location: Sweden
Posts: 15
Rep Power: 9
Tapeworm is on a distinguished road
Quote:
Originally Posted by kaazto28 View Post
""During these few seconds, the simulation totally diverges and it can't seem to be recovered. Any suggestions on what can cause this or how to avoid this situation?""

I think, ANSYS notes that "time step" should be reduced in training notes. Iteration is not to be increased.

I use the adaptive time step, so it can decrease it to 0.0001s (if I remember correctly). Do not realy understand what you are trying to say here...

"The whole domain is patched to 120 C."
Why? Did not it have to be a lower temperature? And did not HTF have to be a higher temperature? for example htf inlet 120 C, pcm domain 35 C. I do not understand.
Cause I am simulating the discharge process. So the PCM is "fully loaded" and has stored all the energy possible. At this state the PCM and HTF should be assumed at a uniform temperature. The liquid/solid temperature is in a range between 105-110 C.

So for this process I want to extract the energy in the PCM. So the inlet temperature of the HTF is at 45 C and the outlet temperature will be higher.

The situation you are mentioning is for the charge process, when we want to store the energy in the PCM.
Tapeworm 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
CoCoons Project - Community-driven Documentation on OpenFOAM® Technology holger_marschall OpenFOAM Announcements from Other Sources 6 February 2, 2022 15:42
Freelancer Job: Project 2D shock tube cofferhugger CFD Freelancers 6 July 15, 2015 17:20
Concentric Tube heat-exchanger: Final year Project Help fufilnikku FLUENT 3 May 16, 2011 17:51
Blow Tank Simulation ... Need Help! treyevans CFX 1 February 20, 2010 01:42
Undergraduate thesis project Shadhanan Manickavasagar FLUENT 5 August 19, 2000 23:59


All times are GMT -4. The time now is 03:48.