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

sample utility problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2012, 15:40
Default
  #21
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 16
CaroVandame is on a distinguished road
But doesn't the error message means that the keyword patches should be defined in the surfaces section?

"keyword patches is undefined in dictionary "/home/caro/OpenFOAM/caro-2.1.0/run/pipe_flow/system/sampleDict::surfaces" "
CaroVandame is offline   Reply With Quote

Old   April 16, 2012, 15:45
Default
  #22
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
It couldn't find the keyword "patches" and checking the dict given with the source code, this keyword is present only in the sets section. The idea is to try adding something in this section to see what happens.

Regards
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   April 16, 2012, 15:56
Default
  #23
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 16
CaroVandame is on a distinguished road
so using the tutorial LadenburgJet60psi as a guide (because they also want to sample for a wall property), here is what I wrote

sets
(
face
{
name cyl_Wall;
axis x;
start (0 0.05 0);
end (10 0.05 0);
nPoints 100;
}
);

But now I get this error:
keyword type is undefined in dictionary "/home/caro/OpenFOAM/caro-2.1.0/run/pipe_flow/system/sampleDict::sets"

I must be missing something obvious, I just don't see it...
CaroVandame is offline   Reply With Quote

Old   April 16, 2012, 15:59
Default
  #24
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Yes,

type uniform;

at the beginning of the definition.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar

Last edited by santiagomarquezd; April 16, 2012 at 16:00. Reason: Spelling
santiagomarquezd is offline   Reply With Quote

Old   April 16, 2012, 16:02
Default
  #25
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 16
CaroVandame is on a distinguished road
And now I get my "keyword patches undefined ..." error again...
CaroVandame is offline   Reply With Quote

Old   April 16, 2012, 16:05
Default
  #26
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
What FOAM version are you using?
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   April 16, 2012, 16:06
Default
  #27
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 16
CaroVandame is on a distinguished road
OpenFOAM 2.1.0
CaroVandame is offline   Reply With Quote

Old   April 16, 2012, 17:13
Default
  #28
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Please check:

/opt/openfoam<your_version>/applications/utilities/postProcessing/sampling/sample/sampleDict

in order to see the correct wording of the dictionary, the keywords have changed in the last versions. Now the keyword patches is required in surfaces too.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   April 16, 2012, 18:24
Default
  #29
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 16
CaroVandame is on a distinguished road
Thanks so much for your help Santiago!!!

It seems you do not need to specify anything in sets, as long as everything is defined correctly in surfaces.
CaroVandame is offline   Reply With Quote

Old   April 16, 2012, 18:27
Default
  #30
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
You welcome. Yes, sets is not more needed. It was used only for testing purposes.

Bye.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 6, 2012, 21:42
Default sampleDict surfaces with moving mesh
  #31
New Member
 
Join Date: Jan 2010
Posts: 11
Rep Power: 16
cutty4sark is on a distinguished road
Hello,

I was wondering if anyone has used the sampleDict to determine variable values along a moving mesh. Particularly, I'm interested in the displacement of a solid in an FSI case (Turek and Hron benchmark). It would be very similar to determining the displacement of the tip of the console in the flappingConsole FSI case that is packaged with the extend versions of 1.5 and 1.6. I've tried using the surfaces functionality of the sampleDict and like many other folks end up with empty file folders. This leads me to believe there are issues with trying to use the boundaries/interfaces between solid and fluid as my surface patch like others have experienced. This also brings me to the issue of trying to define a line or surface based on xyz coordinates as I'm interested in the variation of x,y,z over time as the solid is deflected. Any help would be appreciated and I'm curious if anybody else has experienced this as I couldn't find anything in the forums.

Regards,

Andrew
cutty4sark is offline   Reply With Quote

Old   September 13, 2012, 04:00
Default About installation of swak4Foam
  #32
Member
 
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 14
mmkr825 is on a distinguished road
Hi everyone,
I am fresher to openFoam. I came to know the uses of swak4Foam utility for writing boundary conditions. In my application also i need to apply zero flux boundary condition. So i wish to install swak4Foam. Now i am working on OF 2.1.1 version.
I followed every step as mentioned in the tutorials but i am not able to get it. The error message as follows

Error message:-

malli_reddy@ubuntu:~/OpenFOAM/malli_reddy-2.1.1$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

