CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Supersonic Wedge Question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2013, 16:19
Default Supersonic Wedge Question
  #1
New Member
 
Sean A
Join Date: Sep 2013
Posts: 12
Rep Power: 12
Foamaholic is on a distinguished road
Hello all,

I'm very new to OpenFOAM, so please bear with me and my beginner question:

I have run a few of the tutorial cases that come with the OpenFOAM installation, including the wedge15Ma5 tutorial for compressible flow and the rhoCentralFoam solver. However, I want to do more than just run and modify the tutorials that OpenFOAM comes with, so to practice creating new geometries of my own, I used gmsh to create a 15 degree wedge like the one in the wedge15Ma5 tutorial.

I copied the wedge15Ma5 tutorial so that I would have a correct (or so I hoped) setup, put my gmsh mesh into the copied case structure, and converted the mesh using the gmshToFoam command so that OpenFOAM could read it. Then, since I am running this case as a 3-D simulation instead of a 2-D simulation, I altered the p, T, U, and boundary files so that the front and back faces of my geometry no longer had the "empty" boundary condition, but had the "slip" boundary condition instead.

I applied rhoCentralFoam to my case, and while the solver runs and gives me a result, the result seems wrong to me; after OpenFOAM finishes running the solver, I see no shock wave in paraView, even though the shock wave is clearly visible when I run the wedge15Ma5 tutorial.

Sorry for the long description. Can anyone clue me in to what I'm doing wrong?
Foamaholic is offline   Reply With Quote

Old   September 3, 2013, 08:46
Default
  #2
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Hi,

If you are going to make an axis symmetric mesh try the following procedures step by step:

1) Make a 2D (one cell thick mesh) using your desired mesh program.
2) the axis of symmetry has got to be parallel to the XY-plane
3) the boundary which is going to be the symmetry axis has to be a straight line
4) the "front" and "back" are in one patch, i.e front&Back
5) the domain does not cross y=0
6) change writePresicion value in controlDict to 12
7) use gmshToFoam
8) makeAxialMesh -axis symmetry -wedge front&Back
9) copy polymesh located in folder 1 into constant
10) collapseEdges -overwrite
11) change writePresicion value back to 6
12) change wedge boundary condition names to the desired ones and delete the old empty patch
13) use checkMesh to see if everything is ok.

*** Do not forget that Mesh is not in the middle of the origin. It has been translated with the value of thickness of the extruded cells.

And here is the sample collapseDict file:


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object collapseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

collapseEdgesCoeffs
{
// Edges shorter than this absolute value will be merged
minimumEdgeLength 1e-10;

// The maximum angle between two edges that share a point attached to
// no other edges
maximumMergeAngle 180;
}


// ************************************************** *********************** //

I hope it helps a bit,
Do not hesitate to ask more questions.

Best,
Mojtaba
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   September 3, 2013, 18:01
Default
  #3
New Member
 
Sean A
Join Date: Sep 2013
Posts: 12
Rep Power: 12
Foamaholic is on a distinguished road
Quote:
Originally Posted by Mojtaba.a View Post
Hi,

If you are going to make an axis symmetric mesh try the following procedures step by step:

Best,
Mojtaba


Thanks for your help Mojtaba, but if I understand you correctly, I'm not trying to make an axis symmetric mesh. I just want to model a half-wedge like the one in the tutorial I mentioned.

But I do have another question: the tutorial in Openfoam, as well as the tutorials I've seen elsewhere on the internet, use a mesh made of many small squares in order to run this simulation. However, gmsh creates a mesh of many small triangles. Would gmsh's different mesh shape affect Openfoam's solution?
Foamaholic is offline   Reply With Quote

Old   September 3, 2013, 19:51
Default
  #4
New Member
 
Sean A
Join Date: Sep 2013
Posts: 12
Rep Power: 12
Foamaholic is on a distinguished road
Problem Solved! When I originally made my computational domain, its -x and -y dimensions were much greater than its -z dimension. So, I created a new domain with approximately equal -x -y and -z dimensions. Now, I get the results I was expecting. I'm not sure why this happened, but I'm not one to argue with success.

Thanks for you help and support.
Foamaholic is offline   Reply With Quote

Reply


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
Supersonic flow over an airfoil. FLUENT Lift don't match up with Shock Expansion Tech enriccasas FLUENT 1 August 21, 2013 06:43
Supersonic Inlet for a Compressible Flow in a Nozzle Daco FLUENT 8 November 8, 2012 03:34
Flow in Supersonic MHD Channel Antanas CFX 6 February 13, 2012 14:49
Wedge Impact Forces (6DOF high velocity problem) der_meister FLUENT 1 June 14, 2010 23:32
Inviscid Supersonic Flow Simulation Alan OpenFOAM Running, Solving & CFD 2 July 27, 2009 03:36


All times are GMT -4. The time now is 08:05.