CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] Refine an area defined by non-primitive geometry (https://www.cfd-online.com/Forums/openfoam-meshing/163732-refine-area-defined-non-primitive-geometry.html)

bhperfect December 4, 2015 20:55

Refine an area defined by non-primitive geometry
 
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 December 7, 2015 19:43

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 December 7, 2015 20:05

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);


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