def createZones( mesh, U ): mrfZones = man.MRFZones( mesh ) mrfZones.correctBoundaryVelocity( U ) pZones = man.porousZones( mesh ) pressureImplicitPorosity = ref.Switch( False ) return mrfZones, pZones, pressureImplicitPorosity
def createZones(mesh, U): mrfZones = man.MRFZones(mesh) mrfZones.correctBoundaryVelocity(U) pZones = man.porousZones(mesh) pressureImplicitPorosity = ref.Switch(False) return mrfZones, pZones, pressureImplicitPorosity
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