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

confusing point ! help me

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2012, 16:02
Unhappy confusing point ! help me
  #1
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi dear Foamers!

I have a 3D rectangular straight pipe align z axis.
I want to sample data in a plane normal to main flow and use this sampleDic:

Code:
surfaceFormat vtk;
interpolationScheme cellPointFace;

fields
(
    U
);

sets
(
);

surfaces
(
   
plane11
  
 {
     
type   plane;

     basePoint    (0.0 0.0 0.6);  
     normalVector (0 0.0000001 0.1);
     interpolate true; 
}
);
if I use (0 0 0.1 ) instead of (0 0.00000001 0.1) for normal vector , when I run "sample" it make folder but all folders are empty !!!

what you think?
amin144 is offline   Reply With Quote

Old   May 26, 2012, 21:38
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Amin,

Mmm... not much information to go on, but my guess is that you're trying to get a sample right on top of a wall or patch. I think "sampleDict" can sample a patch directly. You can find a complete example here:
Code:
$WM_PROJECT_DIR/applications/utilities/postProcessing/sampling/sample/sampleDict
To know what value "$WM_PROJECT_DIR" has:
Code:
echo $WM_PROJECT_DIR
Best regards,
Bruno
amin144 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 27, 2012, 02:40
Default
  #3
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
ThanX very much Dear Bruno
I checked it
It wasn,t the problem
I used patch which you said, it works correctly

0 0 .0000000000000000000000000000000000000000000000000 0000000000001 0 work
but 0 0 1 does'n work
amin144 is offline   Reply With Quote

Old   May 27, 2012, 09:06
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Amin,

Are you able to do a slice/cut on ParaView on that same plane (0 0 0.1)?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 27, 2012, 12:47
Default
  #5
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi Bruno
yes Of course
My outlet patch normal vector is (0 0 .1)
amin144 is offline   Reply With Quote

Old   May 29, 2012, 16:44
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Amin,

I haven't answered back because I haven't had time to create a test case of my own.
If you could post a small example case, or give an example based on one of OpenFOAM's tutorials, it would be easier to diagnose what might be going on!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 29, 2012, 18:55
Default
  #7
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
I upload it for you
It's solver is icoFoam
Attached Files
File Type: gz rectangularPipe.tar.gz (2.2 KB, 5 views)
amin144 is offline   Reply With Quote

Old   May 30, 2012, 15:25
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Amin,

Well, the problem apparently is because you're using a reaaally old version of OpenFOAM. I've used just now OpenFOAM 2.1.x, 2.0.x and 1.7.x, all with success!

So the solution should be: upgrade your OpenFOAM version!

Best regards,
Bruno
amin144 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 8, 2012, 17:23
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Amin,

Well, although this worked for me, it looks like that sometimes it doesn't work for other people as well. Here's such an example: http://www.openfoam.org/mantisbt/view.php?id=520

So, you might indeed need a slight offset to one direction in order to get a proper sampling when the lines/points are too close to a patch or wall.

Best regards,
Bruno
amin144 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 8, 2012, 18:24
Default
  #10
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi Bruno
Tanx very much
You are absolutely right
amin144 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
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 27 March 3, 2023 22:12
[blockMesh] error EOF in blockMesh Ahmed Khattab OpenFOAM Meshing & Mesh Conversion 7 May 17, 2012 01:37
block-structured mesh for t-junction Robert@cfd ANSYS Meshing & Geometry 20 November 11, 2011 05:59
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 03:27
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


All times are GMT -4. The time now is 14:30.