How to sample velocity magnitudes at each time-step
Hi,
Could anyone please tell me how I can sample magnitudes of a velocity flow field which passes through a specified region of cells (rather than the patches) (e.g. an arbitrary cylinder shaped plane in the middle of the computational domain) during run-time and to write those at each time-step? Many thanks for any reply in advance. |
there are several options:
1- using post processing such as paraview: -create a mag (U) with calculator -extract the surface -integrateVariables for specified Time or all time steps 2-using sampleDict, i guess you can create your sample point 3- using swak4Foam there are lots of Options in that, which youy can extract plane, use a faceSet and so to derive what you want! |
Thanks very much.
When I tried to use the swak4Foam with faceSet, I receive the error below: Could you please tell me what it really means Code:
libs ( Code:
--> FOAM FATAL ERROR: |
use phi which is U & mesh.Sf
|
Thanks very much!
Could you please tell me whether I can average the magnitudes of the velocity vector components (e.g. Ux) or not as well? |
Code:
surfacePlane |
Quote:
swak offers for these parsers the possibility to automatically interpolate fields that are defined on cells to the faces ... but you've got to ask it to: I don't believe in forcing extra work on the machine without the user asking for it. Anyway: simply add a line Code:
autoInterpolate true; |
Quote:
|
Thanks very much for this information to both of you.
Quote:
Quote:
Instead, if you would like to change the error message, my unpretencious suggestion would only be, by citing your words: Code:
simply add a line: autoInterpolate true; |
what a nice thread!
I have a question now.whats difference between faceSet and faceZone? |
All times are GMT -4. The time now is 12:35. |