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

Problems about solvers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2007, 17:09
Default hi,i am a beginner of openFoam
  #1
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi,i am a beginner of openFoam.i downloaded a FSI case and its solver, but i don't know how to creat a class on my own,how to use the solver.could anyone help me?


thanks for help in advance
fw407 is offline   Reply With Quote

Old   December 23, 2007, 08:59
Default Hi Wang Wish you a good day
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 18
jaswi is on a distinguished road
Hi Wang

Wish you a good day.

Please be more specific and post the screen output and errors from your attempts as for now it is not clear what actually the problem is.

please tell me what you tried and where things went wrong.

Also please consult user guide if you haven't done that yet.

Kind Regards
Jaswinder
jaswi is offline   Reply With Quote

Old   December 23, 2007, 09:30
Default hi Jaswinder, thanks for your
  #3
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi Jaswinder, thanks for your response.
i am trying to use a solver of FSI.but i do not know how to do it,so i first follow steps i found on a website to create a solver by modify a pre-defined solver,here is the address:
http://www.csc.fi/english/research/s...enfoam/modsol/

at the beginning,everything is fine,
but when i inuput "emacs Make/files"
and the terminal tells me:
The program 'emacs' can be found in the following packages:
* emacs21-nox
* emacs22-gtk
* emacs22
* emacs-snapshot
* e3
* emacs-snapshot-nox
* emacs21
* emacs22-nox
* jove
* emacs-snapshot-gtk
Try: sudo apt-get install <selected>
bash: emacs: command not found

i do not what is the problem,so i creat a file manully which the coresponding step on the website want me to creat
after that i input "wmake",problems also comes up
,the terminal tells me:
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:111: error: '::fopen' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:112: error: '::fprintf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:113: error: '::fputc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:114: error: '::fputs' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:115: error: '::fread' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:116: error: '::freopen' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:117: error: '::fscanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:118: error: '::fseek' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:119: error: '::fsetpos' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:120: error: '::ftell' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:121: error: '::fwrite' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:122: error: '::getc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:123: error: '::getchar' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:124: error: '::gets' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:125: error: '::perror' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:126: error: '::printf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:127: error: '::putc' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:128: error: '::putchar' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:129: error: '::puts' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:130: error: '::remove' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:131: error: '::rename' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:132: error: '::rewind' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:133: error: '::scanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:134: error: '::setbuf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:135: error: '::setvbuf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:136: error: '::sprintf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:137: error: '::sscanf' has not been declared
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-g

these are just part of the errors ,for it is too long.sorry about that

So could you give me some advice on how to deal with it?

kindly regards

Feng
fw407 is offline   Reply With Quote

Old   December 23, 2007, 11:37
Default hi ,i try it ,but it seems i c
  #4
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi ,i try it ,but it seems i can not creat an executable in the
/home/fw407/OpenFOAM/fw407-1.4.1/applications/bin/linuxGccDPOpt directory

could anyone help me?
fw407 is offline   Reply With Quote

Old   December 23, 2007, 16:43
Default hi, most of the upper error
  #5
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
hi,

most of the upper error lines look like your compiler believes that used commands like scanf,printf do not belong to the namespace you said.
so the question is
??what-lib??::thisbelongsto
i hope that helps...
br
stephan
stephan is offline   Reply With Quote

Old   December 23, 2007, 17:50
Default hi, Stephan, thanks for respon
  #6
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi, Stephan, thanks for response
i still can not figure it out .actually all i want is just to use a new solver i download on the website.i find some tips in the user's guide, but it does not tell me how to creat my own solver and how to use it specifically. i am just a beginner,so could you teach me how to do it. maybe you method is better^-^


kind regards

feng
fw407 is offline   Reply With Quote

Old   December 24, 2007, 03:24
Default Hi Wang please send me the
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 18
jaswi is on a distinguished road
Hi Wang

please send me the solver u r tying to compile. I will give it a try on my system and see whether it works.

