|
[Sponsors] |
What happened to the sample utility in OpenFOAM 6? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 30, 2018, 06:41 |
What happened to the sample utility in OpenFOAM 6?
|
#1 |
New Member
Sam Appleby
Join Date: Nov 2018
Posts: 2
Rep Power: 0 |
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.
|
|
December 4, 2018, 04:36 |
|
#2 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
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.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return |
|
December 6, 2018, 08:23 |
|
#3 |
New Member
Sam Appleby
Join Date: Nov 2018
Posts: 2
Rep Power: 0 |
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? |
|
May 29, 2019, 23:23 |
How to transform the sample surface on a structured 2D grid
|
#4 |
Member
Morteza
Join Date: Jan 2018
Posts: 30
Rep Power: 8 |
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. |
|
March 30, 2020, 13:55 |
|
#5 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
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 |
|
March 30, 2020, 19:47 |
|
#6 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi,
Does that mean we cannot use sampleDic for openfoam v6? |
|
April 2, 2020, 17:55 |
|
#7 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
`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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 20, 2020, 08:36 |
|
#8 |
Senior Member
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16 |
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 |
|
September 30, 2020, 05:10 |
|
#9 | |
New Member
Max
Join Date: Apr 2020
Location: Germany
Posts: 8
Rep Power: 6 |
Quote:
Have you found a solution? I have exactly the same problem right now. |
||
September 30, 2020, 18:07 |
|
#10 | |
Senior Member
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16 |
Quote:
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! |
||
Tags |
integrate, postprocess, sample, sampledict |
|
|
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 |