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   June 2, 2013, 17:02
Default
  #21
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,174
Rep Power: 16
immortality is on a distinguished road
another error occurred in performing extrudeMesh,I changed that address also:
Code:
ehsan@Ehsan-com:~/Desktop/Files/airfoil_simpleFoam_modified$ extrudeMesh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0-b363e8d14789
Exec   : extrudeMesh
Date   : Jun 03 2013
Time   : 01:26:22
Host   : "Ehsan-com"
PID    : 3143
Case   : /home/ehsan/Desktop/Files/airfoil_simpleFoam_modified
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting extrudeModel linearNormal
Extruding from patch using model linearNormal
Collapsing edges < 0.0001 of bounding box

Extruding patches 1(front) on mesh "../aifoil_snappyHexMesh_modified2"



--> FOAM FATAL IO ERROR: 
cannot find file

file: ../aifoil_snappyHexMesh_modified2/system/controlDict at line 0.

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

FOAM exiting
-------
I'll continue tomorrow,bye for now
__________________
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, 17:08
Default
  #22
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
another error occurred in performing extrudeMesh,I changed that address also:
Code:
ehsan@Ehsan-com:~/Desktop/Files/airfoil_simpleFoam_modified$ extrudeMesh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0-b363e8d14789
Exec   : extrudeMesh
Date   : Jun 03 2013
Time   : 01:26:22
Host   : "Ehsan-com"
PID    : 3143
Case   : /home/ehsan/Desktop/Files/airfoil_simpleFoam_modified
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting extrudeModel linearNormal
Extruding from patch using model linearNormal
Collapsing edges < 0.0001 of bounding box

Extruding patches 1(front) on mesh "../aifoil_snappyHexMesh_modified2"



--> FOAM FATAL IO ERROR: 
cannot find file

file: ../aifoil_snappyHexMesh_modified2/system/controlDict at line 0.

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

FOAM exiting
-------
I'll continue tomorrow,bye for now
Dear ehsan, these two folders "airfoil_snappyHexMesh_modified2" and "simpleFoam_simpleFoam_modified" should be in on folder beside each other.
thanks
s.m is offline   Reply With Quote

Old   June 2, 2013, 17:26
Default
  #23
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,174
Rep Power: 16
immortality is on a distinguished road
yes they are in a unique folder beside to each other.
maybe this line have any problem?
Code:
sourceCase "../aifoil_snappyHexMesh_modified2";
is it right? it doen't find controlDict.
__________________
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 3, 2013, 01:55
Default
  #24
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
yes they are in a unique folder beside to each other.
maybe this line have any problem?
Code:
sourceCase "../aifoil_snappyHexMesh_modified2";
is it right? it doen't find controlDict.
after finishig the analysis in airfoil_snappyHexMesh you now have "1,2,3,4" folders, yes?
now go to the airfoil_simpleFoam and write the name of the folder that you run the snappyHexMesh in it that is contain of "1,2,3,4" folders.
after this come to airfoil_simpleFoam that is contain "0,constant,system" and run extrudeMesh, and simpleFoam at the end.
s.m is offline   Reply With Quote

Old   June 3, 2013, 01:58
Default
  #25
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
check which side of 3D body, are you going to extrude?
are both sides (front and back) are the same?
Dear Nima i have extruded the front face, would you please take look at extrudeMeshDict in the attachment?
Attached Files
File Type: txt boundary.txt (1.8 KB, 9 views)
File Type: txt extrudeMeshDict.txt (1.4 KB, 32 views)
s.m is offline   Reply With Quote

Old   June 3, 2013, 02:08
Default
  #26
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 s.m View Post
Dear ehsan, these two folders "airfoil_snappyHexMesh_modified2" and "simpleFoam_simpleFoam_modified" should be in on folder beside each other.
thanks
this error is because of you run the extrudeMesh in a wrong folder. you should go to the airfoil_simpleFoam then run the extrudeMesh there to give you polyMesh, in the constant folder of it.
s.m is offline   Reply With Quote

Old   June 3, 2013, 03:29
Default
  #27
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,174
Rep Power: 16
immortality is on a distinguished road
Hi Saideh
I run the command in true folder but there are only "1,2,3" folders in airfoil_snappyHexMesh_modified2.
which version are you using?
there is an error on snapEdge:
Code:
ehsan@Ehsan-com:~/Desktop/Files/airfoil_snappyHexMesh_modified2$ snapEdge
snapEdge: command not found
what does do this command?
__________________
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 3, 2013, 05:14
Default
  #28
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,119
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
Dear Nima i have extruded the front face, would you please take look at extrudeMeshDict in the attachment?
your extrudeMeshDict are completely right , did you check your mesh before extrusion? check whether it is 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 online now   Reply With Quote

Old   June 3, 2013, 07:57
Default
  #29
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
I run the command in true folder but there are only "1,2,3" folders in airfoil_snappyHexMesh_modified2.
which version are you using?
there is an error on snapEdge:
Code:
ehsan@Ehsan-com:~/Desktop/Files/airfoil_snappyHexMesh_modified2$ snapEdge
snapEdge: command not found
what does do this command?
openFoam does not have snapEdge dictionary you should compile it to your openFoam before running the snapEdge in the terminal.
it doesn't necessary for this multi element airfoil. run snappyHexMesh without the snapEdge. so it should create 3 folders for you.
s.m is offline   Reply With Quote

