|
[Sponsors] |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 18, 2013, 18:42 |
|
#21 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Bravo Bruno!
it works fine now.but I have trouble with saving it.when I save state and exit from paraView and then start it and use load state another file with the same name appear in biltin part in paraView and filds became disappear! and doesn't work correctly.
__________________
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. |
|
August 18, 2013, 18:52 |
|
#22 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Before opening ParaView, run:
Code:
paraFoam -touch
__________________
Last edited by wyldckat; August 19, 2013 at 10:49. Reason: it's "-touch", not "-builtin" |
|
August 19, 2013, 09:33 |
|
#23 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi Bruno
this type of error occurs again when save and load state: Code:
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x2cff1b0): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/T: Expected number, string or (, found Temperature ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x2cff1b0): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/U: Expected number, string or (, found Velocity ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x2cff1b0): Error reading line 20 of /home/ehsan/Desktop/WR_3/0/k: Expected number, string or (, found turbulentK ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x2cff1b0): Error reading line 20 of /home/ehsan/Desktop/WR_3/0/omega: Expected number, string or (, found turbulentOmega ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x2cff1b0): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/p: Expected number, string or (, found Pressure Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x245ee40): Error reading line 33568 of /home/ehsan/Desktop/WR_3/5e-06/ddt0(rhoU).gz: Inflation failed: Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline'
__________________
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. |
|
August 19, 2013, 11:10 |
|
#24 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Sorry, apparently last night I was a bit tired already and I didn't notice that I wrote "-builtin" instead of "-touch". I've corrected the previous post. OK, to avoid future problems with the state files, I suggest that you follow this procedure:
Bruno
__________________
|
|
September 14, 2013, 06:33 |
|
#25 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
why when paraview is making images for animation,it abruptly closes itself and making animations discontinues?
__________________
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. |
|
September 14, 2013, 07:18 |
|
#26 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
what does this error(warning) means?
Code:
Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 42, in <module> File "<string>", line 7, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline'
__________________
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. |
|
September 14, 2013, 07:35 |
|
#27 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
when above error is shown,the maximums in images are saved wrong,
in attachments KE.0116.jpg is saved by the python script and 116 is screenshot. ---------------------------------- then troubles are these: 1) paraFoam doesn't act good with extremes of variables,means legends are in 0,1 region 2)because of 1,I open cases by paraview -dr as dear Bruno mentioned somewhere, 3)in one case,when it reaches to a middle time,paraview suddenly closes (during saving animation), 4)in other case,paraview doesn't save correct values in ranges for maximum in saving animation
__________________
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. |
|
September 14, 2013, 08:54 |
|
#28 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Quote:
Use the command top in a new terminal, to confirm if the memory occupied by ParaView keeps rising. Or use "System Tools -> System Monitor" instead of top. Quote:
Quote:
3) Explained in the first paragraph of this post I'm writing. 4) Uh... the answer after the 2nd quote? Best regards, Bruno
__________________
|
||||
September 14, 2013, 12:46 |
|
#29 | ||
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
Quote:
-------------- forgot to attach system Monitor.
__________________
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. |
|||
September 14, 2013, 13:39 |
|
#31 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
forgot to attach system Monitor.
__________________
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. |
|
September 14, 2013, 13:46 |
|
#32 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Bruno something occupies the memory when paraview's are closed!
how can find out what it is? it hardly attaches.
__________________
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. |
|
September 14, 2013, 17:24 |
|
#34 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
a corrupted pidgin run had occupied the memory.
__________________
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. |
|
September 15, 2013, 05:18 |
|
#35 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
dear Bruno Hi,
I added this code according to what you said and I had done before also, Code:
from paraview.simple import * def start_cue(self): pass def tick(self): source = FindSource("WR_4.OpenFOAM") #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 = "p" #arrayComponents = 1 #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 Code:
Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline' Traceback (most recent call last): File "<string>", line 47, in <module> File "<string>", line 9, in tick AttributeError: 'NoneType' object has no attribute 'UpdatePipeline'
__________________
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. |
|
September 15, 2013, 06:02 |
|
#36 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Is the case file actually named "WR_4.OpenFOAM"? Because that error message implies that it is not. Best regards, Bruno
__________________
|
|
September 15, 2013, 07:03 |
|
#37 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
no its name is case.foam,I'm mixed up with names!
is the folder name important too? I have to make a file with name: case.foam and open it after running "paraFoam4"?
__________________
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. |
|
September 15, 2013, 07:10 |
|
#38 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
The name and folder are not relevant to this filter. All that matters is the name you gave to it in the "Pipeline Browser" (yes, you can rename the entries there as well!).
This is because this instruction: Code:
FindSource("WR_4.OpenFOAM")
__________________
|
|
September 15, 2013, 07:32 |
|
#39 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Bruno I made a file named case.foam in the case folder and used paraFoam4 command as you said me,copy the python code and take animations but the maximums are not correct,they don't match to real local maximum values and another issue is that again " Automatic Color scaling" doesn't work and scale bar doesn't change
__________________
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. |
|
September 15, 2013, 07:54 |
|
#40 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Bruno I closed that and open a new paraview and rescaling problem is resolved,I worry if I add the python code it occurs again! it was working fine before,why it has became so?
__________________
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. |
|
Tags |
paraview, rescale to data range |
|
|
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 |