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

If a sample line coincides with faces, the user should set the set the sample line??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2014, 17:18
Default If a sample line coincides with faces, the user should set the set the sample line??
  #1
New Member
 
Hojae Chung
Join Date: Oct 2014
Posts: 4
Rep Power: 12
Hojae is on a distinguished road
Hi, all

I am trying to calculate lift and drag of airflow over an airfoil in wind tunnel using the data collected on the walls.
But, when I run the sample, velocity is not even close to zero, which should be zero because of no-sliip condition. It's almost like the velocity at the center of the wind tunnel. The data collecting range is pretty small(8m long), but velocity is fast(maximum 70m/s) Would that matter to the data collection on the walls?

Or, is that because of a bug described on http://www.foamcfd.org/Nabla/guides/UserGuidese31.html ??

On the link, it is written "Known bug: At present, the user may experience problems if a sample line coincides with a set of cell vertices, edges or faces; the user should set the sample line accordingly."

Also, can anyone explain the "the user should set the sample line accordingly."? I don't know what to do with that.


My sampleDict file is detailed below.
I tried both cell and cellpoint, but the results were the same.

Also, can anyone explain to me what the somePoints and somePatchPoints represent?

Please share your ideas. Any thought must be helpful.
Thank you in advance.

Hojae
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
setFormat raw;
surfaceFormat vtk;
formatOptions
{
ensight
{
format ascii;
}
}

interpolationScheme cell;

fields
(
p
U
);

sets
(
star
{
type uniform;
axis x;
start (-4 0 0.915);
end (4 0 0.915);
nPoints 40;
}
port
{
type uniform;
axis x;
start (-4 0 -0.915);
end (4 0 -0.915);
nPoints 40;
}

somePoints
{
type cloud;
axis xyz;
points ((0.049 0.049 0.00501)(0.051 0.049 0.00501));
}
somePatchPoints
{
// Sample nearest points on selected patches. Looks only up to
// maxDistance away. Any sampling point not found will get value
// pTraits<Type>::max (usually VGREAT)
// Use with interpolations:
// - cell (cell value)
// - cellPatchConstrained (boundary value)
// - cellPoint (interpolated boundary value)
type patchCloud;
axis xyz;
points ((0.049 0.099 0.005)(0.051 0.054 0.005));
maxDistance 0.1; // maximum distance to search
patches (".*Wall.*");
}
);

Last edited by Hojae; November 28, 2014 at 19:36.
Hojae is offline   Reply With Quote

Old   November 28, 2014, 17:48
Default
  #2
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,

What's your interpolation?

In general "the user should set the sample line accordingly" means move your line points so there's no "sample line coincides with a set of cell vertices, edges or faces".

Also it'll be easier for everyone if you post your case and sampleDict so people can investigate your case, your sampleDict etc.
alexeym is offline   Reply With Quote

Old   November 28, 2014, 19:37
Default
  #3
New Member
 
Hojae Chung
Join Date: Oct 2014
Posts: 4
Rep Power: 12
Hojae is on a distinguished road
I just modified the original post. Please take a look at it and share your ideas. Thank you!!
Hojae is offline   Reply With Quote

Old   November 29, 2014, 06:48
Default
  #4
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
So change this

Code:
start (-4 0 0.915); 
end (4 0 0.915);
to something like

Code:
start (-4 1e-4 0.9151); 
end (4 1e-4 0.9151);
so the line goes through the cells and not along cell edges. Adapt the modifications for your mesh density.
alexeym is offline   Reply With Quote

Reply

Tags
bug, sample, sampledict, velocity, wind tunnel


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
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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