|
[Sponsors] |
March 27, 2017, 11:03 |
Calculator problems
|
#1 |
New Member
Svizzera + FL
Join Date: Mar 2017
Posts: 2
Rep Power: 0 |
I have to use the formula
Code:
gradient(f-velocity_X) but when i use this there appears the error message HTML Code:
ERROR: In C:\bbd\df0abce0\source-paraview\VTK\Common\Misc\vtkFunctionParser.cxx, line 1244 vtkFunctionParser (000001C154368D50): Syntax error: expecting a variable name; see position 0 Warning: In C:\bbd\df0abce0\source-paraview\VTK\Filters\Core\vtkArrayCalculator.cxx, line 405 vtkPVArrayCalculator (000001C154448380): An error occurred when parsing the calculator's function. See previous errors. |
|
March 27, 2017, 11:27 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
You're saying that f-velocity_X is one variable?
Then I'm guessing the hyphen '-' is interpreted as a minus, rather than as part of the variable name. This appears to be consistent with the error message: "expecting a variable name". Can you change the variable name? |
|
March 27, 2017, 11:32 |
|
#3 | |
New Member
Svizzera + FL
Join Date: Mar 2017
Posts: 2
Rep Power: 0 |
Quote:
|
||
March 27, 2017, 11:46 |
|
#4 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
You import them into ParaView from all time directories.
Within all time directories you have a file with the variable name. If you wish ParaView to see a different name, you'll have to change those names... (I don't know of any other way.) I'm not sure whether you must change the filename, or Code:
object f-velocity_X; If I were you, I'd change the file in the 0-directory (or any other time directory) by hand, and see if that works for that specific time. If it does work, and it should work, you should write a quick script to search and replace the variable name in all time directories. |
|
|
|