CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Beginners problems

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 15, 2008, 18:04
Default Concerning your wmake question
  #1
nadine
Guest
 
Posts: n/a
Concerning your wmake question: the Programmers Guide (or was it the Users Guide?) contains a section about this tool. You find the guides under the Documentation link at the OF homepage.

Basically, you just have to copy the simpleFoam directory from the applications/... sources, apply your changes to simpleFoam.C and within the simpleFoam directory type

wmake .

Take care, it overrides the standard simpleFoam solver unless you change the name of the output file in simpleFoam/Make/options.

NB
  Reply With Quote

Old   August 18, 2008, 02:39
Default Thanks for the reply. I've alr
  #2
New Member
 
Serge Koller
Join Date: Mar 2009
Location: Switzerland
Posts: 1
Rep Power: 0
serge is on a distinguished road
Thanks for the reply. I've already read this section of the usersguide. In the mean while I found my error elsewhere, but i'm getting another error now:

/net/home/campbell/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H: In function 'void runtimecalc(Foam::word, Foam::scalar)':
/net/home/campbell/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:6 : error: 'args' was not declared in this scope
make: *** [Make/linux64GccDPOpt/runtimecalc.o] Error 1

this variable, what is it used for? Doxygen says something (for me a rather difficult book anyway) that it references Foam::exit and Foam::FatalError. how do I declare it? and why should i in the first place? where is it declared in the simpleFoam.c?
I hope my questions are not too silly.

Serge
serge is offline   Reply With Quote

Old   August 18, 2008, 03:31
Default The main() routine of simpleFo
  #3
nadine
Guest
 
Posts: n/a
The main() routine of simpleFoam.C begins with these two lines:

# include "setRootCase.H"
# include "createTime.H"

And if you have a look into setRootCase.H, you find your args:

Foam::argList args(argc, argv);

if (!args.checkRootCase())
{
Foam::FatalError.exit();
}

Have a look at the Doxygen documentation of Foam::argList for details.

NB
  Reply With Quote

Old   August 18, 2008, 04:17
Default Either pass the argc and argv
  #4
nadine
Guest
 
Posts: n/a
Either pass the argc and argv from main to runtimecalc and there include setRootCase.H before you include createTime.H

Or, if you have setRootCase.H in your main, the "Foam::argList args" will be available there. Pass it to runtimecalc.

NB
  Reply With Quote

Old   July 2, 2009, 13:06
Default Drag too high
  #5
New Member
 
karl
Join Date: Jul 2009
Posts: 1
Rep Power: 0
karbax is on a distinguished road
The drag prediction in an airfoil is generally too high for following reason:

A CFD code can't predict the transition from laminar to turbulent regime in
the trailing edge. So the code applies turbulent regime in all domain.
karbax 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
Beginners problem Zurayk CFX 4 January 11, 2007 09:56
A beginners question Pst Main CFD Forum 2 February 19, 2006 03:33
Beginners Question Aleks FLUENT 1 April 14, 2003 11:09
books for beginners reb Main CFD Forum 9 November 28, 1998 06:54
Fluent beginnersīcourse roland Sabata Main CFD Forum 1 June 25, 1998 08:15


All times are GMT -4. The time now is 11:43.