Hello,
I am getting an warning (and also an error) for using the calculator filter to calculate the momentum of water in a simulation, I am using in a python script the following lines:
filterForData = Calculator(registrationName='Calculator_momentum.water', Input=filterForData,
AttributeType = 'Cell Data',
ResultArrayName = 'momentum.water',
Function = '"rho.water"*mag("U.water")*"alpha.water"'
)
the warning I am getting and also error I cite under:
Warning: In vtkExprTkFunctionParser.cxx, line 426
vtkExprTkFunctionParser (0x77c39401bf70): Warn: 0000 Type: [Old Usage] Msg: Possible usage of old format of dot product v1.v2. Please use dot(v1,v2). Expression: "rho.water"mag(“U.water”)“alpha.water”
ERROR: In vtkExprTkFunctionParser.cxx, line 481
vtkExprTkFunctionParser (0x77c39401bf70): Err: 0 Type: [Lexer Error] Msg: ERR004 - General token error: "a Expression: "rho.water"mag(“U.water”)“alpha.water”
then in paraview I can see correctly that the momentum.water field exist so I wonder why i am getting this error.
thanks in advance