In turbomachinery theory relative velocity is defined as
w = c – u
where u is circumferential velocity and c is absolute velocity at specified point. The relative velocity w is very important for evaulation of flow in or around rotating bodies.
When using SRFSimpleFoam, Urel is automatically added to to resulting fields. With others (SimpleFoam with MRF or pimpleFoam with dynamic mesh) it’s not there. Luckily, there’s a quick way to calculate it with ParaView.
For example, let’s take a simulation case with a stationary zone and a rotating zone named impeller. The impeller rotates around x-axis with 3000 RPM.
- When loading the case in ParaView, check the Read Zones option.
- Use the Extract Block filter and select your rotating cellzone. Filters > Extract Block: impeller
- Convert cell data to point data: Filters > Cell data to point data
- Create a scalar field for rotation. Use radians per second and store the resulting field as omegaRot: Filters > Calculator: 3000*2*3.14159/60. Replace the 3000 with whatever rotating speed you set in dynamicMeshDict.
- Create a field for circumferential velocity (this Wikipedia article might be of some assistance: https://en.wikipedia.org/wiki/Curl_(mathematics)#A_simple_vector_field). In my case for rotation around x-axis the field would look like this: Filters > Calculator: omegaRot*(coordsY*kHat – coordsZ*jHat) . Save the result as Utan.
- Subtract circumferential velocity from absolute velocity: Filters > Calculator: U – Utan. Save the result as Urel. This is now the w, relative velocity. You can run a stream tracer or do something with the new field.
In case you have trouble with reading zones, you might want to check controlDict for write* settings. Some versions of readers don’t like binary or compressed result files and others don’t like decomposed cases. If your results are in the wrong format, change your controlDict and run foamFormatConvert on your case.
And you’re done! You might also want to check some of the shortcuts I wrote for postProcessing.