|
[Sponsors] |
July 24, 2015, 17:22 |
Simulation axial fan - error
|
#1 | |
New Member
Clement Mtrl
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Hi Everyone,
I' new to openFoam but already work on StarCCM+. My company want to develop CFD but with opensource but I'm kind of alon for this point and I find it hard to find great tutorials about the method with Linux/OpenFoam (not about CFD). It was kind of long to install everything first and run one tutorial. I used ANSYS to create my mesh: wich I'll probably refine when I will succeed my first simulation. You can find it here : http://we.tl/iMd0hE2YDj So I copied the folder tutorials/incopressible/SRFSimpleFoam/mixer in my running folder. Copy my mesh in it and run: fluent3DMeshToFoam fans.msh Then I changes boundary so cyclic_half0 (&1) are like in the tutorials, nu = 33.10-6 (Hydrogene at 0.3MPa) I also change the velocity inlet to 17m.s-1 For the first try, I didn't change anything else. So I tried to launch SFRSimpleFoam but I have tho following message which I don't know what to do with : Quote:
I don't really know what to do. So if somebody can help me on tell me where I sould go find informations to resolve this case. Thanks a lot Clement |
||
July 25, 2015, 03:57 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Well firstly your "innerwall" and "outerwall" BC had to be "innerWall" and "outerWall" Then your cyclics dont match perfectly which is why the cyclic BC is completely useless unless using fully structured mesh. So the cyclics need to be of type cyclicAMI. And also cyclicAMI in all the 0 files. Code:
cyclic_half0 { type cyclicAMI; inGroups 1(cyclicAMI); nFaces 13819; startFace 2617836; matchTolerance 0.0001; neighbourPatch cyclic_half1; transform rotational; rotationAxis (0 0 1); rotationCentre (0 0 0); } cyclic_half1 { type cyclicAMI; inGroups 1(cyclicAMI); nFaces 13819; startFace 2631655; matchTolerance 0.0001; neighbourPatch cyclic_half0; transform rotational; rotationAxis (0 0 1); rotationCentre (0 0 0); } But you have a much bigger problem The mesh is not sutiable for solving chechMesh gives this Code:
Mesh non-orthogonality Max: 84.2138 average: 15.006 *Number of severely non-orthogonal (> 70 degrees) faces: 199. Non-orthogonality check OK. <<Writing 199 non-orthogonal faces to set nonOrthoFaces Face pyramids OK. ***Max skewness = 14.4396, 146 highly skew faces detected which may impair the quality of the results <<Writing 146 skew faces to set skewFaces Coupled point location match (average 0) OK. Link to Case
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 25, 2015, 10:19 |
|
#3 |
New Member
Clement Mtrl
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Hi Linnemann.
Thanks a lot for your time. First, where could if find the information for cyclic boundary like cyclicAMI ? I thought my face matched because I used match control in Ansys... Furthermore, I thought I could try a first run (no or bad convergence) with this mesh and later work on it. OpenFOAM don't start run if it considered the mesh too bad ? I will work on my mesh and take in consideration your comments and let you know |
|
July 25, 2015, 10:22 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Google cyclicAMI
I tried running it and it starts to diverge immediately. Checked in Paraview and the bad cells are causing velocities in the 5e6. So no the current mesh is no good.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 27, 2015, 11:58 |
|
#5 | |
New Member
Clement Mtrl
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Hi Linnemann,
I watched your folder on Drive and I have some questions. (for the moment, and I'm not oworking on the mesh but more about understanding and using great controls in OpenFoam). I see that you havec a blockmeshdict in your system folder. I don't understant because we used an external mesh... Also, you change many points in fvSchemes and I'd like to know where I can find documentation to explain each keywords you use because in the user guide, I didn't see a list of keywords we can use. Thanks a lot for your help PS: When I try to lauch you case, I also have this error : Quote:
Last edited by Clmkite; July 27, 2015 at 14:19. |
||
July 28, 2015, 14:05 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
The blockmesh dict is not needed, just something that followed when copying from another case.
The error is because you need to add div((nuEff*dev(T(grad(Urel))))) under the divSchemes section. Why my case does not complain I do not know. Code:
divSchemes { default none; div(phi,Urel) bounded Gauss upwind; div(phi,k) bounded Gauss upwind; div(phi,epsilon) bounded Gauss upwind; div(phi,omega) bounded Gauss upwind; div(phi,R) bounded Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) bounded Gauss upwind; div((nuEff*dev2(T(grad(Urel))))) Gauss linear; div((nuEff*dev(T(grad(Urel))))) Gauss linear; } 1. Search the forum 2. Search Google 3. Search the OpenFOAM git page 3. Read Hrvoje Jasak's PhD thesis section 3 and 4 4. Read "Computational Methods for Fluid Dynamics by Joel H. Ferziger and Milovan Peric" 5. Read the Fluent Manual for example searching the OpenFOAM github for cellMDLimited gives me this in the header file. Code:
Description cellMDLimitedGrad gradient scheme applied to a runTime selected base gradient scheme. The scalar limiter based on limiting the extrapolated face values between the maximum and minimum cell and cell neighbour values and is applied to the gradient in each face direction separately. Code:
gradSchemes { default Gauss linear; grad(Urel) WHAY Gauss linear 1; grad(U) cellMDLimited Gauss linear 1; } Code:
Unknown grad scheme WHAY Valid grad schemes are : 9 ( Gauss cellLimited cellMDLimited edgeCellsLeastSquares faceLimited faceMDLimited fourth leastSquares pointCellsLeastSquares ) Unfortunately there are no "all about openfoam" written anywhere. There are bits and pieces everywhere. The good thing is that all the source code is available so if you can read C++ you can deduce whats going on. The settings I use is what I have found is ok settings for an unstructured mesh.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 28, 2015, 15:10 |
|
#7 |
New Member
Clement Mtrl
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Hi Linnemann,
I finally understood why I didn't work and I learn everyday I change my mesh (skewness and ortho is ok) and try this case : Link to drive The case / The mesh / First results 50 and 100 In fact, for the moment I was using virtualbox but now for computing it slows so much that I'm going to install Linux on dualboot. I tried to search but I'm not sure about the information I've found so maybe you can help me: Where can I change between first order and second order of discretization ? How can I really control how may wall function works ? Why do we initialize omege and epsilon if we chosse the k-omega model ? I understood your point of writing and see the help but after I need to see which every schemes means (I don't know all in your example). But for sure I start looking this way too. Otherwise, if you have any comments on my case you are welcome. In fact, even if I hace a good knowledge in fluid mechanics and quite good in CFD, I'm still junior Once again, thanks for your help. Clement |
|
Tags |
ansys, foam, frame, rotating, srfsimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Undeclared Identifier Errof UDF | SteveGoat | Fluent UDF and Scheme Programming | 7 | October 15, 2014 08:11 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |