Solid-liquid phase change

Elmer cases by the users for the users
Post Reply
Martin2000
Posts: 5
Joined: 02 Jan 2016, 22:45
Antispam: Yes

Solid-liquid phase change

Post by Martin2000 » 06 Jan 2016, 15:22

Hi Elmer users,

I wanted to simulate the phase change of water from liquid to solid with the enthalpy method. I am not sure, if I get the right input parameters because the time until phase change is happening is very short, so it would be nice if anybody who is practised in phase change simulations could take a look at the sif. First I had also Problems with the convergence tolerance. I solved this problem in decreasing the nonlinear relaxation factor to 0.25. My Problem is in 2D and the water is in a ractangular box with the size of 0.25*0.5 m.

I appreciate any hints.

Yours sincerely, Martin.
Attachments
case.sif
(4.78 KiB) Downloaded 273 times

raback
Site Admin
Posts: 3626
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Solid-liquid phase change

Post by raback » 06 Jan 2016, 21:33

Hi

For various phase change strategies the test case of Julien may be very usefull. See,
viewtopic.php?f=3&t=3846&start=0&hilit=phase+change

-Peter

XisZero
Posts: 14
Joined: 11 Sep 2014, 12:10
Antispam: Yes

Re: Solid-liquid phase change

Post by XisZero » 08 Jan 2016, 19:32

Hi Martin,

As far as i can see in your SIF, the Enthalpy is way too small.
I dont know what values you are using, but try with multiplying by 1000 as the unit of enthalpy should be J/m^3 . (333 kJ / kg, density = 1000 kg/m^3 --> 333 MJ/m^3).
Your cp is in J/kg K i think?

In addition to Peters link, you could take a look at a phase change UDF i have written for some tests:
viewtopic.php?f=3&t=3639

Hope it helps.

Greetings,

X=0

Martin2000
Posts: 5
Joined: 02 Jan 2016, 22:45
Antispam: Yes

Re: Solid-liquid phase change

Post by Martin2000 » 29 Feb 2016, 21:18

Hi XisZero,
thank you for your response.
Are you sure, that the unit of the enthalpy is J/m³?
After having simulated it with the new values (in J/m³), I think, the time until Phase Change is very long (about 13-16 h).
I appreciate any hints.

Yours sincerely, Martin.

sebastien ROUQUETTE
Posts: 96
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

Re: Solid-liquid phase change

Post by sebastien ROUQUETTE » 09 Dec 2019, 22:27

Hello Dear Elmer Users,

Actually i still have the same question .... i did 3 simulations (heat transfer / welding case) where i want to include the release of latent heat. But before doing this, i wanted to understand how to use the "phase change" option.

1st simulation: no latent heat and heat capacity is used

2nd: simulation: i used the phase change option with enthalpy (defined as integral of density * heat capacity) ...

but 2nd simulation did not give the same thermal results of the 1st????

3rd one: i did not multiply the heat capacity by the density.. just integrated it over the temperature interval.. and i got the same results as 1st simulation....

So the unit of "enthalpy" is really J/m3 ... because it is more J/kg ... i don't understand ...

If someone has an idea? if you need a sif file...i can attach it!

Regards, Sebastien
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group

sebastien ROUQUETTE
Posts: 96
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

Re: Solid-liquid phase change

Post by sebastien ROUQUETTE » 10 Dec 2019, 09:18

well well...
after one night of thinking and few more simulations....

I may have done a mistake!!! i have always defined the "heat capacity" in my "material library" also with the definition of "enthalpy" ... so i guess that the resolution of my heat transfer employed "heat capacity" instead of "enthalpy" as it was given! (i did not check the source code to check this statement!).
If i removed the definition of "heat capacity", it worked well with the enthalpy given in J/m3 unit (and not the one with the one given in J/kg which led to a computation abort!!).

As a conclusion, if you want to work with the "enthalpy" instead of "heat capacity"... don't give the "heat capacity" in the material section ... or there is probably a keyword to force the use of "enthalpy"? if someone knows? cheers.

Have a good day
Sebastien
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group

NJank
Posts: 95
Joined: 05 Dec 2009, 00:05
Location: Baltimore, MD, USA

Re: Solid-liquid phase change

Post by NJank » 22 Feb 2020, 17:13

In previous discussion the transient phase change solver required the inclusion of both Enthalpy and Effective Heat Capacity do to an issue getting transient enthalpy in the first time step. See discussion here:
viewtopic.php?f=3&t=2345

I have been doing this exclusively in all of my standard phase change models. The output behavior matches the analytical Neumann melting model. Maybe the issue is only with the Heat Capacity and not the Effective Heat Capacity keyword?

Post Reply