def updateCoeffs( self ):
     try:
        if self.updated():
           return
        from Foam.finiteVolume import volScalarField
        psip = volScalarField.ext_lookupPatchField(self.patch(), word( "psi" ) )
        pp = volScalarField.ext_lookupPatchField( self.patch(), word( "p" ) )
        
        self.gradient().ext_assign( psip * pp.ext_snGrad() + psip.ext_snGrad() * pp )
        fixedGradientFvPatchScalarField.updateCoeffs( self )
     except Exception, exc:
         import sys, traceback
         traceback.print_exc( file = sys.stdout )
         raise exc
    def updateCoeffs(self):
        try:
            if self.updated():
                return
            from Foam.finiteVolume import volScalarField

            psip = volScalarField.ext_lookupPatchField(self.patch(), word("psi"))
            pp = volScalarField.ext_lookupPatchField(self.patch(), word("p"))

            self.gradient().ext_assign(psip * pp.ext_snGrad() + psip.ext_snGrad() * pp)
            fixedGradientFvPatchScalarField.updateCoeffs(self)
        except Exception, exc:
            import sys, traceback

            traceback.print_exc(file=sys.stdout)
            raise exc
    def _init__fvPatch__DimensionedField_scalar_volMesh__dictionary(self, *args):
        if len(args) != 3:
            raise AssertionError("len( args ) != 3")
        argc = 0

        from Foam.finiteVolume import fvPatch

        try:
            fvPatch.ext_isinstance(args[argc])
        except TypeError:
            raise AssertionError("args[ argc ].__class__ != fvPatch")
        p = args[argc]
        argc += 1

        from Foam.finiteVolume import DimensionedField_scalar_volMesh

        try:
            DimensionedField_scalar_volMesh.ext_isinstance(args[argc])
        except TypeError:
            raise AssertionError("args[ argc ].__class__ != DimensionedField_scalar_volMesh")
        iF = args[argc]
        argc += 1

        from Foam.OpenFOAM import dictionary

        try:
            dictionary.ext_isinstance(args[argc])
        except TypeError:
            raise AssertionError("args[ argc ].__class__ != dictionary")
        dict_ = args[argc]

        fixedGradientFvPatchScalarField.__init__(self, p, iF)

        if dict_.found(word("gradient")):
            from Foam.OpenFOAM import scalarField

            self.gradient().ext_assign(scalarField(word("gradient"), dict_, p.size()))
            fixedGradientFvPatchScalarField.updateCoeffs(self)
            fixedGradientFvPatchScalarField.evaluate()
            pass
        else:
            self.ext_assign(self.patchInternalField())
            self.gradient().ext_assign(0.0)
            pass

        return self
 def updateCoeffs( self ):
     try:
        if self.updated():
           return
        from Foam.OpenFOAM import scalar
        neighbourField = self.coupleManager_.neighbourPatchField( scalar )
        
        from Foam.finiteVolume import volScalarField
        K = volScalarField.ext_lookupPatchField( self.patch(), self.KName_ )
        from chtMultiRegionFlux.r1_5.derivedFvPatchFields import solidWallTemperatureCoupledFvPatchScalarField
        
        self.gradient().ext_assign( solidWallTemperatureCoupledFvPatchScalarField.ext_refCast( neighbourField ).flux() / K )
     
        fixedGradientFvPatchScalarField.updateCoeffs( self )
        pass
     except Exception, exc:
         import sys, traceback
         traceback.print_exc( file = sys.stdout )
         raise exc   
    def updateCoeffs(self):
        try:
            if self.updated():
                return
            from Foam.OpenFOAM import scalar
            neighbourField = self.coupleManager_.neighbourPatchField(scalar)

            from Foam.finiteVolume import volScalarField
            K = volScalarField.ext_lookupPatchField(self.patch(), self.KName_)
            from chtMultiRegionFlux.r1_5.derivedFvPatchFields import solidWallTemperatureCoupledFvPatchScalarField

            self.gradient().ext_assign(
                solidWallTemperatureCoupledFvPatchScalarField.ext_refCast(
                    neighbourField).flux() / K)

            fixedGradientFvPatchScalarField.updateCoeffs(self)
            pass
        except Exception, exc:
            import sys, traceback
            traceback.print_exc(file=sys.stdout)
            raise exc
    def _init__fvPatch__DimensionedField_scalar_volMesh__dictionary( self, *args ):
        if len( args ) != 3 :
           raise AssertionError( "len( args ) != 3" )
        argc = 0
        
        from Foam.finiteVolume import fvPatch        
        try:
            fvPatch.ext_isinstance( args[ argc ] )
        except TypeError:
            raise AssertionError( "args[ argc ].__class__ != fvPatch" )
        p = args[ argc ]; argc += 1
        
        from Foam.finiteVolume import DimensionedField_scalar_volMesh
        try:
            DimensionedField_scalar_volMesh.ext_isinstance( args[ argc ] )
        except TypeError:
            raise AssertionError( "args[ argc ].__class__ != DimensionedField_scalar_volMesh" )
        iF = args[ argc ]; argc += 1
        
        from Foam.OpenFOAM import dictionary
        try:
            dictionary.ext_isinstance( args[ argc ] )
        except TypeError:
            raise AssertionError( "args[ argc ].__class__ != dictionary" )
        dict_ = args[ argc ]
        
        fixedGradientFvPatchScalarField.__init__( self, p, iF )
        
        if dict_.found( word( "gradient" ) ):
           from Foam.OpenFOAM import scalarField
           self.gradient().ext_assign( scalarField( word( "gradient" ) , dict_, p.size() ) )
           fixedGradientFvPatchScalarField.updateCoeffs( self )
           fixedGradientFvPatchScalarField.evaluate()
           pass
        else:
           self.ext_assign( self.patchInternalField() )
           self.gradient().ext_assign( 0.0 )
           pass

        return self