def write( self, os ) :
     from Foam.finiteVolume import fvPatchScalarField
     fvPatchScalarField.write( self, os )
     
     from Foam.OpenFOAM import keyType, word, token
     
     os.writeKeyword( keyType( word( "valueFraction" ) ) ) << self.valueFraction() << token( token.END_STATEMENT ) << nl
     os.writeKeyword( keyType( word( "refValue" ) ) ) << self.refValue() << token( token.END_STATEMENT ) << nl
     os.writeKeyword( keyType( word( "refGrad" ) ) ) << self.refGrad() << token( token.END_STATEMENT ) << nl
     
     self.writeEntry( word( "value" ), os );
     
     pass
 def write( self, os ):
     try:
        from Foam.finiteVolume import fvPatchScalarField
        fvPatchScalarField.write( self, os)
        self.coupleManager_.writeEntries( os )
        from Foam.OpenFOAM import word, token, nl
        os.writeKeyword( word( "K" ) ) << self.KName_ << token( token.END_STATEMENT ) << nl
        self.writeEntry( word( "value" ), os )
        pass
     except Exception, exc:
         import sys, traceback
         traceback.print_exc( file = sys.stdout )
         raise exc
    def write(self, os):
        try:
            from Foam.finiteVolume import fvPatchScalarField
            fvPatchScalarField.write(self, os)
            self.coupleManager_.writeEntries(os)

            from Foam.OpenFOAM import word, token, nl
            os.writeKeyword(word("K")) << self.KName_ << token(
                token.END_STATEMENT) << nl
            self.writeEntry(word("value"), os)
        except Exception, exc:
            import sys, traceback
            traceback.print_exc(file=sys.stdout)
            raise exc
Exemplo n.º 4
0
    def write(self, os):
        from Foam.finiteVolume import fvPatchScalarField
        fvPatchScalarField.write(self, os)

        from Foam.OpenFOAM import keyType, word, token

        os.writeKeyword(keyType(
            word("valueFraction"))) << self.valueFraction() << token(
                token.END_STATEMENT) << nl
        os.writeKeyword(keyType(word("refValue"))) << self.refValue() << token(
            token.END_STATEMENT) << nl
        os.writeKeyword(keyType(word("refGrad"))) << self.refGrad() << token(
            token.END_STATEMENT) << nl

        self.writeEntry(word("value"), os)

        pass
 def write(self):
     from Foam.finiteVolume import fvPatchScalarField
     fvPatchScalarField.write(self, os)
     self.writeEntry(word("value"), os)
     pass
    def write(self):
        from Foam.finiteVolume import fvPatchScalarField

        fvPatchScalarField.write(self, os)
        self.writeEntry(word("value"), os)
        pass