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/)
-   -   SnappyHexMesh& extrudeMesh (http://www.cfd-online.com/Forums/openfoam-pre-processing/118486-snappyhexmesh-extrudemesh.html)

s.m May 28, 2013 12:17

SnappyHexMesh& extrudeMesh
 
4 Attachment(s)
hi dear fomers, i am working on multi element arifoils, i make the mesh using snappyHexMesh, then for using this mesh with simpleFoam i run "extrudeMesh"
my problem is the cprner of slat that is good till extrudeMesh didn't run.
i put the pictures before and after the extrudeMesh.
any body could help me?
thanks to all:)

nimasam May 29, 2013 09:33

Dear saide

look at this post
i think if you add several layers around your airfoil, problem will be solved
on given post there are is a test case which may help you

s.m June 2, 2013 09:02

2 Attachment(s)
Quote:

Originally Posted by nimasam (Post 430748)
Dear saide

look at this post
i think if you add several layers around your airfoil, problem will be solved
on given post there are is a test case which may help you

Hi Dear Nima,
i did what you said me, but i didn't get good results:(
i attach some pictures of the corners of the elements

nimasam June 2, 2013 10:32

dear saide :)

1) whats wrong?
2) why just two layers?

immortality June 2, 2013 11:12

Hi Saideh
this error occurred when I run blockMesh on your snappyHexMesh file:
Code:

Create time



--> FOAM FATAL IO ERROR:
Cannot open include file "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/forceCoeffs" while reading dictionary "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict.functions"

file: /home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict at line 49.

    From function functionEntries::includeEntry::includeEntry(dictionary& parentDict, Istream&)
    in file db/dictionary/functionEntries/includeEntry/includeEntry.C at line 120.

FOAM exiting


nimasam June 2, 2013 11:33

-------------------------------------------------------------------

immortality June 2, 2013 11:39

:eek:dear Nima
be more patient please!
yes its related.
Saideh wanted me help her but I wasn't familiar with snappyHexMesh and the files she gave me displayed an error on blockMesh that I wrote and noticed her to her thread.:)

nimasam June 2, 2013 11:48

----------------------------------------------------------

immortality June 2, 2013 11:56

I think its better to help her than trying to answer me.:)as I know your posts were irrelevant dear Nima.:pyou didn't know whats the matter and unfortunately now persist on your mistake.its nice that people accept their mistakes than keep them!;)
anyway,please have a look into the error if you can so that I can help her by her case.:)

s.m June 2, 2013 12:01

Quote:

Originally Posted by nimasam (Post 431457)
dear saide :)

1) whats wrong?
2) why just two layers?

hi dear nima,
i think what's wrong are those cells that are in the corner of the slat. is it a good mesh for there?

nimasam June 2, 2013 12:04

Quote:

Originally Posted by immortality (Post 431460)
Hi Saideh
this error occurred when I run blockMesh on your snappyHexMesh file:
Code:

Create time



--> FOAM FATAL IO ERROR:
Cannot open include file "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/forceCoeffs" while reading dictionary "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict.functions"

file: /home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict at line 49.

    From function functionEntries::includeEntry::includeEntry(dictionary& parentDict, Istream&)
    in file db/dictionary/functionEntries/includeEntry/includeEntry.C at line 120.

FOAM exiting



well answer is there: (read error carefully ;))
Code:

Cannot open include file  "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/forceCoeffs" while  reading dictionary  "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict.functions"
you can comment those forceDict from controlDict, it can not find it ;) in your system folder

nimasam June 2, 2013 12:12

Quote:

Originally Posted by s.m (Post 431469)
hi dear nima,
i think what's wrong are those cells that are in the corner of the slat. is it a good mesh for there?

why not ;) but i suggest to increase it to forexample 5 layers and post results here ;), i guess it will improve

s.m June 2, 2013 12:32

Quote:

Originally Posted by immortality (Post 431460)
Hi Saideh
this error occurred when I run blockMesh on your snappyHexMesh file:
Code:

Create time



--> FOAM FATAL IO ERROR:
Cannot open include file "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/forceCoeffs" while reading dictionary "/home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict.functions"

file: /home/ehsan/Desktop/airfoil_snappyHexMesh/system/controlDict at line 49.

    From function functionEntries::includeEntry::includeEntry(dictionary& parentDict, Istream&)
    in file db/dictionary/functionEntries/includeEntry/includeEntry.C at line 120.

FOAM exiting


Hi Dear ehsan,
yes i forget to put the include function that i had been written in the controlDict of airfoil_snappyHexMesh folder. sorry.
here you are, these are the complete folders in the attachment.
thank you very much :)

