Hello everyone,
Here I have a vector array v = (v1, v2, v3), which is described in spherical coordinate, and I want to transfer it to Cartesian coordinate. Using the following relation,
I type in the calculator filter (name it vel):
(v1sin(coordsY)cos(coordsZ) + v2cos(coordsY)cos(coordsZ) - v3sin(coordsZ))iHat + (v1sin(coordsY)sin(coordsZ) + v2cos(coordsY)sin(coordsZ) + v3cos(coordsZ))jHat + (v1cos(coordsY) - v2sin(coordsY))*kHat
where (coordsX, coordsY, coordsZ) = (r, θ, φ), and (v1, v2, v3) = (v_r, v_theta, v_phi), as all the data are described in spherical coordinate. However, an error message pops out:
‘’’
ERROR: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/VTK/Common/Misc/vtkFunctionParser.cxx, line 1244
vtkFunctionParser (0x7fee1fbd0e50): Syntax error: expecting a variable name; see position 10
ERROR: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/VTK/Common/Misc/vtkFunctionParser.cxx, line 1244
vtkFunctionParser (0x7fee1fbd0e50): Syntax error: expecting a variable name; see position 10
Warning: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/VTK/Filters/Core/vtkArrayCalculator.cxx, line 405
vtkPVArrayCalculator (0x7fee18f2e950): An error occurred when parsing the calculator’s function. See previous errors.
‘’’
I guess the problem is my data is cell data but coordsXYZ are all point data and cannot be mix. Can anyone help me about this issue? Thank you so much
–Yunlin