svn: OPTIONS of 'https://openfoam-extend.svn.sourcefo...ries/swak4Foam': Could not resolve hostname `openfoam-extend.svn.sourceforge.net': No address associated with hostname (https://openfoam-extend.svn.sourceforge.net)



Could you please suggest me how to overcome this problem. And suggest me some good tutorial for the swak4Foam.

Thanks
Regards
mmkr825 is offline   Reply With Quote

Old   June 19, 2013, 23:24
Default
  #33
New Member
 
Join Date: Dec 2012
Posts: 1
Rep Power: 0
legenoy is on a distinguished road
Quote:
Originally Posted by cutty4sark View Post
Hello,

I was wondering if anyone has used the sampleDict to determine variable values along a moving mesh. Particularly, I'm interested in the displacement of a solid in an FSI case (Turek and Hron benchmark). It would be very similar to determining the displacement of the tip of the console in the flappingConsole FSI case that is packaged with the extend versions of 1.5 and 1.6. I've tried using the surfaces functionality of the sampleDict and like many other folks end up with empty file folders. This leads me to believe there are issues with trying to use the boundaries/interfaces between solid and fluid as my surface patch like others have experienced. This also brings me to the issue of trying to define a line or surface based on xyz coordinates as I'm interested in the variation of x,y,z over time as the solid is deflected. Any help would be appreciated and I'm curious if anybody else has experienced this as I couldn't find anything in the forums.

Regards,

Andrew
Hello,
I am using FSI for my work. I find Sample with OF-1.6 have some problems and I always have failed to get displacement with sample. Could you please suggest me how to overcome this problem?

Thanks
Regards

Legenoy
legenoy is offline   Reply With Quote

Old   May 19, 2014, 10:21
Default set file missing when using sample
  #34
New Member
 
Join Date: Apr 2014
Posts: 9
Rep Power: 12
Josefina is on a distinguished road
Hello Everybody!

I am quite new with Open Foam and I try to use the sample utility. I read the very interesting questions and answers and I saw that sometimes the files in the set file are empty.

My problem is that the set file is not even created in my case directory. When I apply the sample utility I get this:

Create time

Create mesh for time = 0

Time = 0

Time = 0.1

Time = 0.2

Time = 0.3

Time = 0.4

Time = 0.5

Time = 0.6

Time = 0.7

Time = 0.8

Time = 0.9

Time = 1

End

So I think the utility works but I did not find how to create the set file. Somebody can help me please?
Josefina is offline   Reply With Quote

Old   May 20, 2014, 06:08
Default
  #35
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
If the sample utility does not find the specified field in the time step then it skips the time step.

Can you post you sampleDict here?

Philip
bigphil is offline   Reply With Quote

Old   May 20, 2014, 06:15
Default
  #36
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Quote:
Originally Posted by Josefina View Post
So I think the utility works but I did not find how to create the set file. Somebody can help me please?
Did you look in postProcessing/sets folder?
alexeym is offline   Reply With Quote

Old   May 20, 2014, 09:50
Default
  #37
New Member
 
Join Date: Apr 2014
Posts: 9
Rep Power: 12
Josefina is on a distinguished road
Hi!
Before all, thank you for your answers!

Here you can find my sampleDict file:

setFormat raw;
surfaceFormat raw;

formatOptions
{
ensight
{
format ascii;
}
}

interpolationScheme cell;

fields
(
p_rgh
U
alpha1
);


sets
(
lineX1
{
type uniform;
axis xyz;
start (0. 0.0 0.1);
end (0.2 0. 0.18);
nPoints 10;
}

lineX2
{
type face;
axis xyz;
start (0. 0.1 0.1);
end (0. 0.2 0.1);
}

somePoints
{
type cloud;
axis xyz;
points ((0.0 0.0 0.15)(0.2 0.2 0.15));
}


);


I think I had a problem of OpenFoam version. I have written "sampleSets" instead of "sets" but now it works! and the "sets" file is indeed created in the "postProcessing" file.
Josefina is offline   Reply With Quote

Reply


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
Sample utility Gearb0x OpenFOAM Post-Processing 13 April 30, 2019 13:16
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Sample utility not working properly titio OpenFOAM 2 June 9, 2010 11:45
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


All times are GMT -4. The time now is 17:05.