コード例 #1
0
def createZones( mesh, U ):
    mrfZones = man.MRFZones( mesh )
    mrfZones.correctBoundaryVelocity( U )

    pZones = man.porousZones( mesh )
    pressureImplicitPorosity = ref.Switch( False )

    return mrfZones, pZones, pressureImplicitPorosity 
コード例 #2
0
def createZones(mesh, U):
    mrfZones = man.MRFZones(mesh)
    mrfZones.correctBoundaryVelocity(U)

    pZones = man.porousZones(mesh)
    pressureImplicitPorosity = ref.Switch(False)

    return mrfZones, pZones, pressureImplicitPorosity
コード例 #3
0
def createPorousZones( mesh, simple ):

     pZones = man.porousZones( mesh )
     pressureImplicitPorosity = ref.Switch( False )

     # nUCorrectors used for pressureImplicitPorosity
     nUCorr = 0
     
     if pZones.size():
         # nUCorrectors for pressureImplicitPorosity
         nUCorr = simple.dict().lookupOrDefault( ref.word( "nUCorrectors" ), 0 )

         if nUCorr > 0:
             pressureImplicitPorosity = ref.Switch( True );
             ref.ext_Info() << "Using pressure implicit porosity" << ref.nl
             pass
         else:
             ref.ext_Info() << "Using pressure explicit porosity" << ref.nl
             pass
     
     return pZones, pressureImplicitPorosity, nUCorr