CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

SnappyHexMesh& extrudeMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree10Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2013, 12:17
Default SnappyHexMesh& extrudeMesh
  #1
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
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
Attached Images
File Type: jpg corner_of_slat_after_extrudeMesh.jpg (96.2 KB, 83 views)
File Type: jpg corner_of_slat_before_extrudeMesh.jpg (60.4 KB, 67 views)
File Type: jpg Mesh10.jpg (84.1 KB, 64 views)
File Type: jpg Mesh-2.jpg (92.8 KB, 54 views)
s.m is offline   Reply With Quote

Old   May 29, 2013, 09:33
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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 likes this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 2, 2013, 09:02
Default
  #3
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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
Attached Images
File Type: jpg after-extrude.jpg (93.6 KB, 30 views)
File Type: jpg before-extrude.jpg (98.8 KB, 38 views)
s.m is offline   Reply With Quote

Old   June 2, 2013, 10:32
Default
  #4
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
dear saide

1) whats wrong?
2) why just two layers?
s.m likes this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 2, 2013, 11:12
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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
s.m likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 2, 2013, 11:33
Default
  #6
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
-------------------------------------------------------------------
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)

Last edited by nimasam; June 2, 2013 at 13:53.
nimasam is offline   Reply With Quote

Old   June 2, 2013, 11:39
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 2, 2013, 11:48
Default
  #8
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
----------------------------------------------------------
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)

Last edited by nimasam; June 2, 2013 at 13:54.
nimasam is offline   Reply With Quote

Old   June 2, 2013, 11:56
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
I think its better to help her than trying to answer me.as I know your posts were irrelevant dear Nima.you 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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 2, 2013, 12:01
Default
  #10
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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?
s.m is offline   Reply With Quote

Old   June 2, 2013, 12:04
Default
  #11
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
Quote:
Originally Posted by immortality View Post
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 2, 2013, 12:12
Default
  #12
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
Quote:
Originally Posted by s.m View Post
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 likes this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 2, 2013, 12:32
Default
  #13
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by immortality View Post
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

Last edited by s.m; June 7, 2013 at 14:09.
s.m is offline   Reply With Quote

Old   June 2, 2013, 12:37
Default
  #14
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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.
s.m is offline   Reply With Quote

Old   June 2, 2013, 13:11
Default
  #15
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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 likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 2, 2013, 13:31
Default
  #16
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by immortality View Post
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.

Last edited by s.m; June 7, 2013 at 14:10.
s.m is offline   Reply With Quote

Old   June 2, 2013, 13:35
Default
  #17
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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..
Attached Images
File Type: jpg before-extrue.jpg (99.3 KB, 23 views)
File Type: jpg after-extrudeMesh-zoom.jpg (102.6 KB, 22 views)
File Type: jpg after-extrudeMesh.jpg (102.9 KB, 26 views)
s.m is offline   Reply With Quote

Old   June 2, 2013, 13:59
Default
  #18
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
dear saide
check which side of 3D body, are you going to extrude?
are both sides (front and back) are the same?
s.m likes this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 2, 2013, 15:47
Default
  #19
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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 likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 2, 2013, 16:41
Default
  #20
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 5
s.m is on a distinguished road
Quote:
Originally Posted by immortality View Post
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
s.m is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating 3-D axisymmetric mesh using extrudeMesh martyn88 OpenFOAM Meshing & Mesh Conversion 1 August 3, 2012 11:19
extrudeMesh from STL Surface TRT OpenFOAM Meshing & Mesh Conversion 0 April 19, 2012 15:32
extrudeMesh - odd behaviour grjmell OpenFOAM 0 September 20, 2011 08:41
extrudeMesh from patch Lodda OpenFOAM 4 August 15, 2011 10:35
BIG Problem in extrudeMesh! wind_fyp OpenFOAM 0 January 28, 2010 01:41


All times are GMT -4. The time now is 21:16.