def Execute(self): if self.Mesh == None: self.PrintError('Error: No input mesh.') boundaryLayerGenerator = vtkvmtk.vtkvmtkBoundaryLayerGenerator() boundaryLayerGenerator.SetInput(self.Mesh) boundaryLayerGenerator.SetWarpVectorsArrayName( self.WarpVectorsArrayName) boundaryLayerGenerator.SetLayerThickness(self.Thickness) boundaryLayerGenerator.SetLayerThicknessArrayName( self.ThicknessArrayName) boundaryLayerGenerator.SetLayerThicknessRatio(self.ThicknessRatio) boundaryLayerGenerator.SetMaximumLayerThickness(self.MaximumThickness) boundaryLayerGenerator.SetNumberOfSubLayers(self.NumberOfSubLayers) boundaryLayerGenerator.SetSubLayerRatio(self.SubLayerRatio) boundaryLayerGenerator.SetConstantThickness(self.ConstantThickness) boundaryLayerGenerator.SetUseWarpVectorMagnitudeAsThickness( self.UseWarpVectorMagnitudeAsThickness) boundaryLayerGenerator.SetIncludeSurfaceCells(self.IncludeSurfaceCells) boundaryLayerGenerator.SetNegateWarpVectors(self.NegateWarpVectors) boundaryLayerGenerator.Update() self.Mesh = boundaryLayerGenerator.GetOutput() self.InnerSurfaceMesh = boundaryLayerGenerator.GetInnerSurface() if self.Mesh.GetSource(): self.Mesh.GetSource().UnRegisterAllOutputs()
def Execute(self): if self.Mesh == None: self.PrintError('Error: No input mesh.') boundaryLayerGenerator = vtkvmtk.vtkvmtkBoundaryLayerGenerator() boundaryLayerGenerator.SetInputData(self.Mesh) boundaryLayerGenerator.SetWarpVectorsArrayName(self.WarpVectorsArrayName) boundaryLayerGenerator.SetLayerThickness(self.Thickness) boundaryLayerGenerator.SetLayerThicknessArrayName(self.ThicknessArrayName) boundaryLayerGenerator.SetLayerThicknessRatio(self.ThicknessRatio) boundaryLayerGenerator.SetMaximumLayerThickness(self.MaximumThickness) boundaryLayerGenerator.SetNumberOfSubLayers(self.NumberOfSubLayers) boundaryLayerGenerator.SetNumberOfSubsteps(self.NumberOfSubsteps) boundaryLayerGenerator.SetRelaxation(self.Relaxation) boundaryLayerGenerator.SetLocalCorrectionFactor(self.LocalCorrectionFactor) boundaryLayerGenerator.SetSubLayerRatio(self.SubLayerRatio) boundaryLayerGenerator.SetConstantThickness(self.ConstantThickness) boundaryLayerGenerator.SetUseWarpVectorMagnitudeAsThickness(self.UseWarpVectorMagnitudeAsThickness) boundaryLayerGenerator.SetIncludeSurfaceCells(self.IncludeSurfaceCells) boundaryLayerGenerator.SetIncludeSidewallCells(self.IncludeSidewallCells) boundaryLayerGenerator.SetNegateWarpVectors(self.NegateWarpVectors) boundaryLayerGenerator.SetCellEntityIdsArrayName(self.CellEntityIdsArrayName) boundaryLayerGenerator.SetInnerSurfaceCellEntityId(self.InnerSurfaceCellEntityId) boundaryLayerGenerator.SetOuterSurfaceCellEntityId(self.OuterSurfaceCellEntityId) boundaryLayerGenerator.SetSidewallCellEntityId(self.SidewallCellEntityId) boundaryLayerGenerator.SetVolumeCellEntityId(self.VolumeCellEntityId) boundaryLayerGenerator.Update() self.Mesh = boundaryLayerGenerator.GetOutput() self.InnerSurfaceMesh = boundaryLayerGenerator.GetInnerSurface()
def Execute(self): if self.Mesh == None: self.PrintError('Error: No input mesh.') boundaryLayerGenerator = vtkvmtk.vtkvmtkBoundaryLayerGenerator() boundaryLayerGenerator.SetInput(self.Mesh) boundaryLayerGenerator.SetWarpVectorsArrayName(self.WarpVectorsArrayName) boundaryLayerGenerator.SetLayerThickness(self.Thickness) boundaryLayerGenerator.SetLayerThicknessArrayName(self.ThicknessArrayName) boundaryLayerGenerator.SetLayerThicknessRatio(self.ThicknessRatio) boundaryLayerGenerator.SetMaximumLayerThickness(self.MaximumThickness) boundaryLayerGenerator.SetNumberOfSubLayers(self.NumberOfSubLayers) boundaryLayerGenerator.SetSubLayerRatio(self.SubLayerRatio) boundaryLayerGenerator.SetConstantThickness(self.ConstantThickness) boundaryLayerGenerator.SetUseWarpVectorMagnitudeAsThickness(self.UseWarpVectorMagnitudeAsThickness) boundaryLayerGenerator.SetIncludeSurfaceCells(self.IncludeSurfaceCells) boundaryLayerGenerator.SetNegateWarpVectors(self.NegateWarpVectors) boundaryLayerGenerator.Update() self.Mesh = boundaryLayerGenerator.GetOutput() self.InnerSurfaceMesh = boundaryLayerGenerator.GetInnerSurface() if self.Mesh.GetSource(): self.Mesh.GetSource().UnRegisterAllOutputs()
def Execute(self): if self.Mesh == None: self.PrintError('Error: No input mesh.') boundaryLayerGenerator = vtkvmtk.vtkvmtkBoundaryLayerGenerator() boundaryLayerGenerator.SetInput(self.Mesh) boundaryLayerGenerator.SetWarpVectorsArrayName(self.WarpVectorsArrayName) boundaryLayerGenerator.SetLayerThickness(self.Thickness) boundaryLayerGenerator.SetLayerThicknessArrayName(self.ThicknessArrayName) boundaryLayerGenerator.SetLayerThicknessRatio(self.ThicknessRatio) boundaryLayerGenerator.SetMaximumLayerThickness(self.MaximumThickness) boundaryLayerGenerator.SetNumberOfSubLayers(self.NumberOfSubLayers) boundaryLayerGenerator.SetNumberOfSubsteps(self.NumberOfSubsteps) boundaryLayerGenerator.SetRelaxation(self.Relaxation) boundaryLayerGenerator.SetLocalCorrectionFactor(self.LocalCorrectionFactor) boundaryLayerGenerator.SetSubLayerRatio(self.SubLayerRatio) boundaryLayerGenerator.SetConstantThickness(self.ConstantThickness) boundaryLayerGenerator.SetUseWarpVectorMagnitudeAsThickness(self.UseWarpVectorMagnitudeAsThickness) boundaryLayerGenerator.SetIncludeSurfaceCells(self.IncludeSurfaceCells) boundaryLayerGenerator.SetIncludeSidewallCells(self.IncludeSidewallCells) boundaryLayerGenerator.SetNegateWarpVectors(self.NegateWarpVectors) boundaryLayerGenerator.SetCellEntityIdsArrayName(self.CellEntityIdsArrayName) boundaryLayerGenerator.SetInnerSurfaceCellEntityId(self.InnerSurfaceCellEntityId) boundaryLayerGenerator.SetOuterSurfaceCellEntityId(self.OuterSurfaceCellEntityId) boundaryLayerGenerator.SetSidewallCellEntityId(self.SidewallCellEntityId) boundaryLayerGenerator.SetVolumeCellEntityId(self.VolumeCellEntityId) boundaryLayerGenerator.Update() self.Mesh = boundaryLayerGenerator.GetOutput() self.InnerSurfaceMesh = boundaryLayerGenerator.GetInnerSurface() if self.Mesh.GetSource(): self.Mesh.GetSource().UnRegisterAllOutputs()