CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   melting problem: looking for appropriate solvers (https://www.cfd-online.com/Forums/openfoam-solving/93620-melting-problem-looking-appropriate-solvers.html)

som October 20, 2011 13:15

melting problem: looking for appropriate solvers
 
Did anybody solve melting problem with OpenFoam. Are there any appropriate solvers exist?

nimasam October 20, 2011 15:23

meltFoam
 
1 Attachment(s)
1) here is a solver i found some months ago in forum so if you search in forum you maybe find more

2) to use this solver, compile it with wmake command

3) it has a test case ;) too

som October 20, 2011 16:08

many thanks i'll try it asap

fabian_roesler October 29, 2011 16:03

New non-isothermal melting solver
 
2 Attachment(s)
Hi

I was writing a new melting solver for non-isothermal phase change. It can be used for isothermal melting as well. In the near future I want to combine meltFoam with my new solver which is significantly faster than the old solver. I although wrote an article about my work. Have a look here:


F. Rösler, D. Brüggemann (2011): Shell-and-tube type latent heat thermal energy storage: numerical analysis and comparison with experiments. Heat and Mass Transfer, Vol. 47 Issue 8 , 1027-1033, DOI: 10.1007/s00231-011-0866-9
http://www.springerlink.com/content/b1tp01k2u7q8j432/

What do you plan to do?

Regards

Fabian


Attachment 9805
Attachment 9806

som October 31, 2011 13:57

Quote:

Originally Posted by nimasam (Post 328791)
1) here is a solver i found some months ago in forum so if you search in forum you maybe find more

2) to use this solver, compile it with wmake command

3) it has a test case ;) too


It's been written for openFoam 1.3. I've managed to compile it after some minor changes for openfoam v2.01 .It works fine. Thanks again, Serge

nimasam October 31, 2011 14:07

yourwelcome, you can pay it forward :D
by putting your modified solver here for other users use ;)

be lucky

som November 1, 2011 12:56

Quote:

Originally Posted by fabian_roesler (Post 329995)
Hi

I was writing a new melting solver for non-isothermal phase change. It can be used for isothermal melting as well. In the near future I want to combine meltFoam with my new solver which is significantly faster than the old solver. I although wrote an article about my work. Have a look here:


F. Rösler, D. Brüggemann (2011): Shell-and-tube type latent heat thermal energy storage: numerical analysis and comparison with experiments. Heat and Mass Transfer, Vol. 47 Issue 8 , 1027-1033, DOI: 10.1007/s00231-011-0866-9
http://www.springerlink.com/content/b1tp01k2u7q8j432/

What do you plan to do?

Regards

Fabian


Attachment 9805
Attachment 9806


Hello. Your solver also works after some minore changes. Very fast for testcase geometry

fabian_roesler November 7, 2011 02:16

Re: Melting problem
 
Quote:

Originally Posted by som
hello, Fabian

I read your artical. It's very interesting for me.
Now I try to solve the following case : moving spherical
heat source in a tube storrage. How do you think is it possble to apply your solver for this problem?

Hi som

I don't quite know what you mean with moving spherical heat source. But it sounds to me like a boundary condition, right? So it must be possible to attach my solver to this problem.
Glade you like my solver. I'm still working on it to allow moving rigid body (solid phase) and volume expansion of the melt into a gaseous phase with volume-of-fluid method.

Regards

Fabian

som November 21, 2011 07:25

I have a ball with fixed T gradient on the boundary. this ball is placed into tube full of wax. Your solver acts very well with such problem.

Now i have new problem. I want make the ball moving in the tube.
I've tried to setup the boundary of the ball to type movingWallVelocity and run the case. Everything is good but a cant see any boundary displacement in ParaFoam.
Any ideas?

AnjaMiehe February 14, 2012 04:05

1 Attachment(s)
Hello everybody,

Quote:

Originally Posted by nimasam (Post 330202)
yourwelcome, you can pay it forward :D
by putting your modified solver here for other users use ;)

I quite agree and as I succeeded in compiling it in 2.1.0, see for the adapted solver below. The testcase given earlier by Fabian works and a Stefan-Problem testcase shows very good agreement between the numerical and the analytical solution.

som March 4, 2012 13:37

Quote:

Originally Posted by AnjaMiehe (Post 344292)
Hello everybody,



