2D case giving 3D result
1 Attachment(s)
Hi all;
trying to solve a simple 2D circular cylinder with simpeFoam but the results I'm getting are actually 3D results, as you can see from the following picture which shows the pressure on the cylinder surface. http://dl.dropbox.com/u/2459663/cilindro_2d.png The cylinder axis is in the z-direction (so the cylinder lies on the x-y plane). I only have one cell in z-direction and both the planes of the domain parallel to the x-y plane are set as empty. Could you please check my case directory and tell me what I am doing wrong? Thank you! Lorenzo |
Looking at your fields, there is a fluctuation in the z component of you simulatiom, which shouldn't happen when you doing a 2D simulation. Your boundary conditions look okay, though I'm curious why you chose slip conditions on the farField; wouldn't it be better to make it an outletInlet?
|
Yes, I could try that! With farField you mean frontAndBack, right?
|
I changed the boundary on frontAndBack as a symmetryPlane but I still can't get a 2D solution.
|
I found out the problem: I meshed the cylinder using snappyHexMesh which always gives a 3D mesh. In fact my cylinder surface has more than one cell in Z-direction although my block mesh has only one.
So what we can do is: 1. Use blockMesh only without running snappyHexMesh. This is fine in this case for a simple circular cylinder but is not for different (even simple) geometries, such as an airfoil. 2. Extrude the mesh from snappyHexMesh you have on a plane, using extrudeMesh. Haven't tried that yet. I'll do it later. The tutorial I'll be referring to will be /tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_simpleFoam |
I'm having some problems with createPatch and createPatchDict. Does anybody know how to use it?
|
Quote:
|
Thank you Joel! I'll have a look!
|
I managed to solve the case but I'm getting some funny results. The velocity, for example, lies in an extremely wide range (-7000, +7000) m/s while the inlet velocity should me 30 m/s. Also the overall field, thus being 2D, doesn't seem to be that of a circular cylinder…
|
Greetings to all!
I'm probably late in writing about this, but I just re-found this example: http://openfoamwiki.net/index.php/Ma...Examples/2DsHM - basically it's a step-by-step guide on how to generate a 2D mesh using snappyHexMesh. This subject has already been discussed in the past here in the forum, but I didn't manage to find the time to search for it... but now I stumbled on this handy wiki page, so I remembered to post it here. Best regards, Bruno |
Thank you wyld. I already knew that tutorial but I still can't figure out why I'm getting so strange results…
|
All times are GMT -4. The time now is 14:45. |