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

AirfoilCalculation Tutorial Error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2014, 21:43
Default AirfoilCalculation Tutorial Error
  #1
Member
 
afrotimy's Avatar
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 32
Rep Power: 2
afrotimy is on a distinguished road
Hi FOAMERs,

I am trying to start up airfoil simulation in OpenFOAM with the airfoil calculation tutorial but having problem executing this command:

Procedure
"To save you for a lot of typing, an Octave-script NACA2STL.m has been made. Download the script into a directory of your choice and make
it executable.:

Terminal window
chmod +x NACA2STL.m
./NACA2STL.m


These commands will create a STL-file of a NACA0015 airfoil with a chord length of 1 meter. You might need to edit the first line in the script (#!/usr/bin/octave -qf) if your Octave-binary is located in another location than /usr/bin. Put the file in the airfoil_snappyHexMesh/constant/triSurface directory.
"


Error message

xx@ubuntu:~/OpenFOAM/xx-2.3.0/run/tutorials/incompressible/pimpleDyMFoam/airfoil$ chmod +x NACA2STL.m
chmod: cannot access `NACA2STL.m': No such file or directory

xx@ubuntu:~/OpenFOAM/xx-2.3.0/run/tutorials/incompressible/pimpleDyMFoam/airfoil$ chmod +x NACA2STL.m
xx@ubuntu:~/OpenFOAM/xx-2.3.0/run/tutorials/incompressible/pimpleDyMFoam/airfoil$ ./NACA2STL.m
bash: ./NACA2STL.m: /usr/bin/octave: bad interpreter: No such file or directory



I have tried to place the NACA2STK.m file into the usr/bin but not permitted and can't fully still execute the command in any other directory. Can anyone help to throw more light on this procedure I think I am not getting a step right?

Many thanks.
afrotimy is offline   Reply With Quote

Old   February 27, 2014, 22:31
Default AirfoilCalculation Tutorial Error
  #2
Member
 
afrotimy's Avatar
 
Francis
Join Date: Jan 2014
Location: Toronto
Posts: 32
Rep Power: 2
afrotimy is on a distinguished road
Hi FOAMers,

Problem resolved.

I was able to figure out that Octave is a tool for reading and writing binary codes and that it is not installed in my usr/bin directory.

I just installed Octave via the link:

http://blogs.bu.edu/mhirsch/2012/08/...-ubuntu-12-04/

Now, my airfoil.stl file has been successfully created with the directory it was saved in.

Cheers.
afrotimy 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
blockMesh with double grading. spwater OpenFOAM 75 October 20, 2014 18:35
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31


All times are GMT -4. The time now is 10:48.