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

[snappyHexMesh] Defining patches in snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2015, 16:57
Default Defining patches in snappyHexMesh
  #1
New Member
 
J Collins
Join Date: Feb 2015
Posts: 14
Rep Power: 11
JCollins is on a distinguished road
OpenFOAM seems have a lot on inconsistencies and overconstraints over the data specified within it. I am trying to set up a case where an internal object creates a flow velocity on one side and controls the domain pressure on the other side. The mesh is a large volume and the flow creator is entirely enclosed within it. I have its shape defined in one STL file, and its inlet and outlet faces in two other STLs that are subsets of the main file.

It seems that the only way for snappyHexMesh to generate a patch definition is to use a named STL it as a refinement surface. Without using refinement, the STL is ignored. What do I do if I do not want the object to control the mesh density around it?

When specifying the inlet and outlet patches, they also need to be defined using refinement surfaces to be recognised and given their type. This refinement level is also redundant and can conflict with the already-defined refinement on the overall shape.

This all creates a problem because it seems that all named patches need to be referred to in the boundary conditions files in the '0' folder. Here I can freely set the inlet and outlet conditions, but simpleFoam will not allow the main shape to go undefined. Clearly I cannot have one definition for both sides of the object, as they have different roles, and it seems that overconstraining for instance the velocity, leads to the solver failing to start.

As a result of the above, I cannot seem to progress with this model.

Update:

I seem to have been able to get simpleFoam running with the shared patches, however have discovered in paraview that the shared patch faces aren't actually shared, they are randomly distributed between the two patches. It means there is no consistent boundary condition across the faces that I would like to define. Is there a way to define a patch on a surface cut out with a 'superset' STL?

Thanks in advance.

Last edited by JCollins; April 28, 2015 at 06:44. Reason: Additional update plus a question
JCollins is offline   Reply With Quote

Reply

Tags
boundary conditions, patch type, simplefoam


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
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 08:19
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[snappyHexMesh] snappyHexMesh does not create boundary patches from .stl files bug_or_feature OpenFOAM Meshing & Mesh Conversion 7 August 30, 2016 19:18
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 08:00
[snappyHexMesh] On which patches to set BC's for snappyHexMesh ? Talder OpenFOAM Meshing & Mesh Conversion 0 November 8, 2015 18:25


All times are GMT -4. The time now is 11:16.