CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Flat Plate analysis (http://www.cfd-online.com/Forums/openfoam-pre-processing/112978-flat-plate-analysis.html)

bgraves February 8, 2013 20:29

Flat Plate analysis
 
Hi guys,

I am new to OpenFOAM and trying to do this same analysis for a class. I am having trouble with the grid from the plot3d format into OpenFoam.

I am using the grid found on the http://turbmodels.larc.nasa.gov/flatplate_grids.html website. I have successfully imported the grid using the plot3dToFoam command, followed by the autoPatch command. My main question is how to break up the bottom patch into the two "different" sections (ie the plate and the symmetry boundary condition).

Any input would be unbelievably helpful.

Thanks

wyldckat February 10, 2013 07:54

Greetings Ben and welcome to the forum!

I think createPatch is what you should be looking for, for adding new patches in the exact place where you need them. I'll quote myself from an old thread:
Quote:

Originally Posted by wyldckat (Post 345083)
@Elise: You can with createPatch. You can find several examples by running:
Code:

find $WM_PROJECT_DIR -name createPatchDict
If your geometry has good features (i.e., not trying to create a small patch in a flat surface), you can use autoPatch.

Best regards,
Bruno

bgraves February 11, 2013 12:51

Thank you so much for your speedy reply!!! The model works perfectly now!

-Ben

bgraves February 15, 2013 20:02

Sorry to ask again I am trying to do the same thing, only this time I am using the grids found on http://turbmodels.larc.nasa.gov/bump_grids.html. I used the same method that you helped me with prior. Except this time when I wrote the topoSetDict file for the right side of the bump, the faceSet that it makes looks like the following:
0
(
)
Below is the topoSetDict file:
actions
(
{
name f0;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-25 0 0) (0 0 1);
}
}
{
name f1;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0 0 0) (1.5 0 1);
}
);
Any help would be greatly appreciated!

-Ben

wyldckat February 16, 2013 05:04

Hi Ben,

You need to give it some thickness over the Y axis, something like:
Code:

actions
(
  {
    name    f0;
    type    faceSet;
    action  new;
    source  boxToFace;
    sourceInfo
    {
      box (-25 -0.01 0) (0 0.01 1);     
    }
}
  {
    name    f1;
    type    faceSet;
    action  new;
    source  boxToFace;
    sourceInfo
    {
      box (-0 -0.01 0) (1.5 0.01 1);
    }
);

Best regards,
Bruno

bgraves February 18, 2013 11:46

Bruno,

I want to really thank you for saving my butt again ;)

-Ben


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