|
[Sponsors] |
December 22, 2007, 17:09 |
hi,i am a beginner of openFoam
|
#1 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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 |
|
December 23, 2007, 08:59 |
Hi Wang
Wish you a good day
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
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 |
|
December 23, 2007, 09:30 |
hi Jaswinder, thanks for your
|
#3 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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 |
|
December 23, 2007, 11:37 |
hi ,i try it ,but it seems i c
|
#4 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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? |
|
December 23, 2007, 16:43 |
hi,
most of the upper error
|
#5 |
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17 |
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 |
|
December 23, 2007, 17:50 |
hi, Stephan, thanks for respon
|
#6 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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 |
|
December 24, 2007, 03:24 |
Hi Wang
please send me the
|
#7 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
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 |
|
December 24, 2007, 06:15 |
hi,
send me the link of the
|
#8 |
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17 |
hi,
send me the link of the solvers and i will try to help... br stephan |
|
December 24, 2007, 11:15 |
hi,
tha fact is that i have
|
#9 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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 |
|
January 1, 2008, 20:13 |
Hi, feng wang.
I
|
#10 |
New Member
kalaiselvan
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 25
Rep Power: 17 |
Hi, feng wang.
I will also give a try. Send me the link..... |
|
January 2, 2008, 07:52 |
Hello Feng,
I would appreci
|
#11 |
Member
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Hello Feng,
I would appreciation if your can send me the links for the solver and tutotial file for FSI. |
|
January 2, 2008, 14:19 |
hi a a saha
this is the lin
|
#12 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi a a saha
this is the link of the sovler and it also involves two particular case for the sovler. Kind regards feng |
|
January 3, 2008, 05:27 |
Helllo Feng,
The link is no
|
#13 |
Member
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Helllo Feng,
The link is not available in your post. Can you pl. repost the link again. Thanks, a a saha |
|
January 3, 2008, 05:56 |
hi,sorry about that
http://
|
#14 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
||
January 3, 2008, 06:34 |
Hi Feng!
Which Version of O
|
#15 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
January 3, 2008, 07:22 |
Hi Bernhard!
i am using 1.4
|
#16 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
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 |
|
January 3, 2008, 09:24 |
1.3 is available at http://sou
|
#17 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
March 5, 2009, 08:29 |
Hello,
I am trying to compi
|
#18 |
New Member
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
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 |
|
|
|
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 |