CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Modifying solidificationMeltingSource for Mushy zone phasechange

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2021, 06:25
Smile Test case and solver
  #21
Member
 
Join Date: Nov 2020
Posts: 53
Rep Power: 6
mikulo is on a distinguished road
Quote:
Originally Posted by janghel View Post
Anyways I got it working for mushy zone ( both linear and schiel law case)
Hello, would you mind if you can share your solver and a test case? I will greatly appreciate it. Thanks!
mikulo is offline   Reply With Quote

Old   January 26, 2021, 07:12
Default Maybe
  #22
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
Quote:
Originally Posted by mikulo View Post
Hi, thank you for your shared case files and solver. May I ask in which solver will it work? It would have been nice if it will work on OF 7. I will try it later..

I ran it with Openfoam 6, so I guess it will work with openfoam 7 too. But I doubt whether it will run with openfoam8. Feel free to post any errors you get.


-
gtarang
gtarang is offline   Reply With Quote

Old   March 10, 2021, 13:09
Default Openfoam v6
  #23
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
Quote:
Originally Posted by mikulo View Post
Hi, thank you for your shared case files and solver. May I ask in which solver will it work? It would have been nice if it will work on OF 7. I will try it later..

Hi,

I just saw the message. I have used this with Openfoam 6.

Thanks
mikulo likes this.
gtarang is offline   Reply With Quote

Old   March 4, 2022, 02:58
Default
  #24
Member
 
Join Date: Nov 2020
Posts: 53
Rep Power: 6
mikulo is on a distinguished road
Quote:
Originally Posted by blebon View Post
If you update melt_fraction using the if statement, energy is not conserved, because solution of the energy balance equation is based on previous values of melt fraction and hence inconsistent with the current temperature. If I am not mistaken, the correction process (i.e. what is implemented in solidificationMeltingSource) is based under the assumption that enthalpies is the same both for solving the energy balance equation and updating the melt fraction. Upon convergence of the iterative process, both energy is conserved and melt_fraction residuals should be very small.

When you have a mushy zone, you need to replace Tmelt_ but the temperature corresponding to alpha1_[celli] (either using a formula -- lever rule, Scheil or whatever --) or a lookup table.
Hello, the way I understood the code, the alpha is just computed once for every time step. How could you say that the alpha residuals are computed and should be very small?

-Mike
mikulo is offline   Reply With Quote

Reply

Tags
melting openfoam, solidification, solidification/melting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 02:47
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 11:52
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 02:08


All times are GMT -4. The time now is 16:08.