Courant number, patches, etc
Hi!
I want simulate the water flow in a rectangular channel filled with transversal round shape fillaments. I have build a php script that generates the vertices, blocks, edges and also the inlet and outlet patches. When I run the blockMesh it gives a warning saying that I have 'n' undifined faces and that they will be added to default patch. I think this is normal and not problematic because I only have defined the inlet and outlet patches. Code:
Create time But what should be the inicial conditions (at /0 directory) for p and U in the three patches (inlet, outlet and defaultFaces)? I have tried several things but none works well. I think the problem is not in the mesh generation because blockMesh only gives that warning, The program starts building the mesh for the modules between the fillaments. First calculates the vertices and edges for the first module and calculate for each following module. Then adds the section before the first module and then adds the section after the last module. The program adds the number of modules we wish. The vertices/blocks/edges are defined for the first block in the next picture: http://www.carloscompleto.com/images/grid_img_04.pdf In the next pictures you can see that the mesh looks good: http://www.carloscompleto.com/images/grid_img_01.jpg http://www.carloscompleto.com/images/grid_img_02.jpg http://www.carloscompleto.com/images/grid_img_03.jpg When I run the blockMesh I have to edit the boundary file and change the defaulFaces from "empty" to "patch" because if I don't do it the icoFoam gives an error. Code:
3 Code:
boundaryField I'm using the default fvSchemes and fvSolution files of the cavity tutorial. What should I do? |
Hi oort. I'm no expert, but I've been playing with TurbFoam and it seems to be very sensitive to abrupt cell size changes. An example is where your cells go from a square cross section to rectagles with half the width. In my simulation for no reason the velocity would change there.
Maybe if you could change the cell sizes more gradually, that might help. But like I said, I'm no expert, this is just my experience. Steve |
All times are GMT -4. The time now is 23:32. |