I quite agree and as I succeeded in compiling it in 2.1.0, see for the adapted solver below. The testcase given earlier by Fabian works and a Stefan-Problem testcase shows very good agreement between the numerical and the analytical solution.



What Stefan problem testcase do you mean? Where can i find it?

AnjaMiehe March 4, 2012 13:52

Hello Serge,

and welcome back to the thread. The Stefan Problem or Stefan Task is a classical testcase of solidification or melting, in fact where a moving boundary is met. The problem has an analytical solution depending on the various possible boundary conditions and as it is but 1 dimensional, it is very fast to validate parts of the code.

Try the key words "Stefan task solidification melting" in google or google scholar. I have just tried it and received lots of good hits.

Have a nice evening, Anja

som March 4, 2012 14:19

Quote:

Originally Posted by AnjaMiehe (Post 347579)
Hello Serge,

and welcome back to the thread. The Stefan Problem or Stefan Task is a classical testcase of solidification or melting, in fact where a moving boundary is met. The problem has an analytical solution depending on the various possible boundary conditions and as it is but 1 dimensional, it is very fast to validate parts of the code.

Try the key words "Stefan task solidification melting" in google or google scholar. I have just tried it and received lots of good hits.

Have a nice evening, Anja


yes, i know about it. I asked you about testcase for openfoam. Did you mean galliumErfMelting testcase or something else?

fabian_roesler March 5, 2012 02:19

Stefan Testcase
 
Hi

I used the gallium melting test case by Gau and Viskanta [Gau C. and Viskanta R.: Melting and Solidification of a Pure Metal on a Vertical Wall, Journal of Heat Transfer, 1986, 108(1), pp. 174–181] for validation. However there are two Stefan problem test cases that are also often used when it comes to melting simulation. The one phase or two phase Stefan problem. Have a look into Cranks book [Crank J.: Free and Moving Boundary Problems, 1984, Oxford University Press, Oxford].

Regards

Fabian

AnjaMiehe March 5, 2012 06:55

Quote:

Originally Posted by som (Post 347584)
yes, i know about it. I asked you about testcase for openfoam. Did you mean galliumErfMelting testcase or something else?

Hi,

I used the testcase of Fabian, the gallium melting and the Stefan Problem.

Regards, Anja

salehda June 6, 2012 22:21

Hi
I am trying to Compile the meltFoam.C , but I wasn't succesful because it was made for an older version - I had OpenFOAM-2.1.0 .
and while compiling it gave me an error message related to
readSIMPLEControls.H: No such file or directory
Any suggestions how to solve that please ?

Thanks
David

AnjaMiehe June 11, 2012 09:09

1 Attachment(s)
Hello David,

this I not trivial for me either as the solver was coded in 1.4.1, or at least that is the tag in the test case. Also, the test case proposes icoFoam, a PISO based solver, to solve the test case. I tried to rewrite meltFoam in 2.1.0 using the SIMPLE Algorithm but I found far more similarities in coding with the icoFoam solver in 2.1.0.

Therefore, and as my try for the meltSimpleFoam does compile but not solve the test case, here is my idea for the meltIcoFoam in 2.1.0 . For me, it compiles only with warnings and the rough test case given earlier in this thread works alright. I can't guarantee for anything.


I hope this is a help for you,
Regards, Anja

fabian_roesler June 11, 2012 09:28

compilation meltFoam
 
Hi

The meltFoam solver is based on the old buoyantBoussinesqPisoFoam solver as buoyancy is taken into account. You should be able to translate the solver to OpenFOAM 2.1.x. I did that few month ago but without comments and bad syntax. Maybe I can post the solver for OF_2.1.x after a small revision in the next days if you still need it :).

Regards

Fabian

fabian_roesler June 11, 2012 10:22

new MeltFoam solver for OF 2.1
 
1 Attachment(s)
Hi all

I posted that it might take some time to review the meltFoam solver and port it from OF_1.7 to OF_2.1 but I felt like doing it instantly. So here you go :). I hope you enjoy it.

Regards

Fabian

AnjaMiehe June 12, 2012 07:36

Hello,
thanks for the code Fabian, nice to see that I did a good job with the changings of erfConvectiveMeltingPimpleFoam posted here in #10 earlier ;-)
As far as my post on meltIcoFoam goes, I thought David was asking for an adapted coding of the solver in post #2 and that one is based on 1.4.1.
Thanks again for your code in general, I am having fun with it.

Anja


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