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

Creat a Patch with zero size

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2013, 08:26
Default Creat a Patch with zero size
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Dear foamers ,

I want to creat a patch with zero size in the boundary file...
I know that creatPatch utility doesnt do it...

any utility??

Thanks and best regards ,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 13, 2013, 09:33
Default
  #2
New Member
 
Abdulhaq
Join Date: Oct 2012
Posts: 24
Rep Power: 4
aljazari is on a distinguished road
Hi

Here's an example of an empty patch in the boundary file:

Quote:
6
(
wall
{
type patch;
nFaces 0;
startFace 306310;
}
inlet
{
type patch;
nFaces 67;
startFace 306310;
}
)
The wall is empty, no cells or anything.
aljazari is offline   Reply With Quote

Old   March 13, 2013, 10:03
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Hi Abdulhaq ,

thanks for your reply ,
But I want to know how can I creat this patch?
I think adding this patch manually in the boundary file is wrong because I dont know anythings about startFace....
correct me if I am wrong...

Thanks,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 13, 2013, 10:46
Default
  #4
New Member
 
Abdulhaq
Join Date: Oct 2012
Posts: 24
Rep Power: 4
aljazari is on a distinguished road
If you notice the start face for the inlet is the same as the empty patch (wall), so just take the starting face for any patch.
aljazari is offline   Reply With Quote

Old   March 13, 2013, 12:04
Default
  #5
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 111
Rep Power: 7
cutter is on a distinguished road
Why do you want to create an empty patch anyway?
cutter is offline   Reply With Quote

Old   March 13, 2013, 12:28
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 721
Rep Power: 18
mturcios777 will become famous soon enough
You need empty patches for the attachDetach modifier, so that's one usage. Just remember to update the number of patches at the top of your boundary file, otherwise your solver will crash.

Also, it seems safest to add empty patches at the start of your boundary file, in my experience.
mturcios777 is offline   Reply With Quote

Old   March 13, 2013, 16:59
Default
  #7
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Dear Marco,

Thank you very much.
your guess is correct I want it for attachDetach modifier
I got it.

thanks ,
Sasan.
sasanghomi is offline   Reply With Quote

Reply

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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 107 March 14, 2015 10:21
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


All times are GMT -4. The time now is 07:48.