CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   User Field Function (https://www.cfd-online.com/Forums/star-ccm/138172-user-field-function.html)

mosef June 30, 2014 04:09

User Field Function
 
Hey,

I created a 2D-circle which is filled with a material (paraffin). I want to simulate melting/solidification of the material. When I simulate the melting of the paraffin, it should be sink down to the ground, because the density of the solid paraffin is higher then the density of the molten paraffin.
I can simulate this by setting the 'Flow Stop Relative Solid Fraction' to >1. This is not the problem. But I am not satisfied with the solution...

My question now is:
Is it instead possible to set the 'Flow Stop Relative Solid Fraction' to < 1 and to create a field function, which defines a velocity for the paraffin in the y-direction (downwards)?
I have no experience with defining field functions and I have not found a good tutorial, is there somewhere a good one? Or can you help me telling me if this is possible?

Thanks a lot

mosef June 30, 2014 07:07

1 Attachment(s)
If I set the Flow Stop Function between 0 and 1, the melting process would look like this (doen't look right):

amjohn92 July 3, 2014 14:50

Similar...
 
I'm trying to do something similar (modeling paraffin melting). I'm super new to the software, and I can't figure out how to get even as far as you are. I can't get the right physics models and set them up. Could you give me some tips?

Thanks,
Alyssa

mosef July 7, 2014 04:42

Of course I can help you I think.
Your mesh is in a good quality? Which physic models do you have so far?

mosef July 14, 2014 04:57

Has nobody an idea how to solve my problem?

ping July 15, 2014 11:24

you cant impose a velocity directly but you can apply a momentum source which will add or subtract fluid velocity and this can be applied as a constant or from a field function

see the help on sources and on field functions to see how to do this

you can use the resulting velocities to alter the source function to increase or decrease the velocity at each time step

mosef July 16, 2014 10:27

I'll try it. Thanks so far.


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