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

Sampling fields data from regions (cellZoneSet)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By sebware

Reply
 
LinkBack Thread Tools Display Modes
Old   September 6, 2012, 10:32
Default Sampling fields data from regions (cellZoneSet)
  #1
New Member
 
caduqued
Join Date: Apr 2009
Location: UK
Posts: 15
Rep Power: 8
caduqued is on a distinguished road
Hi OF comunity,

I am working with OF 2.1.1, and I need to extract values of fields (velocity, pressure, etc) from within regions previously defined.

I have created cellZoneSet sets using topoSet, and I am able to visualize the fields values for those defined zones in paraFoam, however I was wondering if it was possible to get that data directly using some OF tool, like sample or something similar.

Any help in this regard is very much appreciated.

Cheers,
caduqued is offline   Reply With Quote

Old   September 12, 2012, 09:32
Default
  #2
New Member
 
Unnikrishnan Mohankumar
Join Date: Apr 2011
Posts: 29
Rep Power: 6
unnikrsn is on a distinguished road
Hi

Did you find an answer for the SampleDict for Regions.
I use chtMultiRegionSimpleFoam. so i have many regions. I tried to use the

sample -region

But it doesnt seem to work. my region name is Kuhlkoerper.
Should i define the region name somewhere in the SampleDict File or

is it only required while running from terminal...

sample -Kuhlkoerper

Kindly Help
Thanks & Regards
Unni
unnikrsn is offline   Reply With Quote

Old   November 16, 2012, 11:07
Default
  #3
New Member
 
Sebastian
Join Date: Feb 2010
Posts: 9
Rep Power: 7
sebware is on a distinguished road
hey guys,

you can create one sampleDict file for each Region and copy them into the folder "system/regionname/"

After that you can run sample in each region by the command

sample -region regionname

for example

sample -region fluid
sample -region solid

best regards
Sebastian
chaolian and ZKW like this.
sebware is offline   Reply With Quote

Old   November 19, 2012, 02:26
Default
  #4
ZKW
New Member
 
Unnikrishnan
Join Date: Nov 2012
Posts: 8
Rep Power: 4
ZKW is on a distinguished road
Thanks Sebastian.
ZKW is offline   Reply With Quote

Old   November 21, 2012, 07:27
Question sampleDict using cloud option along with data file...
  #5
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 3
aujamal20 is an unknown quantity at this point
Hi

I have to use sampleDict file to sample field varialble T at a set of points in the simulation domain and I am using "cloud" option for Set. Now I am having a data file containing point coordinates, at which data is to be sampled.
The problem is how i could specify that points data file in sampleDict file.

Quote:
sets
sets
(
domainCell
{
type cloud;
axis xyz;
points (matrix.dat its the file which i want to specify);
}
);
aujamal20 is offline   Reply With Quote

Old   November 21, 2012, 15:31
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,905
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
Hi

I have to use sampleDict file to sample field varialble T at a set of points in the simulation domain and I am using "cloud" option for Set. Now I am having a data file containing point coordinates, at which data is to be sampled.
The problem is how i could specify that points data file in sampleDict file.
I think the best way to do this would be to write a script that transforms the points data file into the list-format that OF understands and include it into the sampleDict (rither by edititing or with #include)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 22, 2012, 10:28
Default
  #7
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 3
aujamal20 is an unknown quantity at this point
Hi
thanks for your response and I just have done that by writing some script and get a list of cell coordinates and then giving that list to sampleDict...
aujamal20 is offline   Reply With Quote

Reply

Tags
cellzoneset, openfoam 2.1.x, sampledict

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
export data at nodes Meenu FLUENT 1 December 30, 2011 02:24
Weak Coupling of Two Fluid Fields/ Regions woody OpenFOAM Running, Solving & CFD 0 November 16, 2009 11:08
Data conversion at each time step for specific fields melanie OpenFOAM Post-Processing 10 September 29, 2009 17:34
Sampling lagrangian data farbfilm OpenFOAM Post-Processing 16 August 28, 2009 17:45
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


All times are GMT -4. The time now is 06:00.