|
[Sponsors] | |||||
Modelling of Melting and Solidification of Phase Change Materials |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Philip Adebayo
Join Date: May 2021
Posts: 1
Rep Power: 0 ![]() |
Dear All,
I am currently working on modelling of melting and solidification of phase change materials. I have been able to develop a solver using piecewise enthalpy-temperature relationship with the help of this thread. Total liquid volume fraction vs Time I was able to validate the model with some cases in the literature. Now, I want to implement the experimental enthalpy-temperature relationship based for binary mixture as defined in the attached picture. I implemented the equation in openfoam in the T.Eqn from the mentioned thread as shown below { volScalarField h2 = (cpL - cpS)*(Ta - Tm)*log(mag(h1)) + L/h1; fvScalarMatrix TEqn ( fvm::ddt(cp, T) +fvm::div(phi*fvc::interpolate(cp), T) - fvm::laplacian(DT/rho, T) ==- fvc::ddt(h2)- fvc::div(phi, h2) ); TEqn.relax(); TEqn.solve(); rhok = 1.0 - beta*(T - TRef); volScalarField Tstar = (Ta - Tm)*alpha + Tm; DH = DH + omegaDH*cp*(T - Tstar); } and in the source.H file as below volScalarField h1 =(T - Ta)/(Tm - Ta); forAll(mesh.cells(),celli) { if (T[celli] < Tm.value() && Tm.value()==T[celli]) { h1[celli]= (T[celli]-Ta.value())/ (Tm.value()-Ta.value()); } else { h1[celli]=1; } if (DH[celli] > L.value()) { DH[celli] = L.value(); } if (DH[celli] < 0) { DH[celli] = 0; } }; alpha=DH/L; A = -C*sqr(scalar(1)-alpha)/(rho*(pow(alpha,scalar(3))+C1)); I was able to compile and run the solver but the melting front progression is faster than the piecewise function for the same simulation parameter. I suspect that I may not be implementing the enthalpy-temperature relationship in the right way. I would appreciate any help and insight on how to better implement this code. Thank you. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Raza Saleem
Join Date: Mar 2024
Posts: 4
Rep Power: 3 ![]() |
can you please share which solver are you using?
|
|
|
|
|
|
![]() |
| Tags |
| melting&solidification, openfoam, pcm |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Verification of melting and solidification three phase model | kuechenrole | OpenFOAM Verification & Validation | 4 | May 10, 2020 12:47 |
| Modelling of meat in the presence of solidification and melting | cagri | Fluent Multiphase | 0 | June 2, 2019 11:04 |
| Melting Phase Change Materials | sa har | Main CFD Forum | 0 | July 21, 2018 03:08 |
| solidification and melting (phase change ) | Cfdpower | Main CFD Forum | 1 | October 7, 2016 13:39 |
| VOF with melting of Phase change materials | sakil2k3 | FLUENT | 3 | March 17, 2015 16:26 |