Old   June 3, 2013, 08:00
Default
  #30
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
your extrudeMeshDict are completely right , did you check your mesh before extrusion? check whether it is front and back are the same
yes i check the mesh, after finishing the SHM. the picture that i put in the 1th post is before layering , after layering and after extrudeMesh.
would you please take a look on my snappHexMesh file?
Attached Images
File Type: jpg corner_of_slat_after_extrudeMesh.jpg (96.2 KB, 24 views)
File Type: jpg corner_of_slat_before_extrudeMesh.jpg (60.4 KB, 18 views)
File Type: jpg Mesh10.jpg (84.1 KB, 19 views)
File Type: jpg Mesh-2.jpg (92.8 KB, 15 views)
Attached Files
File Type: txt snappyHexMeshDict.txt (10.6 KB, 7 views)
s.m is offline   Reply With Quote

Old   June 3, 2013, 10:05
Default
  #31
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,174
Rep Power: 16
immortality is on a distinguished road
how to compile snapEdge?
now its running for 30 minutes.
the problem is on the values?
how is the order of coefficients?flap,main,slat from above to bottom?
what is Cl(f) and Cl(r)?
Code:
Cm    = 0.377331
    Cd    = 0.165487
    Cl    = 0.234554
    Cl(f) = 0.494607
    Cl(r) = -0.260054
__________________
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 3, 2013, 13:36
Default
  #32
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,119
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
yes i check the mesh, after finishing the SHM. the picture that i put in the 1th post is before layering , after layering and after extrudeMesh.
would you please take a look on my snappHexMesh file?
1- i know there is difference in mesh shape before and after extrusion you insist on it several times , my question was whether front and back face before extrusion after snappyHexMesh have the same shape
still waiting for your response
2- your snappyHexMesh is fine enough
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is online now   Reply With Quote

Old   June 4, 2013, 01:27
Default
  #33
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
1- i know there is difference in mesh shape before and after extrusion you insist on it several times , my question was whether front and back face before extrusion after snappyHexMesh have the same shape
still waiting for your response
2- your snappyHexMesh is fine enough
of course they have the same shape, i attach some picture from front and back views of my snappyHexMesh
Attached Images
File Type: jpg back-.jpg (93.8 KB, 10 views)
File Type: jpg back.jpg (104.2 KB, 13 views)
File Type: jpg front-.jpg (78.2 KB, 10 views)
File Type: jpg front.jpg (105.8 KB, 10 views)
s.m is offline   Reply With Quote

Old   June 4, 2013, 01:52
Default
  #34
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
how to compile snapEdge?
now its running for 30 minutes.
the problem is on the values?
how is the order of coefficients?flap,main,slat from above to bottom?
what is Cl(f) and Cl(r)?
Code:
Cm    = 0.377331
    Cd    = 0.165487
    Cl    = 0.234554
    Cl(f) = 0.494607
    Cl(r) = -0.260054

i write three function for three element separately, so you should get three group result for "cd, cl and cm" as i know the cl for main element should reach 2.44, and 0.24 for flap.
Attached Images
File Type: jpg cl.jpg (93.8 KB, 3 views)
File Type: jpg cd-slat.jpg (93.1 KB, 3 views)
Attached Files
File Type: txt Exp_Cp.txt (6.7 KB, 2 views)
File Type: gz flap.jpg.tar.gz (77.0 KB, 4 views)
File Type: gz slat.jpg.tar.gz (49.2 KB, 3 views)
s.m is offline   Reply With Quote

Old   June 4, 2013, 05:14
Default
  #35
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,119
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
of course they have the same shape, i attach some picture from front and back views of my snappyHexMesh
i have no more clue in my mind, be lucky in your simulation,
if you stick in simulation with free software, maybe you want to use other free software such as salome, netgen, gmsh and like that for your simulation and import it to OpenFOAM
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is online now   Reply With Quote

Old   June 4, 2013, 05:41
Default
  #36
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
i have no more clue in my mind, be lucky in your simulation,
if you stick in simulation with free software, maybe you want to use other free software such as salome, netgen, gmsh and like that for your simulation and import it to OpenFOAM
you mean what is happen after running extrudeMesh is because of my mesh?
s.m is offline   Reply With Quote

Old   June 4, 2013, 05:48
Default
  #37
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,119
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
you mean what is happen after running extrudeMesh is because of my mesh?
i mean that you can create your mesh some where else with less sophisticated problem

but now, i remember, maybe there is another clue
before, extrude Mesh use following command:
Quote:
flattenMesh
check whether it helps or not
s.m likes this.
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is online now   Reply With Quote

Old   January 29, 2014, 02:53
Default
  #38
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 4
Dadou 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.

Hello,

Did you solve this problem? Because I have the same problem and I can't solve it. I tried to look it up in the forum but nothing new or really helpfull.

Thank you

Dadou
Dadou is offline   Reply With Quote

Old   January 29, 2014, 03:30
Default
  #39
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,119
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
well, you may want to add surfaceFeatureExtractDict to your system folder, and edit it appropriately
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is online now   Reply With Quote

Old   January 29, 2014, 04:14
Default
  #40
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 4
Dadou is on a distinguished road
Quote:
Originally Posted by nimasam View Post
well, you may want to add surfaceFeatureExtractDict to your system folder, and edit it appropriately
Thank you

Regards,
Dadou 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 03:53.