Defining boundary condition for stl imported
Hello,
I would like to simulate the flow of a fluid around a sphere. I created a box with blockMesh (and blockMeshDict), where I defined patches for the inlet, the outlet and the walls. In particular, the patch named "walls" is of type wall. With a CAD system I created a sphere.stl file. Then I created a snappyHexMeshDict and I ran snappyHexMesh. But when I look at the boundary file, the "walls" boundary does not include the faces of the sphere. Now I don’t know where I have to define which patch to apply to the sphere surface. I would like to define it as "walls". I have been looking for the answer for hours, in the tutorials, the on-line manual, this forum… I can not find the solution to my problem. Would anyone have any piece of advice? Thanks. |
Hi Guillaume,
the boundary type is defined in constant/polyMesh/boundary and the boundary conditions are specified in the 0 folder. Best, Pablo |
Hi Pablo,
Thank you for your quick reply. Yes, I saw the constant/polyMesh/boundary file, but I think it is generated by blockMesh. Thus, the sphere does not appear in this file but it is probably normal. Or should I modify this file ? Here is the content of my boundary file at the moment : Code:
FoamFile Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
solid boule HTML Code:
--> FOAM FATAL IO ERROR: |
All times are GMT -4. The time now is 13:40. |