# melting problem: looking for appropriate solvers

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

September 11, 2019, 23:43
Moisture evaporation - if-else loop
#301
Senior Member

Kumaresh
Join Date: Oct 2016
Posts: 208
Rep Power: 6
Hello Luca,
In previous message, I have given a condition for moisture evaporation (phase change) quoted in a box.
Quote:
 CONDITION: T= 100 ==> moisture content =0 Based on it, mass and heat balances are calculated at the boiling plane (surface) as, Mass balance (r) = rho * alpha * (dx/dt) [kg/m2.s] Heat balance (-K dT/dx) = (r) * latent heat [W/m2]
I tried to evaluate the above condition separately. I mean, without pyrolysis, only phase change, in order to understand that how such condition can be implemented in the OpenFOAM.
I'm hereby attaching the solver (OF211). In this solver, under TEqn.H, I solved a if-else loop based on the above condition.
Quote:
 forAll(mesh.cells(), celli) { if (T[celli] >= Tsat.value()) { alpha[celli] = scalar(0.0); } else { alpha[celli] = alphaTemp[celli]; // alpha[celli] = alpha[celli]; // alpha[celli] = alpha[nearestCellIndex]; } }
However, the alpha (moisture content) is not solved properly with appropriate outcome. In my case, alpha has no expression (field operation), alpha is only solved based on the loop. So, do we need an expression to solve alpha basically? any ideas ?

If you have any ideas about it, kindly do share.

It will be helpful. Thank you
Attached Files
 Boiling_solver.tar.gz (156.7 KB, 7 views)

 November 24, 2019, 13:25 Solidification of pure metal #302 New Member   d durga prasad Join Date: Nov 2019 Posts: 3 Rep Power: 2 I was trying to make solidification model of pure metal. can I use erfConvectiveMeltingPimpleFoam solver for solidification just by changing initial and boundary conditions or do I need to make any changes to the solver part?

 December 23, 2019, 07:46 #303 New Member   Join Date: Jun 2017 Posts: 9 Rep Power: 0 making appropriate required physical changes should do

 December 23, 2019, 08:10 #304 New Member   d durga prasad Join Date: Nov 2019 Posts: 3 Rep Power: 2 Sir, can I know what are all the changes to be done?

 December 23, 2019, 08:12 #305 New Member   Join Date: Jun 2017 Posts: 9 Rep Power: 0 first check your solver for any test case.. if its working fine then all you need to do is supply physical BC & IC along with thermophyscial parameter..

 December 23, 2019, 08:16 #306 New Member   d durga prasad Join Date: Nov 2019 Posts: 3 Rep Power: 2 Sir, i have checked the solver for melting problem and it's working fine. But, when it come to Solidification problem, i'm unable to capture the natural convection effects. so, could you please help me with the initial and boundary conditions.

 December 23, 2019, 08:20 #307 New Member   Join Date: Jun 2017 Posts: 9 Rep Power: 0 post your results and error ...

 January 5, 2020, 07:37 #308 New Member   Riccardo Nati Join Date: Dec 2019 Posts: 4 Rep Power: 2 Hi everyone, I need to simulate the solidification of steel. At the moment I'm using the solver solidificationFoam, but there are some missing things: -Communication between solid and liquid domain, ingot and ingot mold -Thermal Shrinkage -Viscosity variation as a function of temperature What solver do you recommend? Thanks in advance! fumachi likes this. Last edited by riccardo93; January 6, 2020 at 14:39.

February 4, 2020, 02:46
meltingFoam works fine in OpenFOAM (v1912)
#309
Member

Join Date: Dec 2009
Location: Kanpur, India
Posts: 49
Rep Power: 12
Quote:
 Originally Posted by Pavithra Hi Everyone, I am attaching the results of some validation cases, herewith. I have attached the solver, cases and results. Any suggestions for improvements are welcome. Thank You. - Pavithra

Thanks Pavithra for sharing the solver meltingFoam. It works fine in the present version of OpenFOAM (v1912).

Regards

 Tags melting openfoam