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

[mesh manipulation] Refine an area defined by non-primitive geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2015, 20:55
Default Refine an area defined by non-primitive geometry
  #1
New Member
 
Brad Perfect
Join Date: Jan 2014
Posts: 8
Rep Power: 12
bhperfect is on a distinguished road
I would like to run refineMesh on an area that can be approximated by two boxes.

How do I define a cellSet in topoSetDict that includes the cells contained within these two boxes?

This should be a simple syntax issue, but my google-fu has failed me. Currently I have:

actions ( {
name c0;
type cellSet;
action new;
source boxToCell'
sourceInfo {
(x1 y1 z1) (x2 y2 z2);
}
}
)
bhperfect is offline   Reply With Quote

Old   December 7, 2015, 19:43
Default
  #2
New Member
 
Brad Perfect
Join Date: Jan 2014
Posts: 8
Rep Power: 12
bhperfect is on a distinguished road
I've been playing around in the setSet environment and the commands appear to function intuitively there. However, in topoSetDict, I'm still getting really irrational behavior.

Code:
cellset c0 new boxToCell (a b c) (d e f)
cellset c0 add boxToCell (g h i) (j k l)
functions perfectly well in setSet, but I have no idea how to translate this into something that topoSet will understand. I'm working in OF 2.3.

Does anyone have any recommendations?
bhperfect is offline   Reply With Quote

Old   December 7, 2015, 20:05
Default
  #3
New Member
 
Brad Perfect
Join Date: Jan 2014
Posts: 8
Rep Power: 12
bhperfect is on a distinguished road
The TL;DR solution for posterity is that OpenFOAM cares A LOT about white space.

Code:
boxToCell(a b c) (d e f);
is very different from

Code:
boxToCell (a b c) (d e f);
bhperfect 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
Non overlap area fractions saisanthoshm88 CFX 11 September 17, 2015 18:42
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Simulation of Flow through Complex 3D Geometry EmersonKB CFX 5 July 2, 2009 08:17
vitual _ real deneb FLUENT 3 January 22, 2007 04:31
Virtual/Real geometry. Jack Keays FLUENT 9 June 15, 2000 23:39


All times are GMT -4. The time now is 08:57.