kind regards
Jaswinder
jaswi is offline   Reply With Quote

Old   December 24, 2007, 06:15
Default hi, send me the link of the
  #8
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
hi,

send me the link of the solvers and i will try to help...
br
stephan
stephan is offline   Reply With Quote

Old   December 24, 2007, 11:15
Default hi, tha fact is that i have
  #9
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi,

tha fact is that i have compiled the predefined solver,say icoFoam, i end up with the same errors, but i can run FoamX, and follow the cases in the user's guid without any bugs. so i think the solver is good .maybe the way i compile the solver is not correct, maybe something is wrong with my installation,and i fail to install some important files .so i am a little bit lost

i will send you the solver by eamil

many thanks ^_^

feng
fw407 is offline   Reply With Quote

Old   January 1, 2008, 20:13
Default Hi, feng wang. I
  #10
New Member
 
kalaiselvan
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 25
Rep Power: 17
21kalee is on a distinguished road
Hi, feng wang.
I will also give a try. Send me the link.....
21kalee is offline   Reply With Quote

Old   January 2, 2008, 07:52
Default Hello Feng, I would appreci
  #11
Member
 
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17
asaha is on a distinguished road
Hello Feng,

I would appreciation if your can send me the links for the solver and tutotial file for FSI.
asaha is offline   Reply With Quote

Old   January 2, 2008, 14:19
Default hi a a saha this is the lin
  #12
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi a a saha

this is the link of the sovler and it also involves two particular case for the sovler.

Kind regards

feng
fw407 is offline   Reply With Quote

Old   January 3, 2008, 05:27
Default Helllo Feng, The link is no
  #13
Member
 
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17
asaha is on a distinguished road
Helllo Feng,

The link is not available in your post. Can you pl. repost the link again.

Thanks,

a a saha
asaha is offline   Reply With Quote

Old   January 3, 2008, 05:56
Default hi,sorry about that http://
  #14
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
hi,sorry about that

http://openfoamwiki.net/index.php/Contrib_icoStructFoam

all the best

feng
fw407 is offline   Reply With Quote

Old   January 3, 2008, 06:34
Default Hi Feng! Which Version of O
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Feng!

Which Version of OF are you using? I guess 1.4.x

The sources on that page currently only work with 1.3 and definitly won't compile on 1.4

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 3, 2008, 07:22
Default Hi Bernhard! i am using 1.4
  #16
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17
fw407 is on a distinguished road
Hi Bernhard!

i am using 1.4.1. actually i want to install 1.3, but i can only download 1.4.1 from the wenbiste of OF.

all the best

Feng
fw407 is offline   Reply With Quote

Old   January 3, 2008, 09:24
Default 1.3 is available at http://sou
  #17
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
1.3 is available at http://sourceforge.net/projects/foam
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 5, 2009, 08:29
Default Hello, I am trying to compi
  #18
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Hello,

I am trying to compile a modified simpleFoam solver. But when I tried to run wmake an error comes out stating that:
"/usr/bin/ld: cannot find -llduSolvers
collect2: ld returned 1 exit status
make: *** [/home/USR/OpenFOAM/USR-1.5/applications/bin/linuxGccDPOpt/simpleConvergenceFoam ] Error 1"

The Make/options file is exactly the same as in OpenFoam.

I would appreciate if you could give me some advice.

Eduarda
eduardasilva 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
Problems in compiling solvers when using OpenFOAM13_11092006 jin_xu OpenFOAM Installation 6 July 2, 2010 13:34
What are the solvers doing sega OpenFOAM Running, Solving & CFD 4 April 19, 2008 17:07
fem solvers dontknow Main CFD Forum 2 June 24, 2007 13:51
Solvers DB Siemens 3 December 6, 2005 09:26
cfx solvers -FVM? derrek CFX 5 February 10, 2003 12:50


All times are GMT -4. The time now is 20:17.