s.m June 2, 2013 12:37

Quote:

Originally Posted by nimasam (Post 431474)
why not ;) but i suggest to increase it to forexample 5 layers and post results here ;), i guess it will improve

Dear Nima,
i don't think so, but Iíll run the snappy with 5 layers now.

immortality June 2, 2013 13:11

dear Saideh in doing this command:
Code:

surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil
this error displayed:
Code:

Create time

Reading surfaceFeatureExtractDict



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ehsan/Desktop/airfoil_snappyHexMesh_modified/system/surfaceFeatureExtractDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

ehsan@Ehsan-com:~/Desktop/airfoil_snappyHexMesh_modified$ surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil

Usage: surfaceFeatureExtract [OPTIONS]
options:
  -case <dir>      specify alternate case directory, default is the cwd
  -dict <file>      read control dictionary from specified location
  -noFunctionObjects
                    do not execute functionObjects
  -srcDoc          display source code in browser
  -doc              display application documentation in browser
  -help            print the usage

extract and write surface features to file

Using: OpenFOAM-2.2.0 (see www.OpenFOAM.org)
Build: 2.2.0-b363e8d14789



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 3
Invalid option: -writeObj
Invalid option: -includedAngle


FOAM exiting

I'm totally unfamiliar with snappyHexMesh commands if I have run it mistakenly.

s.m June 2, 2013 13:31

Quote:

Originally Posted by immortality (Post 431486)
dear Saideh in doing this command:
Code:

surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil
this error displayed:
Code:

Create time

Reading surfaceFeatureExtractDict



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ehsan/Desktop/airfoil_snappyHexMesh_modified/system/surfaceFeatureExtractDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

ehsan@Ehsan-com:~/Desktop/airfoil_snappyHexMesh_modified$ surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil

Usage: surfaceFeatureExtract [OPTIONS]
options:
  -case <dir>      specify alternate case directory, default is the cwd
  -dict <file>      read control dictionary from specified location
  -noFunctionObjects
                    do not execute functionObjects
  -srcDoc          display source code in browser
  -doc              display application documentation in browser
  -help            print the usage

extract and write surface features to file

Using: OpenFOAM-2.2.0 (see www.OpenFOAM.org)
Build: 2.2.0-b363e8d14789



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 3
Invalid option: -writeObj
Invalid option: -includedAngle


FOAM exiting

I'm totally unfamiliar with snappyHexMesh commands if I have run it mistakenly.

Dear ehsan, thank you very much for your kind attention.:)
i put in the attachment the airfoil_snappyHexMesh_modified2 , please open the allrun in this folder, i write in it that you just should run blockMesh and after that snappyHexMesh in two steps as you see in the allrun.txt.

s.m June 2, 2013 13:35

3 Attachment(s)
Quote:

Originally Posted by nimasam (Post 431474)
why not ;) but i suggest to increase it to forexample 5 layers and post results here ;), i guess it will improve

Dear Nima,
these pictures are the results of runningSHM with five layers..

nimasam June 2, 2013 13:59

dear saide
check which side of 3D body, are you going to extrude?
are both sides (front and back) are the same?

immortality June 2, 2013 15:47

you're welcome.Saideh it executes fine till extrudeMesh
I don't know why it doesn't open.I use OF 2.2.0
Code:

Create time

Create mesh for time = 0



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ehsan/Desktop/airfoil_simpleFoam/system/extrudeMeshDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting


s.m June 2, 2013 16:41

Quote:

Originally Posted by immortality (Post 431503)
you're welcome.Saideh it executes fine till extrudeMesh
I don't know why it doesn't open.I use OF 2.2.0
Code:

Create time

Create mesh for time = 0



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ehsan/Desktop/airfoil_simpleFoam/system/extrudeMeshDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting


Great! Dear ehsan as i write in the Allrun.txt
after finishing the 2th step of snappHexMesh you should go two the airfoil_simpleFoam_modified that i attach for you, in this folder you should execute "extrudeMesh", after fininshing extrudeMesh, i create polyMesh in the constant folder of airfoil_simpleFoam_modified.
p-s: before running the extrudeMesh in terminal,please copy the name of aifoil_snappyHexMesh_modified2 folder, and past it in front of (sourceCase "../(here)";)) in extrudeMeshDict. after that, execute extrudeMesh.by executing the extrudeMesh, it extrude the mesh that the name of it's folder have been written in front of sourceCase in extrudeMeshDict
tahnk you very much again:)


All times are GMT -4. The time now is 07:04.