|
[Sponsors] |
April 11, 2013, 14:22 |
OpenFOAM sample utility
|
#1 | |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Hello,
could anybody give me an hint how to use sample utility correctly for all time steps? I only would like to sample Ux from the velocity field U. sampleDict-file Quote:
The help menu offers the option -time <range>. sample -time :0.1-1.5: (and similar versions) don't work. Aylalisa |
||
April 14, 2013, 14:45 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Aylalisa,
A few questions:
As for running for all time steps, I think is should be something like ("1.5" is the last time step): Code:
sample -time :1.5 Code:
sample -time 0: Bruno
__________________
|
|
April 16, 2013, 09:15 |
sample Ux
|
#3 | |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Hello Bruno,
sample util works well if I sample U for all time steps or a range of time steps. All your recommended commands are fine. I am not able to extract only Ux of velocity field U. I have tried Ux, U(x), UX, U(1) and U.component(1) but do not receive the required result. OpenFOAM version 2.1.1 Do you know the solution for my problem? Thanks a lot! Best regards, Lisa Quote:
|
||
April 16, 2013, 11:31 |
|
#4 |
New Member
Join Date: Apr 2010
Posts: 13
Rep Power: 16 |
You have to create your components of the velocity vector before running sample utility with this command:
foamCalc components U This will create Ux, Uy, Uz folders in your time directories. After that you can run the sample utility |
|
August 22, 2019, 17:34 |
|
#5 |
Member
André Luiz Moura Silva Moreira
Join Date: Apr 2015
Location: Brazil
Posts: 40
Rep Power: 11 |
I have tried this on OpenFOAM7, but without sucess.
But I did it as bellow: postProcess -func "components(U)" Then, next step on tutorial is execute the comand "sample", but I received: Command 'sample' not found, but can be installed with: sudo apt install barcode What I have to do? |
|
August 26, 2019, 17:47 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: sample was replaced with using function objects only, namely you are meant to do a similar command to postProcess, but for sampling. See the OpenFOAM 7 User Guide, sub-section 2.2.3: https://cfd.direct/openfoam/user-gui...#x6-470002.2.3
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using probe function or sample utility on a patch | hfs | OpenFOAM Post-Processing | 1 | January 27, 2019 04:49 |
sample utility problem | And | OpenFOAM Post-Processing | 36 | May 20, 2014 09:50 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Understanding the coordinates of sample utility | vishwa | OpenFOAM Post-Processing | 4 | March 25, 2010 13:51 |
[Technical] Mathematical exact definition of mesh quality measures in OpenFOAM checkMesh utility | albcem | OpenFOAM Meshing & Mesh Conversion | 1 | October 31, 2008 05:12 |