CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2013, 08:12
Default
  #41
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I've used this code and it worked just fine:
Code:
from paraview.simple import *

def start_cue(self): pass

def tick(self):
    source = FindSource("case.foam")

    #This works fine on ParaView 3.12.0 to 4.0.1
    source.UpdatePipeline(GetAnimationScene().TimeKeeper.Time)

    #The array and number of components
    #arrayName = "U"
    #arrayComponents = 3
    #component = -1
    #options for component: -1, 0, 1 and 2 => Mag, X, Y, Z

    # If it's a scalar field
    arrayName = "p_rgh"
    arrayComponents = 1
    component = 0


    #Get the look-up table for this array
    lookupTable = GetLookupTableForArray(arrayName, arrayComponents)

    #get the access to the cellData or pointData
    data = source.GetCellDataInformation()
    #data = source.GetPointDataInformation()

    #get the array and the respective min-max
    array = data.GetArray(arrayName)
    dataRange = array.GetRange(component)

    lookupTable.LockScalarRange = 1

    #Now let's hack in the range values
    lookupTable.RGBPoints[0] = dataRange[0] #min
    lookupTable.RGBPoints[4] = dataRange[1] #max


def end_cue(self): pass
I advise you to review the notes in post #6.

edit: Sorry, apparently I should have looked with more attention to ParaView 4.0.1... I wrongly assumed the scales were updating correctly.

Best regards,
Bruno
__________________

Last edited by wyldckat; September 15, 2013 at 19:13. Reason: see "edit:"; removed accidental parasite code and fixed broken code for updating the pipeline
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 08:23
Default
  #42
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
dear Bruno I used the code as this:
Code:
p, li { white-space: pre-wrap; }  from paraview.simple import *
 

 def start_cue(self): pass
 

 def tick(self):
     source = FindSource("case.foam")
 

     #This works on ParaView 4.0.1
     source.UpdatePipeline(self.GetAnimationTime())
 

     #This works on ParaView 3.12.0
     #source.UpdatePipeline(GetAnimationScene().TimeKeeper.Time)
 

     #The array and number of components
     #arrayName = "U"
     #arrayComponents = 3
     #component = -1
     #options for component: -1, 0, 1 and 2 => Mag, X, Y, Z
 

     # If it's a scalar field
     arrayName = "p"
     arrayComponents = 1
     component = 0
 

 

     #Get the look-up table for this array
     lookupTable = GetLookupTableForArray(arrayName, arrayComponents)
 

     #get the access to the cellData or pointData
     #data = source.GetCellDataInformation()
     data = source.GetPointDataInformation()
 

     #get the array and the respective min-max
     array = data.GetArray(arrayName)
     dataRange = array.GetRange(component)
 

     lookupTable.LockScalarRange = 1
 

     #Now let's hack in the range values
     lookupTable.RGBPoints[0] = dataRange[0] #min
     lookupTable.RGBPoints[4] = dataRange[1] #max
 

 

 def end_cue(self): pass
