I use paraview in combination with openFOAM and I am a total noob in both. I tried to run the first tutorial in openFOAM, but I have some problems with vector rendering there.
The only vector I have in my data is U, however when I use the glyph filter I can only select the scalar p. U does not show up in the selection in the toolbar.
someone gave me the tip to create my vector with the calculater using the formula sqrt(U_X^2+U_Y^2+U_Z^2), but when I enter this into the calculator, I get the following error message:
Syntax error: expecting a variable name; see position 5ERROR: In /build/paraview-vlxewD/paraview-5.7.0/VTK/Common/Misc/vtkFunctionParser.cxx, line 1243
vtkFunctionParser (0x557c75c73230): Syntax error: expecting a variable name; see position 5
An error occurred when parsing the calculator’s function. See previous errors.Warning: In /build/paraview-vlxewD/paraview-5.7.0/VTK/Filters/Core/vtkArrayCalculator.cxx, line 363
vtkPVArrayCalculator (0x557c750e7490): An error occurred when parsing the calculator’s function. See previous errors.
So, now I don’t know where it expects a variable and what variable name it should give.
I hope someone can help me to generate the velocity vector for the right vector representation.
I’m not completely sure how you mean that. After the calculation in OpenFOAM, I have 5 directories for 5 time steps, each with the files p, phi and U in them. In the file for U, for example, the data after the OpenFOAM header is as follows:
This is the same output I get, but it does not represent the velocity distribution.
I should actually see in the top bar, where with me only solid color, p , vtk compositionindex,… I should also be able to select a U.