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/)
-   -   [snappyHexMesh] SHM doesn't 'see' surfaces (https://www.cfd-online.com/Forums/openfoam-meshing/173374-shm-doesnt-see-surfaces.html)

Rojj June 18, 2016 08:41

SHM doesn't 'see' surfaces
 
I am trying to mesh a relatively simple geometry for external CFD.

The fluid domain that I intend to simulate is an octagon around the buildings at the center of the domain. To do this I first generate a larger domain with blockMesh and then I was hoping to cut-out the cells outside the octagon.

The problem I am having is that SHM does not see the octagon. The boundary is a closed STL surface with sub-surfaces representing the various inlets/outlets. These will be updated before the run for specific wind directions.

To begin with I have assigned a default BC zeroGradient to everything. The other BC for the larger domain are superfluous. The case if generated programmatically using PyFoam.

The case can be downloaded from .... (FILE REMOVED)

Any suggestion on what I am doing wrong? Thanks!

Rojj June 25, 2016 03:21

I solved the problem. Just in case it could be useful to other people the problem was syntax related.

The initial case was

Code:

shading
    {
      level
        (
          2
          4
        );
    }

for each solid within the STL file.

The correct syntax is

Code:

stl_file_name.stl
  regions
    {
      shading
    {
      level
        (
          2
          4
        );
      }
    }



All times are GMT -4. The time now is 02:54.