phaseField.getFaceValue() will return the value of all the values of the
phasefield.  I am trying to assign the value of each cell unit a flux that is
dependent on the value of the phase variable at that particular cell.

For a square mesh, if the left side has a phasefield value = 0, the flux will be
zero for that specific cell. Or if the right side has a phasefield value =1 the
flux will be 1 for that specific cell.  

The flux for each cell unit is updated for each time step.  
-- 
Michael Johnston
812-290-1578
Purdue University
Materials Science Engineering
[email protected]


Quoting Daniel Wheeler <[email protected]>:

> 
> Hi Michael,
> 
> I belive that if the "value" argument is a FaceVariable then it will
> work. So try something like this:
> 
>     BCs = [FixedFlux(faces=mesh.getExteriorFace(), value=constant *
> phaseField.getFaceValue()), ... ]
> 
> Cheers
> 
> On Mon, Feb 1, 2010 at 4:33 PM, Michael Johnston <[email protected]>
> wrote:
> >
> > I am looking to make a variable flux on the exterior faces of a
> Cahn-Hilliard 2D
> > mesh.  What is the proper way to update the FixedFlux as a function of the
> > exterior phase field variables of an imported mesh?
> > Var=phase field values
> > N=constant*Var (at the exterior faces)
> > BCs = (FixedFlux(mesh.getExteriorFace(), N)
> >
> > If you need more information please let me know, and I appreciate any help
> you
> > can give me.
> >
> > Thanks,
> > --
> > Michael Johnston
> > 812-290-1578
> > Purdue University
> > Materials Science Engineering
> > [email protected]
> >
> >
> >
> >
> >
> 
> 
> 
> -- 
> Daniel Wheeler
> 
> 

Reply via email to