CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] surfaceFeatureExtract fails - What's the problem?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2013, 15:27
Default surfaceFeatureExtract fails - What's the problem?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22
klausb will become famous soon enough
Hello,

I am trying to run part 1 of the attached case:

Part 1 as I call it does the following (Allrun script):

#!/bin/sh

# Make 3D mesh in slab of cells.
cd airfoil_snappyHexMesh
blockMesh > output/1-blockMesh.log 2>&1
surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil > output/2-surfaceFeatureExtract.log 2>&1
snappyHexMesh -overwrite > output/3-snappyHexMesh.log 2>&1
rm -f 0/*

The error log says:

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

Create mesh for time = 0

Read mesh in = 0.14 s

Overall mesh bounding box : (-6 -0.15 -6) (16 -0.05 6)
Relative tolerance : 1e-06
Absolute matching distance : 2.50601e-05

Reading refinement surfaces.
Read refinement surfaces in = 0.03 s

Reading refinement shells.
Refinement level 2 for all cells inside refinementBox
Read refinement shells in = 0 s

Setting refinement level of surface to be consistent with shells.
Checked shell refinement in = 0 s

Reading features.


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/tenno/OpenFOAM/tenno-2.2.0/run/airfoil/airfoil_snappyHexMesh/constant/triSurface/airfoil.eMesh at line 0.
From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting


I can't find the error. What's the problem?

Klausb
klausb is offline   Reply With Quote

Old   March 17, 2013, 17:19
Default
  #2
Senior Member
 
Join Date: Dec 2011
Posts: 111
Rep Power: 19
haakon will become famous soon enough
The problem is that you are using OpenFOAM 2.2, and the case you are running is made for 2.1. The way surfaceFeatureExtract is called has changed, in 2.1 all arguments were given on the command line, while in 2.2 it is given in the file system/surfaceFeatureExtractDict.

Since it is surfaceFeatureExtractDict that is generating airfoil.eMesh, snappyHexMesh fails because this file is missing. However the error lies in surfaceFeatureExtractMesh.

BTW: I see that you are running the case found here: https://www.hpc.ntnu.no/display/hpc/...l+Calculations This case should now be updated such that it works on both 2.1 and 2.2. If you download it again, it should work out-of-the-box. If not, please send me a PM.

Good luck.
haakon is offline   Reply With Quote

Old   March 18, 2013, 13:11
Default Thank you for the hint!
  #3
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22
klausb will become famous soon enough
It's a good basis for my cases.

Klaus
klausb 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
BuoyantBoussinesqSimpleFoam_Facing problem Mondal131211 OpenFOAM Running, Solving & CFD 1 April 10, 2019 19:41
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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