Thankd Jonathan But I have strange results, no plot for phi because it value are very huge and negative and a very strange plot for p.
I have then open a shell and type this to check ((1-phi).getArithmethicFaceValue()*(1-phi).getFaceGrade()).getDivergence() and i got this error message AttributeError: 'binOp' object has no attribute 'getArithmethicFaceValue' when i type this (1-phi).getArithmethicFaceValue() I have the following error message AttributeError: 'binOp' object has no attribute 'getArithmethicFaceValue' regards 2008/9/3 Jonathan Guyer <[EMAIL PROTECTED]> > > > On Sep 3, 2008, at 2:49 PM, franck kalala wrote: > > I had this error message >> >> TypeError: unsupported operand type(s) for +: 'binOp' and 'unOp' >> > > which is because > > ((1-phi)*(1-phi).getGrad()).getDivergence() > > returns a FaceVariable > > > > Try > > ((1-phi).getArithmeticFaceValue()*(1-phi).getFaceGrad()).getDivergence() > > > > -- *********************************************** *********************************************** Franck Kalala Mutombo [EMAIL PROTECTED] African Institut for Mathematical Sciences, Muizenberg Cape Town, South Africa [EMAIL PROTECTED] ************************************************ ************************************************
