<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <small>Hi,<br>
      <br>
      First of all, this concerns ParaFOAM edition and I am not sure if
      this is the right place to seek support. I am trying to use saved
      python state and code samples from paraview wiki to create a
      script that would read results, create two filters, set display
      properties and generate animation. The script works fine with
      "DataRepresentation1.Opacity" set to "1" (line 110 - the script
      attached below), but throws segmentation fault when I decrease it.
      Unfortunately, I need it at 0.1 to show the outline of the
      container during filling, so this is a serious problem. I do not
      get this error, regardless of opacity setting, when no images are
      saved (i.e. last line: "AnimateReader(results_OpenFOAM)").<br>
      <br>
      This error should be easy to reproduce using the results of the
      "Dam Break" OpenFOAM tutorial. I did this by entering the tutorial
      directory, creating script.py and starting the post-processing
      with command "paraFoam --script=script.py" (with opacity set to
      less than 1).<br>
      <br>
      As I am a beginner, any help would be appreciated.<br>
      <br>
      Best regards,<br>
      Yarek<br>
      <br>
      P.S. I have one question regarding the scripting itself: could
      someone explain to me how to set the image resolution and number
      of frames per time step for an animation which is defined like it
      is defined in my script?<br>
      <br>
      <br>
      The script:</small><br>
    <small><br>
      Delete()<br>
      <br>
      results_OpenFOAM = PV3FoamReader( guiName="results.OpenFOAM",
      UseVTKPolyhedron=0, LagrangianFields=[], VolumeFields=['alpha1'],
      UiRefresh=0, FileName='*.OpenFOAM', UpdateGUI=0, PointFields=[],
      MeshParts=['internalMesh'] )<br>
      <br>
      RenderView1 = GetActiveCamera()<br>
      RenderView1.LightSpecularColor = [1.0, 1.0, 1.0]<br>
      RenderView1.InteractionMode = '3D'<br>
      RenderView1.UseTexturedBackground = 0<br>
      RenderView1.UseLight = 1<br>
      RenderView1.CameraPosition = [0.599999999627471,
      0.47538539953529835, 3.3687869950278144]<br>
      RenderView1.FillLightKFRatio = 3.0<br>
      RenderView1.Background2 = [0.0, 0.0, 0.16470588235294117]<br>
      RenderView1.FillLightAzimuth = -10.0<br>
      RenderView1.LODResolution = 50.0<br>
      RenderView1.BackgroundTexture = []<br>
      RenderView1.HeadPose = [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
      0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]<br>
      RenderView1.KeyLightAzimuth = 10.0<br>
      RenderView1.StencilCapable = 1<br>
      RenderView1.LightIntensity = 1.0<br>
      RenderView1.CameraFocalPoint = [0.599999999627471,
      0.47538539953529835, 0.0]<br>
      RenderView1.ImageReductionFactor = 2<br>
      RenderView1.CameraViewAngle = 30.0<br>
      RenderView1.CameraParallelScale = 0.8719062332068892<br>
      RenderView1.EyeAngle = 2.0<br>
      RenderView1.HeadLightKHRatio = 3.0<br>
      RenderView1.StereoRender = 0<br>
      RenderView1.KeyLightIntensity = 0.75<br>
      RenderView1.BackLightAzimuth = 110.0<br>
      RenderView1.OrientationAxesInteractivity = 0<br>
      RenderView1.UseInteractiveRenderingForSceenshots = 0<br>
      RenderView1.UseOffscreenRendering = 0<br>
      RenderView1.Background = [0.0, 0.0, 0.0]<br>
      RenderView1.UseOffscreenRenderingForScreenshots = 1<br>
      RenderView1.NonInteractiveRenderDelay = 2<br>
      RenderView1.CenterOfRotation = [0.599999999627471,
      0.47538539953529835, 0.0]<br>
      RenderView1.CameraParallelProjection = 1<br>
      RenderView1.CompressorConfig = 'vtkSquirtCompressor 0 3'<br>
      RenderView1.HeadLightWarmth = 0.5<br>
      RenderView1.MaximumNumberOfPeels = 4<br>
      RenderView1.LightDiffuseColor = [1.0, 1.0, 1.0]<br>
      RenderView1.StereoType = 'Red-Blue'<br>
      RenderView1.DepthPeeling = 1<br>
      RenderView1.BackLightKBRatio = 3.5<br>
      RenderView1.StereoCapableWindow = 1<br>
      RenderView1.CameraViewUp = [0.0, 1.0, 0.0]<br>
      RenderView1.LightType = 'HeadLight'<br>
      RenderView1.LightAmbientColor = [1.0, 1.0, 1.0]<br>
      RenderView1.WandPose = [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
      0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]<br>
      RenderView1.RemoteRenderThreshold = 3.0<br>
      RenderView1.KeyLightElevation = 50.0<br>
      RenderView1.CenterAxesVisibility = 0<br>
      RenderView1.MaintainLuminance = 0<br>
      RenderView1.StillRenderImageReductionFactor = 1<br>
      RenderView1.BackLightWarmth = 0.5<br>
      RenderView1.FillLightElevation = -75.0<br>
      RenderView1.MultiSamples = 0<br>
      RenderView1.FillLightWarmth = 0.4<br>
      RenderView1.AlphaBitPlanes = 1<br>
      RenderView1.LightSwitch = 0<br>
      RenderView1.OrientationAxesVisibility = 0<br>
      RenderView1.CameraClippingRange = [2.8375991250775363,
      4.045568799953232]<br>
      RenderView1.BackLightElevation = 0.0<br>
      RenderView1.ViewTime = 0.5<br>
      RenderView1.OrientationAxesOutlineColor = [1.0, 1.0, 1.0]<br>
      RenderView1.LODThreshold = 5.0<br>
      RenderView1.CollectGeometryThreshold = 100.0<br>
      RenderView1.UseGradientBackground = 0<br>
      RenderView1.KeyLightWarmth = 0.6<br>
      RenderView1.OrientationAxesLabelColor = [1.0, 1.0, 1.0]<br>
      <br>
      AnnotateTimeFilter1 = AnnotateTimeFilter(
      guiName="AnnotateTimeFilter1", Shift=0.0, Scale=1.0, Format='%0.2f
      s' )<br>
      <br>
      SetActiveSource(results_OpenFOAM)<br>
      IsoVolume1 = IsoVolume( guiName="IsoVolume1", ThresholdRange=[0.1,
      1.1], InputScalars=['POINTS', 'alpha1'] )<br>
      <br>
      SetActiveSource(results_OpenFOAM)<br>
      DataRepresentation1 = Show()<br>
      DataRepresentation1.CubeAxesZAxisVisibility = 1<br>
      DataRepresentation1.SelectionPointLabelColor = [0.5, 0.5, 0.5]<br>
      DataRepresentation1.SelectionPointFieldDataArrayName =
      'vtkOriginalPointIds'<br>
      DataRepresentation1.SuppressLOD = 0<br>
      DataRepresentation1.CubeAxesXGridLines = 0<br>
      DataRepresentation1.CubeAxesYAxisTickVisibility = 1<br>
      DataRepresentation1.Position = [0.0, 0.0, 0.0]<br>
      DataRepresentation1.BackfaceRepresentation = 'Follow Frontface'<br>
      DataRepresentation1.SelectionOpacity = 1.0<br>
      DataRepresentation1.SelectionPointLabelShadow = 0<br>
      DataRepresentation1.CubeAxesYGridLines = 0<br>
      DataRepresentation1.OrientationMode = 'Direction'<br>
      DataRepresentation1.Source.TipResolution = 6<br>
      DataRepresentation1.ScaleMode = 'No Data Scaling Off'<br>
      DataRepresentation1.Diffuse = 1.0<br>
      DataRepresentation1.SelectionUseOutline = 0<br>
      DataRepresentation1.SelectionPointLabelFormat = ''<br>
      DataRepresentation1.CubeAxesZTitle = 'Z-Axis'<br>
      DataRepresentation1.Specular = 0.1<br>
      DataRepresentation1.SelectionVisibility = 1<br>
      DataRepresentation1.InterpolateScalarsBeforeMapping = 1<br>
      DataRepresentation1.CubeAxesZAxisTickVisibility = 1<br>
      DataRepresentation1.Origin = [0.0, 0.0, 0.0]<br>
      DataRepresentation1.CubeAxesVisibility = 0<br>
      DataRepresentation1.Scale = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.SelectionCellLabelJustification = 'Left'<br>
      DataRepresentation1.DiffuseColor = [0.0, 0.0, 1.0]<br>
      DataRepresentation1.SelectionCellLabelOpacity = 1.0<br>
      DataRepresentation1.CubeAxesInertia = 1<br>
      DataRepresentation1.Source = "Arrow"<br>
      DataRepresentation1.Source.Invert = 0<br>
      DataRepresentation1.Masking = 0<br>
      DataRepresentation1.Opacity = 0.1<br>
      DataRepresentation1.LineWidth = 1.0<br>
      DataRepresentation1.MeshVisibility = 0<br>
      DataRepresentation1.Visibility = 1<br>
      DataRepresentation1.SelectionCellLabelFontSize = 18<br>
      DataRepresentation1.CubeAxesCornerOffset = 0.0<br>
      DataRepresentation1.SelectionPointLabelJustification = 'Left'<br>
      DataRepresentation1.SelectionPointLabelVisibility = 0<br>
      DataRepresentation1.SelectOrientationVectors = ''<br>
      DataRepresentation1.CubeAxesTickLocation = 'Inside'<br>
      DataRepresentation1.BackfaceDiffuseColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.CubeAxesYAxisVisibility = 1<br>
      DataRepresentation1.SelectionPointLabelFontFamily = 'Arial'<br>
      DataRepresentation1.Source.ShaftResolution = 6<br>
      DataRepresentation1.CubeAxesFlyMode = 'Closest Triad'<br>
      DataRepresentation1.SelectScaleArray = ''<br>
      DataRepresentation1.CubeAxesYTitle = 'Y-Axis'<br>
      DataRepresentation1.ColorAttributeType = 'POINT_DATA'<br>
      DataRepresentation1.SpecularPower = 100.0<br>
      DataRepresentation1.Texture = []<br>
      DataRepresentation1.SelectionCellLabelShadow = 0<br>
      DataRepresentation1.AmbientColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.MapScalars = 1<br>
      DataRepresentation1.PointSize = 2.0<br>
      DataRepresentation1.Source.TipLength = 0.35<br>
      DataRepresentation1.SelectionCellLabelFormat = ''<br>
      DataRepresentation1.Scaling = 0<br>
      DataRepresentation1.StaticMode = 0<br>
      DataRepresentation1.SelectionCellLabelColor = [0.0, 1.0, 0.0]<br>
      DataRepresentation1.Source.TipRadius = 0.1<br>
      DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5019607843137255]<br>
      DataRepresentation1.CubeAxesXAxisTickVisibility = 1<br>
      DataRepresentation1.SelectionCellLabelVisibility = 0<br>
      DataRepresentation1.NonlinearSubdivisionLevel = 1<br>
      DataRepresentation1.CubeAxesColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.Representation = 'Surface'<br>
      DataRepresentation1.CustomBounds = [0.0, 1.0, 0.0, 1.0, 0.0, 1.0]<br>
      DataRepresentation1.CubeAxesXAxisMinorTickVisibility = 1<br>
      DataRepresentation1.Orientation = [0.0, 0.0, 0.0]<br>
      DataRepresentation1.CubeAxesXTitle = 'X-Axis'<br>
      DataRepresentation1.ScalarOpacityUnitDistance =
      0.024426686315073155<br>
      DataRepresentation1.BackfaceOpacity = 1.0<br>
      DataRepresentation1.SelectionCellFieldDataArrayName =
      'vtkOriginalCellIds'<br>
      DataRepresentation1.SelectionColor = [1.0, 0.0, 1.0]<br>
      DataRepresentation1.Ambient = 0.0<br>
      DataRepresentation1.SelectionPointLabelFontSize = 18<br>
      DataRepresentation1.ScaleFactor = 1.0<br>
      DataRepresentation1.BackfaceAmbientColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.Source.ShaftRadius = 0.03<br>
      DataRepresentation1.ScalarOpacityFunction = []<br>
      DataRepresentation1.SelectMaskArray = ''<br>
      DataRepresentation1.SelectionLineWidth = 2.0<br>
      DataRepresentation1.CubeAxesZAxisMinorTickVisibility = 1<br>
      DataRepresentation1.CubeAxesXAxisVisibility = 1<br>
      DataRepresentation1.Interpolation = 'Gouraud'<br>
      DataRepresentation1.SelectMapper = 'Projected tetra'<br>
      DataRepresentation1.SelectionCellLabelFontFamily = 'Arial'<br>
      DataRepresentation1.SelectionCellLabelItalic = 0<br>
      DataRepresentation1.CubeAxesYAxisMinorTickVisibility = 1<br>
      DataRepresentation1.CubeAxesZGridLines = 0<br>
      DataRepresentation1.ExtractedBlockIndex = 0<br>
      DataRepresentation1.SelectionPointLabelOpacity = 1.0<br>
      DataRepresentation1.Pickable = 1<br>
      DataRepresentation1.CustomBoundsActive = [0, 0, 0]<br>
      DataRepresentation1.SelectionRepresentation = 'Wireframe'<br>
      DataRepresentation1.SelectionPointLabelBold = 0<br>
      DataRepresentation1.ColorArrayName = ''<br>
      DataRepresentation1.SelectionPointLabelItalic = 0<br>
      DataRepresentation1.AllowSpecularHighlightingWithScalarColoring =
      0<br>
      DataRepresentation1.SpecularColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation1.LookupTable = []<br>
      DataRepresentation1.SelectionPointSize = 5.0<br>
      DataRepresentation1.SelectionCellLabelBold = 0<br>
      DataRepresentation1.Orient = 0<br>
      <br>
      SetActiveSource(AnnotateTimeFilter1)<br>
      DataRepresentation2 = Show()<br>
      DataRepresentation2.Interactivity = 1<br>
      DataRepresentation2.Opacity = 1.0<br>
      DataRepresentation2.Justification = 'Left'<br>
      DataRepresentation2.Bold = 0<br>
      DataRepresentation2.Resizable = 0<br>
      DataRepresentation2.Color = [1.0, 1.0, 1.0]<br>
      DataRepresentation2.WindowLocation = 'AnyLocation'<br>
      DataRepresentation2.TextScaleMode = 2<br>
      DataRepresentation2.Visibility = 1<br>
      DataRepresentation2.FontFamily = 'Arial'<br>
      DataRepresentation2.FontSize = 18<br>
      DataRepresentation2.Italic = 0<br>
      DataRepresentation2.Position = [0.05, 0.05]<br>
      DataRepresentation2.Shadow = 0<br>
      DataRepresentation2.Position2 = [0.1, 0.1]<br>
      DataRepresentation2.Orientation = 0.0<br>
      <br>
      SetActiveSource(IsoVolume1)<br>
      DataRepresentation3 = Show()<br>
      DataRepresentation3.CubeAxesZAxisVisibility = 1<br>
      DataRepresentation3.SelectionPointLabelColor = [0.5, 0.5, 0.5]<br>
      DataRepresentation3.SelectionPointFieldDataArrayName =
      'vtkOriginalPointIds'<br>
      DataRepresentation3.SuppressLOD = 0<br>
      DataRepresentation3.CubeAxesXGridLines = 0<br>
      DataRepresentation3.CubeAxesYAxisTickVisibility = 1<br>
      DataRepresentation3.Position = [0.0, 0.0, 0.0]<br>
      DataRepresentation3.BackfaceRepresentation = 'Follow Frontface'<br>
      DataRepresentation3.SelectionOpacity = 1.0<br>
      DataRepresentation3.SelectionPointLabelShadow = 0<br>
      DataRepresentation3.CubeAxesYGridLines = 0<br>
      DataRepresentation3.OrientationMode = 'Direction'<br>
      DataRepresentation3.Source.TipResolution = 6<br>
      DataRepresentation3.ScaleMode = 'No Data Scaling Off'<br>
      DataRepresentation3.Diffuse = 1.0<br>
      DataRepresentation3.SelectionUseOutline = 0<br>
      DataRepresentation3.SelectionPointLabelFormat = ''<br>
      DataRepresentation3.CubeAxesZTitle = 'Z-Axis'<br>
      DataRepresentation3.Specular = 0.1<br>
      DataRepresentation3.SelectionVisibility = 1<br>
      DataRepresentation3.InterpolateScalarsBeforeMapping = 1<br>
      DataRepresentation3.CubeAxesZAxisTickVisibility = 1<br>
      DataRepresentation3.Origin = [0.0, 0.0, 0.0]<br>
      DataRepresentation3.CubeAxesVisibility = 0<br>
      DataRepresentation3.Scale = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.SelectionCellLabelJustification = 'Left'<br>
      DataRepresentation3.DiffuseColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.SelectionCellLabelOpacity = 1.0<br>
      DataRepresentation3.CubeAxesInertia = 1<br>
      DataRepresentation3.Source = "Arrow"<br>
      DataRepresentation3.Source.Invert = 0<br>
      DataRepresentation3.Masking = 0<br>
      DataRepresentation3.Opacity = 1.0<br>
      DataRepresentation3.LineWidth = 1.0<br>
      DataRepresentation3.MeshVisibility = 0<br>
      DataRepresentation3.Visibility = 1<br>
      DataRepresentation3.SelectionCellLabelFontSize = 18<br>
      DataRepresentation3.CubeAxesCornerOffset = 0.0<br>
      DataRepresentation3.SelectionPointLabelJustification = 'Left'<br>
      DataRepresentation3.SelectionPointLabelVisibility = 0<br>
      DataRepresentation3.SelectOrientationVectors = ''<br>
      DataRepresentation3.CubeAxesTickLocation = 'Inside'<br>
      DataRepresentation3.BackfaceDiffuseColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.CubeAxesYAxisVisibility = 1<br>
      DataRepresentation3.SelectionPointLabelFontFamily = 'Arial'<br>
      DataRepresentation3.Source.ShaftResolution = 6<br>
      DataRepresentation3.CubeAxesFlyMode = 'Closest Triad'<br>
      DataRepresentation3.SelectScaleArray = ''<br>
      DataRepresentation3.CubeAxesYTitle = 'Y-Axis'<br>
      DataRepresentation3.ColorAttributeType = 'POINT_DATA'<br>
      DataRepresentation3.SpecularPower = 100.0<br>
      DataRepresentation3.Texture = []<br>
      DataRepresentation3.SelectionCellLabelShadow = 0<br>
      DataRepresentation3.AmbientColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.MapScalars = 1<br>
      DataRepresentation3.PointSize = 2.0<br>
      DataRepresentation3.Source.TipLength = 0.35<br>
      DataRepresentation3.SelectionCellLabelFormat = ''<br>
      DataRepresentation3.Scaling = 0<br>
      DataRepresentation3.StaticMode = 0<br>
      DataRepresentation3.SelectionCellLabelColor = [0.0, 1.0, 0.0]<br>
      DataRepresentation3.Source.TipRadius = 0.1<br>
      DataRepresentation3.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
      DataRepresentation3.CubeAxesXAxisTickVisibility = 1<br>
      DataRepresentation3.SelectionCellLabelVisibility = 0<br>
      DataRepresentation3.NonlinearSubdivisionLevel = 1<br>
      DataRepresentation3.CubeAxesColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.Representation = 'Surface'<br>
      DataRepresentation3.CustomBounds = [0.0, 1.0, 0.0, 1.0, 0.0, 1.0]<br>
      DataRepresentation3.CubeAxesXAxisMinorTickVisibility = 1<br>
      DataRepresentation3.Orientation = [0.0, 0.0, 0.0]<br>
      DataRepresentation3.CubeAxesXTitle = 'X-Axis'<br>
      DataRepresentation3.ScalarOpacityUnitDistance =
      0.017319894955591157<br>
      DataRepresentation3.BackfaceOpacity = 1.0<br>
      DataRepresentation3.SelectionCellFieldDataArrayName =
      'vtkOriginalCellIds'<br>
      DataRepresentation3.SelectionColor = [1.0, 0.0, 1.0]<br>
      DataRepresentation3.Ambient = 0.0<br>
      DataRepresentation3.SelectionPointLabelFontSize = 18<br>
      DataRepresentation3.ScaleFactor = 1.0<br>
      DataRepresentation3.BackfaceAmbientColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.Source.ShaftRadius = 0.03<br>
      DataRepresentation3.ScalarOpacityFunction = []<br>
      DataRepresentation3.SelectMaskArray = ''<br>
      DataRepresentation3.SelectionLineWidth = 2.0<br>
      DataRepresentation3.CubeAxesZAxisMinorTickVisibility = 1<br>
      DataRepresentation3.CubeAxesXAxisVisibility = 1<br>
      DataRepresentation3.Interpolation = 'Gouraud'<br>
      DataRepresentation3.SelectMapper = 'Projected tetra'<br>
      DataRepresentation3.SelectionCellLabelFontFamily = 'Arial'<br>
      DataRepresentation3.SelectionCellLabelItalic = 0<br>
      DataRepresentation3.CubeAxesYAxisMinorTickVisibility = 1<br>
      DataRepresentation3.CubeAxesZGridLines = 0<br>
      DataRepresentation3.ExtractedBlockIndex = 0<br>
      DataRepresentation3.SelectionPointLabelOpacity = 1.0<br>
      DataRepresentation3.Pickable = 1<br>
      DataRepresentation3.CustomBoundsActive = [0, 0, 0]<br>
      DataRepresentation3.SelectionRepresentation = 'Wireframe'<br>
      DataRepresentation3.SelectionPointLabelBold = 0<br>
      DataRepresentation3.ColorArrayName = ''<br>
      DataRepresentation3.SelectionPointLabelItalic = 0<br>
      DataRepresentation3.AllowSpecularHighlightingWithScalarColoring =
      0<br>
      DataRepresentation3.SpecularColor = [1.0, 1.0, 1.0]<br>
      DataRepresentation3.LookupTable = []<br>
      DataRepresentation3.SelectionPointSize = 5.0<br>
      DataRepresentation3.SelectionCellLabelBold = 0<br>
      DataRepresentation3.Orient = 0<br>
      <br>
      Render()<br>
      <br>
      view = GetActiveView()<br>
      view.CameraPosition = [0, 0, 0]<br>
      view.CameraFocalPoint = [0, 0, -1]<br>
      ResetCamera()<br>
      <br>
      AnimateReader(results_OpenFOAM,
      filename="user/results/tmp/tmp.jpg")</small><br>
    <br>
  </body>
</html>