but the error is this:
Code:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 8464
vtkPOpenFOAMReader (0x3ce68c0): /home/ehsan/case.foam contains no timestep data.


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754
vtkPVCompositeDataPipeline (0x3cdf520): Algorithm vtkPOpenFOAMReader(0x3ce68c0) returned failure for request: vtkInformation (0x3cf7980)
  Debug: Off
  Modified Time: 111239
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0




ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/T: Expected number, string or (, found Temperature


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/U: Expected number, string or (, found Velocity


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 20 of /home/ehsan/Desktop/WR_kOmegaSST/0/k: Expected number, string or (, found turbulentK


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 20 of /home/ehsan/Desktop/WR_kOmegaSST/0/omega: Expected number, string or (, found turbulentOmega


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/p: Expected number, string or (, found Pressure


  File "<string>", line 3
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 3
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax


--------------------

and Bruno I want to have legends numbers with more figures like 3.12.0,it only shows like:2.1e+5,I want to have at least 5 digits after point,when I uncheck "Automatic Tick Mark Format" and change "Tick Format", upper numbers goes too small to see and I don't know how to set it so that can see better numbers.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

Last edited by wyldckat; September 15, 2013 at 09:30.
immortality is offline   Reply With Quote

Old   September 15, 2013, 09:34
Default
  #43
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

Sorry, I was in a hurry and didn't review the posted code properly. I've edited my previous post with the correct code.

The bad code was this :
Code:
p, li { white-space: pre-wrap; }
As for configuring the labels, you have to click on the button with the "gear icon", as shown in the attached pictures.

Best regards,
Bruno
Attached Images
File Type: png Screenshot from 2013-09-15 13:33:09.png (25.5 KB, 26 views)
File Type: png Screenshot from 2013-09-15 13:33:15.png (66.2 KB, 31 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 09:44
Default
  #44
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Bruno whats wrong with case.foam?why it doesn't have any tisteps?
Code:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 8464
vtkPOpenFOAMReader (0x3ce68c0): /home/ehsan/case.foam contains no timestep data.


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754
vtkPVCompositeDataPipeline (0x3cdf520): Algorithm vtkPOpenFOAMReader(0x3ce68c0) returned failure for request: vtkInformation (0x3cf7980)
  Debug: Off
  Modified Time: 111239
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0




ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/T: Expected number, string or (, found Temperature


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/U: Expected number, string or (, found Velocity


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 20 of /home/ehsan/Desktop/WR_kOmegaSST/0/k: Expected number, string or (, found turbulentK


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 20 of /home/ehsan/Desktop/WR_kOmegaSST/0/omega: Expected number, string or (, found turbulentOmega


ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478
vtkOpenFOAMReaderPrivate (0x5293d70): Error reading line 19 of /home/ehsan/Desktop/WR_kOmegaSST/0/p: Expected number, string or (, found Pressure


  File "<string>", line 3
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 3
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
  File "<string>", line 2
    p, li { white-space: pre-wrap; }  from paraview.simple import *
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
Traceback (most recent call last):
  File "<string>", line 48, in <module>
  File "<string>", line 36, in tick
AttributeError: 'NoneType' object has no attribute 'GetRange'
and yes I know use gears,but the numbers in legend are not accurate i want to have for example 2.12345e5 instead of 2.1e5 in legend
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 09:55
Default Permission denied paraview path
  #45
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
dear bruno I moved paraview folder to another partition in order to have more space in Ubuntu and set its new path in .bashrc,
Code:
alias paraFoam4='(. $WM_PROJECT_DIR/etc/config/unset.sh; touch case.foam && /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview --data=case.foam)'
I have to change permissions of which folder or file now?
Code:
ehsan@Ehsan-com:~$ paraFoam4
bash: /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: Permission denied
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 10:04
Default
  #46
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
Code:
vtkPOpenFOAMReader (0x3ce68c0): /home/ehsan/case.foam contains no timestep data.
Do you have an OpenFOAM case located in your home folder? Because if you don't, I'd say that ParaView is correct in complaining that there isn't any timestep data. Don't you think the same as well?

Quote:
Originally Posted by immortality View Post
and yes I know use gears,but the numbers in legend are not accurate i want to have for example 2.12345e5 instead of 2.1e5 in legend
Well this is odd... I can configure the numbers on the right, but not the ones on the left... as shown in the attached picture. It's either a bug or there is another configuration elsewhere...


Quote:
Originally Posted by immortality View Post
dear bruno I moved paraview folder to another partition in order to have more space in Ubuntu and set its new path in .bashrc,I have to change permissions of which folder or file now?
Code:
ehsan@Ehsan-com:~$ paraFoam4
bash: /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: Permission denied
Mmm... the problem seems to be because your other partition is not in a Linux permissions compatible file system. You'll have to use sh or bash to launch the application for you, something like this:
Code:
sh /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview
For more information on what I mean, run these two commands:
Code:
ls -l $(which paraview)
ls -l /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview
The first one will show you something like this:
Code:
-rwxr-xr-x
But the second one might show you this:
Code:
-rw-r--r--
Best regards,
Bruno
Attached Images
File Type: png Screenshot from 2013-09-15 13:57:57.png (69.2 KB, 33 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 10:30
Default
  #47
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
1)
Quote:
Do you have an OpenFOAM case located in your home folder?
of course no! why paraview searches for such file? my case is on desktop and I open the case.foam in my case folder.
2)
I used sh with this error:
Code:
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 1: ELF: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 2: @@�@@!@@@@@��@@@@����P�P����P�P��@@: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 3: : not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 4: �: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 5: Syntax error: "(" unexpected
and bash wants a executable file:
Code:
ehsan@Ehsan-com:~$ paraFoam4
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: cannot execute binary file
but I cann't set it as executable as attached.
3)
Quote:
Well this is odd... I can configure the numbers on the right, but not the ones on the left... as shown in the attached picture. It's either a bug or there is another configuration elsewhere...
the numbers in range bar are too small can't solve it? 3.12.0 was better in this case.
------------------------------
and how do you draw a line pointing to something or around it?
Attached Images
File Type: jpg Screenshot at 2013-09-15 17:54:29.jpg (41.4 KB, 19 views)
File Type: jpg Screenshot at 2013-09-15 16:04:52.jpg (53.3 KB, 22 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 15:51
Default
  #48
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

Quote:
Originally Posted by immortality View Post
1)
of course no! why paraview searches for such file? my case is on desktop and I open the case.foam in my case folder.
Because ParaView was stating that the file was located at "/home/ehsan/case.foam", which implies that you did not run the command paraFoam4 from within the case folder .

Quote:
Originally Posted by immortality View Post
2)
I used sh with this error:
Code:
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 1: ELF: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 2: @@�@@!@@@@@��@@@@����P�P����P�P��@@: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 3: : not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 4: �: not found
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: 5: Syntax error: "(" unexpected
and bash wants a executable file:
Code:
ehsan@Ehsan-com:~$ paraFoam4
/media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: /media/Important/wave_rotor/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: cannot execute binary file
but I cann't set it as executable as attached.
I'm guessing that it's due to the NTFS or FAT32 format you have on your other partition.
OK, there is a blog post of mine that explains how you can create portable partition in ext2 (or ext3 or ext4)... it's this one: Maintaining a local git repository on a portable disk image file or partition
Read only the section "Preparing and using the single ext3/4 file filesystem".

Keep in mind that step #3 will have to be executed every time after you've restarted your machine, in order to have access to the portable file in ext4 format.
And keep in mind to do step #5, if you need to unmount the partition the file is in.

As for step #4, that's where you copy the ParaView 4.0.1 files into the new portable ext4 file partition! Namely, the folder "$HOME/efmnt" is where you can put ParaView in.

Quote:
Originally Posted by immortality View Post
3)
the numbers in range bar are too small can't solve it? 3.12.0 was better in this case.
I told you that ParaView 4.0.1 had bugs that 3.12.0 didn't have.
Nonetheless, did you try changing the values in the group "Annotations and Tick Marks" and to press the "Apply" button whenever you make a change?

Quote:
Originally Posted by immortality View Post
and how do you draw a line pointing to something or around it?
Not on ParaView. ParaView gives you the cold hard results. Anything beyond that you will have to do in an outside editor, such as Gimp or Libreoffice Writer/Draw/Impress.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 16:50
Default
  #49
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
dear Bruno,
I moved it to Desktop again but it complains about permissions:
Code:
ehsan@Ehsan-com:~/Desktop/WR_kOmegaSST$ paraFoam4
bash: /home/ehsan/Desktop/paraview/ParaView-4.0.1-Linux-64bit/bin/paraview: Permission denied
is it related to moving from a no-linux partition that has changed its permissions?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 17:00
Default
  #50
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
is it related to moving from a no-linux partition that has changed its permissions?
You still have to ask? Yes, yes it is. It's what we've been talking about, isn't it?
You actually showed in one of the previous images where you can turn back on the execute permission!

By the way, all of the files inside the folder "bin" should have the "execute" permission. You can even give this permission from the command line:
Code:
chmod +x bin/*
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 18:10
Default
  #51
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
now it doesn't complain about anything but the maximum doesn't change as attached images
I used the code by very little changes according to post #6:
Code:
from paraview.simple import *

def start_cue(self): pass

def tick(self):
    source = FindSource("case.foam")

    #This works on ParaView 4.0.1
    source.UpdatePipeline(self.GetAnimationTime())

    #This works on ParaView 3.12.0
    #source.UpdatePipeline(GetAnimationScene().TimeKeeper.Time)

    #The array and number of components
    #arrayName = "U"
    #arrayComponents = 3
    #component = -1
    #options for component: -1, 0, 1 and 2 => Mag, X, Y, Z

    # If it's a scalar field
    arrayName = "p"
    arrayComponents = 1
    component = 0


    #Get the look-up table for this array
    lookupTable = GetLookupTableForArray(arrayName, arrayComponents)

    #get the access to the cellData or pointData
    #data = source.GetCellDataInformation()
    data = source.GetPointDataInformation()

    #get the array and the respective min-max
    array = data.GetArray(arrayName)
    dataRange = array.GetRange(component)

    lookupTable.LockScalarRange = 1

    #Now let's hack in the range values
    lookupTable.RGBPoints[0] = dataRange[0] #min
    lookupTable.RGBPoints[4] = dataRange[1] #max


def end_cue(self): pass
please let me know if its necessary to send the case to you dear Bruno.
thanks a lot.
Attached Images
File Type: jpg KO.0933.jpg (18.7 KB, 28 views)
File Type: jpg KO.0983.jpg (16.7 KB, 29 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 18:34
Default
  #52
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

The only thing I can think of is that you might be showing the "p" field in "cell data" mode, while this script is processing the "point data".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 18:59
Default
  #53
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
no Bruno,
its point data in both of them,
it occurs when I use the python code that "automatically color scaling" doesn't take effect like 3.12.0 case.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 19:14
Default
  #54
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
it even occurs in showing results(without doing animation) after adding python code.
Attached Images
File Type: jpg Screenshot at 2013-09-16 02:26:43.jpg (53.7 KB, 30 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 19:16
Default
  #55
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

Sorry, while trying to take care a lot of stuff as fast as I could, I didn't notice that the updated scales were occurring incorrectly.
The source code for updating the pipeline for ParaView 3.12.0 also works for 4.0.1, namely this one:
Code:
    #This works fine on ParaView 3.12.0 to 4.0.1
    source.UpdatePipeline(GetAnimationScene().TimeKeeper.Time)
I've corrected the previous posts that refer to this source code, in an attempt to avoid this error to happen again to somebody else.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2013, 19:30
Default
  #56
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
corrected,after two days having issues and engaging with animating in paraview,it seems now it is answering,
thanks bruno for paraview animating troubles.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 15, 2013, 22:48
Default
  #57
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
in post #42 i had spoken about tick marks and... before you say about them but you thought i hadn't seen them.
The numbers in other side of the bar become too small to view as i told before,is there any way to have a better range bar?i know it may be a bug but what can do for now?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 16, 2013, 04:10
Default
  #58
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
in post #42 i had spoken about tick marks and... before you say about them but you thought i hadn't seen them.
The numbers in other side of the bar become too small to view as i told before,is there any way to have a better range bar?i know it may be a bug but what can do for now?
As shown in attachment, there is a "Size" value control which controls the size of the font used in the color legend.

The problem is that when you increase the font, it increases for both sizes, and it depends on whether the "Automatic Tick Mark Format" is turned on or off.
Attached Images
File Type: png Screenshot from 2013-09-16 08:00:57.png (60.8 KB, 179 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 16, 2013, 06:54
Default
  #59
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I had seen and tested that before posting the issue,no need to four arrows.
Quote:
The problem is that when you increase the font, it increases for both sizes, and it depends on whether the "Automatic Tick Mark Format" is turned on or off.
yes, I said this exactly in bottom of my post #42
Quote:
when I uncheck "Automatic Tick Mark Format" and change "Tick Format", upper numbers goes too small to see and I don't know how to set it so that can see better numbers.
and #57
Quote:
The numbers in other side of the bar become too small to view as i told before,is there any way to have a better range bar?i
when we want to use format,size doesn't take effect on numbers in one side of the range bar.
but may be a bug as you said.can't simply do anything for that by hacking its code(if isn't too hard)?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 17, 2013, 18:57
Default
  #60
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

Sorry, but yesterday morning I was in a hurry and as soon as I didn't read anything explicitly like "changed the size of the font and nothing happened", I simply assumed the worst.
The other problem is that some of the quick tests I had made at night on Sunday had given me the idea that by increasing a lot the size of the font, that the numbers on the right also increased, although very little.

OK, so yesterday night I played around a bit more with the controls and didn't have time to write things here.
What I discovered (which I hoped you would discover as well) - and keep in mind that this is all referenced for the standard colour legend when it appears on the right side of the 3D view - is as follows:
  1. On the right are the small automatic tick marks and the automatic values.
  2. The actual number ticks on right of the bar is not controllable. Only the number of numbered ticks are controllable.
    • Although this control is a bit strange, because it has some difficulty in performing some of our requests to have 4 to 6 ticks, but can do 1 to 3 and 7 to 10, or something like that.
  3. This colour legend (aka scalar bar) is moveable and resizeable, which means that when we move the mouse over this legend, the bounding box around it appears, so that we can resize it.
  4. When we resize the bounding box, there are two possible effects:
    1. Stretching vertically can affect the number of tick annotations on the right, as well as affect the maximum font size that these annotations can have.
      • More specifically and importantly, this size is inferred from the distance between the ticks right above and below the tick this annotation is referring to. Therefore, this is one of the reasons why the size can be smaller than intended.
      • The problem is that the distance between ticks is only used when the automatic option is turned off
    2. Stretching horizontally also affects the font size of these annotations on the right, because they constrain the horizontal space available for annotating.
    Now, the problem here is that this does make some sense... problem is that we don't have control over the number of non-annotated ticks, leading to not achieving the font sizes we want.
  5. There is an additional way in which we can get a bit more font size, which is to use a number format like:
    Code:
    %.4f
    This specifies to use the minimum amount of digits necessary for representing a value with decimal 4 digits. In other words, if we tell it somehow to use only the limited amount of characters, it will deduce that the font size can be larger.
  6. Now, all hope is not lost. It is possible to control the annotations on the left side of the bar! It's the controls provided on the "Annotations" tab.
    • In that tab you can define that for a certain value, to provide a specific annotation. This is useful for providing annotations like "sea level" for the 0 meter value.
    • The thing is that this text annotation can actually be the respective value formatted in the way we want, as shown in the first attached image.
  7. On the second attached image demonstrates what the settings defined in the first image resulted in, as well as showing that the font was respected if the scalar bar is stretched a lot vertically.


So, as far as I can figure out, there are two possible solutions without having to hack anything:
  1. You can stretch the bar as much as possible, for showing the values you need.
  2. Or you can use the annotations to place them where you want them and how you want them.
    • In addition, you can remove the annotations on the right if you replace the "format" for a single space character.


Anything beyond this requires these steps and around 3 to 6h of work:

  1. Having to look at to how VTK creates, controls and displays scalar bars.
  2. Trying to add this kind of control using the proxy XML mechanism that ParaView uses, for creating a filter or source type based on the VTK class and respective controls that have been found.
  3. Document how this can be implemented and provide instructions on how to configure this new type of scalar bar.
And 3 to 6h is time that I simply do not have to spare in the near future


Best regards,
Bruno
Attached Images
File Type: png Screenshot from 2013-09-17 22:47:49.png (49.1 KB, 119 views)
File Type: jpg Screenshot from 2013-09-17 22:47:57.jpg (52.2 KB, 146 views)
sharonyue and immortality like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
paraview, rescale to data range


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Data Export (ascii format) A Kourm FLUENT 4 March 7, 2021 15:08
Issue Writing Out Surface Data rufuscws89 Tecplot 1 May 6, 2019 14:52
Parallel Block Size Issue ChiefSeaBiscuit CONVERGE 5 July 22, 2016 15:03
[OpenFOAM] Automatic range in paraview animations arno ParaView 1 August 29, 2006 05:00
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 17:30.