Re: Updating FixedFlux at exterior faces

2010-02-03 Thread Michael Johnston
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

Re: Updating FixedFlux at exterior faces

2010-02-02 Thread Daniel Wheeler
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 mljoh...@purdue.edu

Updating FixedFlux at exterior faces

2010-02-01 Thread Michael Johnston
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 =