|
[Sponsors] |
June 16, 2017, 06:03 |
|
#261 |
New Member
Tiphaine Grandin
Join Date: Jun 2017
Posts: 4
Rep Power: 9 |
Hello and thanks for the answer !
Yeah I know, there is lots of step between 2.1 and 5.0 but it work for meltFoam solver post at the bigining of the conversation... Well I wil follow your advice and climb step by step. If it work I will share my solver for 5.0 version Bye |
|
June 16, 2017, 06:09 |
|
#262 |
Member
a
Join Date: Oct 2014
Posts: 49
Rep Power: 12 |
Typhain, are you saying meltfoam got compiled in OF5.0?
if so, pls send the link of the solver Thanks, |
|
June 16, 2017, 06:26 |
|
#263 |
New Member
Tiphaine Grandin
Join Date: Jun 2017
Posts: 4
Rep Power: 9 |
Here is the meltFoam solver for 5.0 OpenFoam.
And there is also the test case with gallium wich use meltFoam solver. mySolvers.tar.gz |
|
June 18, 2017, 11:28 |
|
#264 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Hallo,
If I am not mistaken, from OpenFOAM 4.0 in order to access the internal values it make uses of "primitiveField()" instead of "internalField()" (as in the earlier versions) and hence the error with gMax. try using this: Code:
residual = gMax(mag(alpha3New.primitiveField()-alpha3.primitiveField())); meanResidual = gSum(mag(alpha3New.primitiveField()-alpha3.primitiveField())*mesh.V())/gSum(mesh.V().field()); Regards, Ricky Quote:
__________________
If it is easy, then something is fishy! |
||
June 20, 2017, 06:26 |
|
#265 |
New Member
Tiphaine Grandin
Join Date: Jun 2017
Posts: 4
Rep Power: 9 |
Hello Ricky,
First of all I'd like to thank you for the answer, and then thank you for the help. Using primitiveField() work as expected and thanks to you the compilation of convMelt_parallel_solver work. There is also details on simulation that I have to correct but I think soon, I will post the solver uptated for OF5.0 and a testCase. My mission now is to change the entry of the simulation. In deed, I want to change the nature of the boundaries conditions : instead of having temperature, I would like to work with thermal flux. Maybe you have an idea, of how to proceed ? Regards Typhain |
|
June 20, 2017, 07:17 |
|
#266 |
Member
a
Join Date: Oct 2014
Posts: 49
Rep Power: 12 |
Dear Typhain,
There are two ways to proceed for implementing heat flux boundary condition namely, 1. programming method, edit the current boundary condition file located in src directory --> (Dirichlet boundary condition) to Neumann boundary condition or Robin based on your need. This methods involves compilation and then adding the name of.lib in the controlDict 2. Second method is slightly simpler, by using the groovy boundary conditions (check the implementation details here https://openfoamwiki.net/index.php/Contrib/groovyBC). here also u have to add "libs ( "libgroovyBC.so" );" in controlDict 3. I am not very sure whether swak4foam can also help u in doing this. But I would go for option 2. Happy Foaming! Regards, cfd@kgp |
|
July 18, 2017, 12:40 |
unconstrained close-contact melting
|
#267 | |
New Member
Deva Shafer
Join Date: Jul 2017
Posts: 2
Rep Power: 0 |
Fabian, would you be willing to share the solver you mention in your thesis which takes unconstrained close contact melting into account?
I realize your thesis came out some time ago - perhaps some of the other solvers mentioned on this forum have been updated to model unconstrained melting? If not, I would be very grateful for suggestions for how to implement this myself. At the moment I'm simply hoping to replicate a simple test case of Octadecane melting in a spherical enclosure. Full disclosure: I am new to OpenFOAM and have only attempted to model this problem in COMSOL and Fluent so far, without success. I expect the solution will require me to modify the momentum equation to A*(u - u_sink), where A is the porosity function and u_sink is the sinking velocity of the solid. I am not sure how to define u_sink in this case. I'm hoping OpenFOAM will be more suitable to this problem! Many thanks Quote:
|
||
July 18, 2017, 13:52 |
unconstrained close-contact melting
|
#268 |
New Member
Deva Shafer
Join Date: Jul 2017
Posts: 2
Rep Power: 0 |
Dear all,
Does anyone know if the solvers discussed in this thread can be used to model unconstrained close-contact melting? I am trying to replicate a simple case study of Octadecane melting in a spherical enclosure, but am not aware of any solvers which can take the sinking of the solid into account. I should note that I am new to OpenFOAM, and have only attempted to solve this problem in COMSOL and Fluent so far (without success). I'd love to know if anyone has had success using OpenFOAM for these purposes! Thank you! |
|
July 19, 2017, 09:06 |
|
#269 |
New Member
ahmed
Join Date: Jun 2017
Posts: 1
Rep Power: 0 |
Hi Typhain
is there OpenFoam version 5.0 ready for download, I search for this version in internet but I do not find it. I now use openFoam 4.1, I ask can I use meltFoam solver for this version, If your answer is yes. How can I use this solver please . I ask that because I am new to OpenFoam, And I want to model phase change materials . Thank you very much Ahmed Almudhafar |
|
August 3, 2017, 08:50 |
Solidification with shrinkage
|
#270 |
New Member
diwakar
Join Date: Sep 2016
Posts: 11
Rep Power: 10 |
Dear All,
Is there any one who has successfully modelled solidification with shrinkage. I want to do the shrinkage model in openfoam. But i dont know from where should I start. |
|
August 25, 2017, 04:29 |
|
#271 | |
New Member
diwakar
Join Date: Sep 2016
Posts: 11
Rep Power: 10 |
Quote:
I am trying to solve the three phase problem with your convFinMeltFoam solver. I have taken Fin material as air (third phase) with solid and liquid. I want to track the interface of liquid and air using VOF as solidification takes place. Due to density difference in solid and liquid, volume will shrink. I am unable to combine the solver with interFoam. Please give some advice... |
||
September 7, 2017, 10:06 |
|
#272 |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Hallo diwaker,
I am also trying to implement shrinkage model due to density variations, were you able to find some good literature? I am currently trying to adapt the model described in [1] to my solver: [1] "M. Raessi and J. Mostaghimi, Three-dimensional modeling of density variation due to phase change in complex free surface flows, Numerical Heat transfer, Part B, 47: 507-531, 2005" Thank you in advance. Regards, Ricky
__________________
If it is easy, then something is fishy! |
|
September 7, 2017, 15:25 |
|
#273 | |
New Member
diwakar
Join Date: Sep 2016
Posts: 11
Rep Power: 10 |
Quote:
you can look into paper by Sun and Garimella, they have done solidification shrinkage of TNT. "Numerical and Experimental Investigation of Solidification Shrinkage" 2007 i have some more papers but they are not like Raessi's paper. Using raessi's model you can get 3D cavity. I am also trying to implement the model by Sun and Garimella. but no progress so far.. were you able to implement shrinkage? ThankYou |
||
September 11, 2017, 05:39 |
|
#274 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Hallo diwaker and FOAMers,
I tried to implement the source term in "alphaEqn" as per this forum InterFoam: add a source term in alpha eq. and it seems that the source term is being calculated (checked via some print statements), but the problem is I don't see any effect in the simulation. --> This time I blindly followed Sun and Garimella [1], maybe I am doing something wrong. Here is a snippet of the code. Code:
volScalarField Sp ( IOobject ( "Sp", runTime.timeName(), mesh ), ((rhol - rhos)*gammas*fvc::ddt(alpha1)/rhol - gammas*fvc::div(phiAlpha1)) ); Code:
MULES::explicitSolve(geometricOneField(), alpha1, phi, tphiAlpha(), Sp,Su, 1, 0); Thank you! Regards, Ricky [1] " D. Sun and S.V. Garimella, Numerical and Experimental Investigation of Solidification Shrinkage, Prude University, 2007" Quote:
__________________
If it is easy, then something is fishy! |
||
September 11, 2017, 07:16 |
|
#275 |
New Member
diwakar
Join Date: Sep 2016
Posts: 11
Rep Power: 10 |
Dear ricky,
You are One step ahead of me. I am actually working on solver of Fabian with little modification. I combined the solver with interFoam. Right now i am working on it. will update you ASAP. Meanwhile i tried to combine the solidification solver with compressibleinterFoam. But it did not work. I got an error. I will try your approach by adding source term to alphaEqn. One Question? Did you solve continuity equation with source terms mentioned in both the papers...? Regards Diwakar janghel |
|
November 13, 2017, 06:07 |
|
#276 | |
New Member
Join Date: Apr 2014
Location: Germany
Posts: 24
Rep Power: 12 |
Hi
Quote:
http://www.sciencedirect.com/science...17931017329241 Darcy-Term + force balance https://link.springer.com/article/10.1007/s00231-016-1932-0 Variable viscosity http://www.sciencedirect.com/science...17931017300856 Forcing functions + force balance Best Moritz |
||
August 3, 2018, 12:05 |
|
#277 | |
New Member
Shekhar Singh
Join Date: Jun 2018
Posts: 1
Rep Power: 0 |
Quote:
|
||
October 22, 2018, 07:56 |
|
#278 |
New Member
Germilly Barreto
Join Date: Jul 2016
Location: Portugal
Posts: 25
Rep Power: 10 |
Hello ahmmedshakil,
I am dealing with the same problem (post: #100), have you solved it? My energy equation is: Code:
fvm::div(phiCpf, Tf) - fvm::laplacian(por*kf, Tf) - hconv*Ts + fvm::Sp(hconv, Tf) Code:
phiCpf = fvc::interpolate(cpf)*phi The solver is running, but the final result does not respect the conservation of energy. I think I have to do some correction, because of fvm::div(phiCpf, Tf) ... Can you help me? Thank you GB Last edited by Germilly; October 22, 2018 at 09:35. |
|
November 28, 2018, 02:49 |
Melting a simple 2-dimensional ice
|
#279 |
New Member
Parsa Nazmi
Join Date: Nov 2018
Posts: 1
Rep Power: 0 |
Hi Everyone
I'm new to OpenFoam6 and I want to melt a two dimensional square ice with conduction. I don't know how to start. Can you help me about solver? |
|
December 1, 2018, 12:15 |
|
#280 |
New Member
hemanth krishna kommu
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
hey i m using this sovler and i m facing an error(heat generation at bottom left corner) intial condition upper wall at higher temperature, lower wall at lower temperature, left and right wall at zero gradient condition
|
|
Tags |
melting openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Melting and solidification with free surface problem? | cqlwj123 | CFX | 6 | July 25, 2013 03:46 |
Can I solve this problem by Fluent? | Kai_kc | FLUENT | 1 | October 27, 2010 06:29 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Melting Problem | M | FLUENT | 0 | April 29, 2007 17:07 |