|
[Sponsors] |
June 30, 2014, 04:09 |
User Field Function
|
#1 |
Member
Join Date: May 2014
Posts: 30
Rep Power: 12 |
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 |
|
June 30, 2014, 07:07 |
|
#2 |
Member
Join Date: May 2014
Posts: 30
Rep Power: 12 |
If I set the Flow Stop Function between 0 and 1, the melting process would look like this (doen't look right):
|
|
July 3, 2014, 14:50 |
Similar...
|
#3 |
New Member
Alyssa
Join Date: Jul 2014
Posts: 6
Rep Power: 12 |
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 |
|
July 7, 2014, 04:42 |
|
#4 |
Member
Join Date: May 2014
Posts: 30
Rep Power: 12 |
Of course I can help you I think.
Your mesh is in a good quality? Which physic models do you have so far? |
|
July 14, 2014, 04:57 |
|
#5 |
Member
Join Date: May 2014
Posts: 30
Rep Power: 12 |
Has nobody an idea how to solve my problem?
|
|
July 15, 2014, 11:24 |
|
#6 |
Senior Member
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20 |
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 |
|
July 16, 2014, 10:27 |
|
#7 |
Member
Join Date: May 2014
Posts: 30
Rep Power: 12 |
I'll try it. Thanks so far.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 13:06 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
mean, variance and covariance statistics of any field function on any part. | Subhadeep | STAR-CCM+ | 8 | February 18, 2010 17:19 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
User Field Function | hannow | STAR-CCM+ | 3 | November 24, 2009 20:20 |