CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   phase field interpolation (

Alucard January 17, 2012 12:52

phase field interpolation
I'm working in the development of my mesoscopic solidification model.
In few words I solve three coupled equations:
1 for the phase (phi) :
where phi=0 in the liquid
phi=1 in the solid
and varies as an hyperbolic arctg in between (the right hand side term imposes a fixed depth surface thickness)
Results for a growing circle are shown below (just to have an idea of what I'm trying to do):

Uploaded with

2 i solve a diffusion equation for the solute :

3. i couple with an entalpy equation:

My problem is to impose the v_front velocity cause it is function of a parameter
in the interface phi ]0,1[ domain.
is to know the position of the isocontours 0.9 and 0.5 in the domain and to evaluate so omega.
I can try to do it by bilinear interpolation by hands but I suppose (?) that perhaps there are some "tools" already developed in OpenFOAM (and that I don't find..).
Can someone please help me or give me some ideas in order to do it in a proper way?
Thank you

All times are GMT -4. The time now is 22:58.