CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

What happened to the sample utility in OpenFOAM 6?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By RobertHB
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2018, 06:41
Default What happened to the sample utility in OpenFOAM 6?
  #1
New Member
 
Sam Appleby
Join Date: Nov 2018
Posts: 2
Rep Power: 0
samAppl is on a distinguished road
It was simple, it was clear, you could specify a line or a surface in sampleDict to sample values and integrate or average or do whatever else you wanted. I must be going blind because the new user guide says nothing about how you can define a line to integrate a field over with the postProcess utility. It tells you how to specify a patch for calculations, but not how to define a line or a surface, this is ridiculous.
samAppl is offline   Reply With Quote

Old   December 4, 2018, 04:36
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
How about this page: https://cfd.direct/openfoam/user-gui...hs-monitoring/ , is this what you are looking for? To sample a surface you use the surfaces dictionary and multiple graphs can be done with the graph dict.
ziad and rajibroy like this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   December 6, 2018, 08:23
Default
  #3
New Member
 
Sam Appleby
Join Date: Nov 2018
Posts: 2
Rep Power: 0
samAppl is on a distinguished road
Ah, you're right I missed that. Thank you.
Another question, what about flow rate calculation? The user guide introduces function objects that can calculate the flow rate, but those all require a patch name, what if you want to calculate the flow rate through a random surface? Is there a way simpler than sampling the values on that surface and exporting to a software like Matlab?
samAppl is offline   Reply With Quote

Old   May 29, 2019, 23:23
Default How to transform the sample surface on a structured 2D grid
  #4
Member
 
Morteza
Join Date: Jan 2018
Posts: 30
Rep Power: 8
mortezahdr is on a distinguished road
I am wondering if it is possible to interpolate data on a sample surface to map it on a rectangular 2D grid.

Let us say I have a case with an unstructured grid and I get data on a slice at x=a. Since I want to do some math such as FFT on that group of data on that slice, I need to map data on a structured, ordered m*n grid. I it possible to perform such a task by openfoam or paraview?

Thanks in advance.
mortezahdr is offline   Reply With Quote

Old   March 30, 2020, 13:55
Default
  #5
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hi,
I am using openFoam V6. Kindly, can we still use sampleDict for V6?
I tried to run PostProcess -func sampleDict -latestTime, I get empty directories.
I would appreciate any assistance. Thanks
Bodo1993 is offline   Reply With Quote

Old   March 30, 2020, 19:47
Default
  #6
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hi,
Does that mean we cannot use sampleDic for openfoam v6?
Bodo1993 is offline   Reply With Quote

Old   April 2, 2020, 17:55
Default
  #7
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
`sample` functionalities can be used in OpenFOAM as before. I think the dictionary examples were just forgotten.

Put your `sampleDict`, or any file containing your `sample` setup, and try to run `postProcess -dict system/sampleDict -latestTime`, or if you have the sample setup in your `controlDict:functions`, just `postProcess -latestTime` will execute the `sample` dictionary.
nimasam likes this.
HPE is offline   Reply With Quote

Old   August 20, 2020, 08:36
Default
  #8
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16
kerim is on a distinguished road
Dear all,
I have some kind of sampling problem when I use cloud type. I need to sample mag(U) at several points and followed to the sampling tutorial https://www.cfd.at/sites/default/fil...leFourteen.pdf. After execution of the command - postProcess -func sample –latestTime, I got an error - Unknown sample set type cloud. Please help me to clarify this issue. Where I have made mistake?
Please see the attached file for more information.
I am using OpenFOAM7.0 installed on Ubuntu 18.04 LTS.
Kerim
Attached Files
File Type: txt Allrunpost.txt (286 Bytes, 9 views)
File Type: txt Allrunpostlog.txt (1.8 KB, 5 views)
File Type: txt controlDict.txt (1.4 KB, 38 views)
File Type: txt sample.txt (3.7 KB, 98 views)
kerim is offline   Reply With Quote

Old   September 30, 2020, 05:10
Default
  #9
New Member
 
Max
Join Date: Apr 2020
Location: Germany
Posts: 8
Rep Power: 6
CFD-HSNR is on a distinguished road
Quote:
Originally Posted by kerim View Post
Dear all,
I have some kind of sampling problem when I use cloud type. I need to sample mag(U) at several points and followed to the sampling tutorial https://www.cfd.at/sites/default/fil...leFourteen.pdf. After execution of the command - postProcess -func sample –latestTime, I got an error - Unknown sample set type cloud. Please help me to clarify this issue. Where I have made mistake?
Please see the attached file for more information.
I am using OpenFOAM7.0 installed on Ubuntu 18.04 LTS.
Kerim
Hi kerim,

Have you found a solution? I have exactly the same problem right now.
CFD-HSNR is offline   Reply With Quote

Old   September 30, 2020, 18:07
Default
  #10
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16
kerim is on a distinguished road
Quote:
Originally Posted by CFD-HSNR View Post
Hi kerim,

Have you found a solution? I have exactly the same problem right now.

Please look at this file - points.H

You can find it in the OpenFoam installation folder:

openfoam/src/sampling/sampledSet/points.H
Kerim.


PS. Please have a critical look at User Guide. There are some wrong statements!
kerim is offline   Reply With Quote

Reply

Tags
integrate, postprocess, sample, sampledict


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 26 June 21, 2024 07:54
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Sample utility - floating point exception (core dumped) arieljeds OpenFOAM Post-Processing 1 May 30, 2020 13:21
OpenFOAM sample utility aylalisa OpenFOAM Post-Processing 5 August 26, 2019 17:47
sample utility stuck at non-continuous domain Astrodan OpenFOAM Post-Processing 0 June 29, 2015 13:37


All times are GMT -4. The time now is 13:01.